[cig-commits] r6842 - cs/cigma/trunk

luis at geodynamics.org luis at geodynamics.org
Thu May 10 13:24:55 PDT 2007


Author: luis
Date: 2007-05-10 13:24:55 -0700 (Thu, 10 May 2007)
New Revision: 6842

Added:
   cs/cigma/trunk/Makefile
Log:
Forgot to add makefile


Added: cs/cigma/trunk/Makefile
===================================================================
--- cs/cigma/trunk/Makefile	2007-05-10 19:24:58 UTC (rev 6841)
+++ cs/cigma/trunk/Makefile	2007-05-10 20:24:55 UTC (rev 6842)
@@ -0,0 +1,49 @@
+HDF5_HOME = /usr
+
+CC = gcc
+LD = gcc
+OPTIMIZE  = -g
+INCLUDES  = -I./include -I$(HDF5_HOME)/include
+LIBRARIES = -L$(HDF5_HOME)/lib
+LIBS      = -lhdf5
+
+CFLAGS = -Wall $(OPTIMIZE) $(INCLUDES) $(LIBRARIES)
+
+
+OBJFILES = \
+	src/dataset.o \
+	src/array.o \
+	src/mesh.o \
+	src/qr.o \
+	src/fe.o \
+	src/det.o \
+	src/tet4.o \
+	src/hex8.o \
+	src/field.o \
+	src/points.o \
+
+
+TARGETS = \
+	lib/libcigma.a \
+
+
+all: $(TARGETS)
+
+
+lib/libcigma.a: $(OBJFILES)
+	ar rcs $@ $^
+
+
+lib/libcigma.so: $(OBJFILES)
+	$(LD) -fPIC -shared $(LIBS) $^ -o $@
+
+
+.c.o:
+	$(CC) $(CFLAGS) -c $< -o $@
+
+
+clean:
+	rm -f $(OBJFILES) $(TARGETS)
+
+
+.PHONY: clean



More information about the cig-commits mailing list