[Pkg-scicomp-devel] parmetis/trunk

Christophe Prud'homme prudhomm at debian.org
Wed Aug 16 06:10:19 UTC 2006


SVN commit 484 by prudhomm:

Load parmetis-3.1 into parmetis/trunk.


 M  +15 -2     parmetis/trunk/METISLib/Makefile  
 M  +4 -4      parmetis/trunk/Makefile.in  
 M  +14 -2     parmetis/trunk/ParMETISLib/Makefile  
 A             parmetis/trunk/debian (directory)  
 A             parmetis/trunk/debian/changelog  
 A             parmetis/trunk/debian/control  
 A             parmetis/trunk/debian/copyright  
 A             parmetis/trunk/debian/libparmetis-dev.docs  
 A             parmetis/trunk/debian/libparmetis-dev.overrides  
 A             parmetis/trunk/debian/libparmetis3.1.overrides  
 A             parmetis/trunk/debian/mtest.1  
 A             parmetis/trunk/debian/parmetis-doc.doc-base  
 A             parmetis/trunk/debian/parmetis-doc.docs  
 A             parmetis/trunk/debian/parmetis-doc.examples  
 A             parmetis/trunk/debian/parmetis-doc.overrides  
 A             parmetis/trunk/debian/parmetis-test.overrides  
 A             parmetis/trunk/debian/ptest.1  
 AM            parmetis/trunk/debian/rules  


--- parmetis/trunk/METISLib/Makefile #483:484
@@ -1,6 +1,9 @@
 include ../Makefile.in
 
+all: ../libmetis.a ../libmetis.so
 
+.SUFFIXES: .c .lo .o
+
 CFLAGS = $(COPTIONS) $(OPTFLAGS) -I. $(INCDIR)
 
 
@@ -16,18 +19,28 @@
        kvmetis.o kwayvolrefine.o kwayvolfm.o subdomains.o \
        mfm.o memory.o mrefine.o checkgraph.o
 
+SHLOBJS = $(OBJS:.o=.lo)
+
 .c.o:
 	$(CC) $(CFLAGS) -c $*.c
 
+.c.lo:
+	$(CC) $(CFLAGS) -fPIC -DPIC -c $< -o $@
+
 ../libmetis.a: $(OBJS)
 	$(AR) $@ $(OBJS)
 	$(RANLIB) $@
 
+../libmetis.so: $(SHLOBJS)
+	$(CC) -shared $^ -Wl,-soname,libmetis.so.3.1 -o $@.3.1 \
+	  $(LIBDIR) -lmpich
+	ln -s libmetis.so.3.1 $@
+
 clean:
-	rm -f *.o 
+	rm -f *.o *.lo
 
 realclean:
-	rm -f *.o ; rm -f ../libmetis.a
+	rm -f *.o *.lo ../libmetis.*
 
 
 checkin:
--- parmetis/trunk/Makefile.in #483:484
@@ -1,22 +1,22 @@
 
 # Which compiler to use
-CC = mpicc
+CC = gcc
 
 
 # What optimization level to use
 OPTFLAGS = -O3 
 
 # Include directories for the compiler
-INCDIR = -I/opt/local/include
+INCDIR = -I/usr/lib/mpich/include
 
 # What options to be used by the compiler
 COPTIONS = 
 
 # Which loader to use
-LD = mpicc
+LD = gcc
 
 # In which directories to look for any additional libraries
-LIBDIR = -L/opt/local/lib -L/usr/lib
+LIBDIR = -L/usr/lib/mpich/lib/shared -L/usr/lib/mpich/lib
 
 # What additional libraries to link the programs with (eg., -lmpi)
 #XTRALIBS = -lefence
--- parmetis/trunk/ParMETISLib/Makefile #483:484
@@ -1,6 +1,9 @@
 include ../Makefile.in
 
+all: ../libparmetis.a ../libparmetis.so
 
+.SUFFIXES: .c .lo .o
+
 CFLAGS = $(COPTIONS) $(OPTFLAGS) -I. $(INCDIR)
 
 
@@ -18,19 +21,28 @@
        selectq.o akwayfm.o serial.o move.o \
        mmetis.o mesh.o memory.o weird.o backcompat.o
 
+SHLOBJS = $(OBJS:.o=.lo)
+
 .c.o:
 	$(CC) $(CFLAGS) -c $*.c
 
+.c.lo:
+	$(CC) $(CFLAGS) -fPIC -DPIC -c $< -o $@
 
 ../libparmetis.a: $(OBJS)
 	$(AR) $@ $(OBJS)
 	$(RANLIB) $@
 
+../libparmetis.so: $(SHLOBJS)
+	$(CC) -shared $^ -Wl,-soname,libparmetis.so.3.1 -o $@.3.1 \
+	  $(LIBDIR) -lmpich
+	ln -s libparmetis.so.3.1 $@
+
 clean:
-	rm -f *.o 
+	rm -f *.o *.lo
 
 realclean:
-	rm -f *.o ; rm -f ../libparmetis.a
+	rm -f *.o *.lo ../libparmetis.*
 
 
 checkin:
** parmetis/trunk/debian/rules #property changes
Name: svn:executable
   + *



More information about the Pkg-scicomp-devel mailing list