Add PT-SCOTCH support.
Index: scotch-5.1.7.dfsg/src/Makefile
===================================================================
--- scotch-5.1.7.dfsg.orig/src/Makefile 2009-12-18 10:42:12.000000000 +0100
+++ scotch-5.1.7.dfsg/src/Makefile 2009-12-18 10:43:54.000000000 +0100
@@ -34,7 +34,7 @@
.PHONY : clean default install ptscotch realclean required scotch
-default : scotch
+default : scotch ptscotch
required : Makefile.inc ../bin ../include ../lib
Index: scotch-5.1.7.dfsg/src/scotch/Makefile
===================================================================
--- scotch-5.1.7.dfsg.orig/src/scotch/Makefile 2009-12-18 10:45:12.000000000 +0100
+++ scotch-5.1.7.dfsg/src/scotch/Makefile 2009-12-18 10:45:18.000000000 +0100
@@ -177,41 +177,47 @@
$(libdir)/libscotcherrexit$(LIB) \
atst.h
-dgmap$(EXE) : dgmap.c \
+dgmap$(EXE) : dgmap$(OBJ) \
../libscotch/module.h \
../libscotch/common.h \
$(includedir)/ptscotch.h \
$(libdir)/libptscotch$(LIB) \
$(libdir)/libptscotcherrexit$(LIB) \
dgmap.h
+ $(CC) $(CFLAGS) -I$(includedir) -I../libscotch -DSCOTCH_VERSION=\"$(VERSION)\" dgmap$(OBJ) -o dgmap$(EXE) -L$(libdir) -lptscotch -lptscotcherrexit -lscotch $(LDFLAGS)
-dgord$(EXE) : dgord.c \
+dgord$(EXE) : dgord$(OBJ) \
../libscotch/module.h \
../libscotch/common.h \
$(includedir)/ptscotch.h \
$(libdir)/libptscotch$(LIB) \
$(libdir)/libptscotcherrexit$(LIB) \
dgord.h
+ $(CC) $(CFLAGS) -I$(includedir) -I../libscotch -DSCOTCH_VERSION=\"$(VERSION)\" dgord$(OBJ) -o dgord$(EXE) -L$(libdir) -lptscotch -lptscotcherrexit -lscotch $(LDFLAGS)
dgpart$(EXE) : dgmap$(EXE)
-$(RM) dgpart$(EXE)
-$(LN) dgmap$(EXE) dgpart$(EXE)
-dgscat$(EXE) : dgscat.c \
+dgscat$(EXE) : dgscat$(OBJ) \
../libscotch/module.h \
../libscotch/common.h \
$(includedir)/ptscotch.h \
$(libdir)/libptscotch$(LIB) \
$(libdir)/libptscotcherrexit$(LIB) \
dgscat.h
+ $(CC) $(CFLAGS) -I$(includedir) -I../libscotch -DSCOTCH_VERSION=\"$(VERSION)\" dgscat$(OBJ) -o dgscat$(EXE) -L$(libdir) -lptscotch -lptscotcherrexit -lscotch $(LDFLAGS)
+
-dgtst$(EXE) : dgtst.c \
+dgtst$(EXE) : dgtst$(OBJ) \
../libscotch/module.h \
../libscotch/common.h \
$(includedir)/ptscotch.h \
$(libdir)/libptscotch$(LIB) \
$(libdir)/libptscotcherrexit$(LIB) \
dgtst.h
+ $(CC) $(CFLAGS) -I$(includedir) -I../libscotch -DSCOTCH_VERSION=\"$(VERSION)\" dgtst$(OBJ) -o dgtst$(EXE) -L$(libdir) -lptscotch -lptscotcherrexit -lscotch $(LDFLAGS)
+
gbase$(EXE) : gbase.c \
../libscotch/module.h \