[cig-commits] r6900 - cs/cigma/trunk/tools
luis at geodynamics.org
luis at geodynamics.org
Wed May 16 10:22:36 PDT 2007
Author: luis
Date: 2007-05-16 10:22:35 -0700 (Wed, 16 May 2007)
New Revision: 6900
Modified:
cs/cigma/trunk/tools/Makefile
Log:
Updated makefile in tools directory so that it builds all commands
Modified: cs/cigma/trunk/tools/Makefile
===================================================================
--- cs/cigma/trunk/tools/Makefile 2007-05-16 17:21:54 UTC (rev 6899)
+++ cs/cigma/trunk/tools/Makefile 2007-05-16 17:22:35 UTC (rev 6900)
@@ -5,28 +5,31 @@
OPTIMIZE = -g
INCLUDES = -I$(HDF5_HOME)/include -I../include
LIBRARIES = -L$(HDF5_HOME)/lib -L../lib
-LIBS = -lhdf5 -lcigma
+LIBS = -lhdf5 -largtable2 -lcigma
-CFLAGS = -Wall $(OPTIMIZE) $(INCLUDES) $(LIBRARIES)
+CFLAGS = -Wall -DDEBUG $(OPTIMIZE) $(INCLUDES) $(LIBRARIES)
+COMMAND_OBJS = \
+ skel-cmd.o \
+ init-cmd.o \
+ cube-cmd.o \
+ extract-cmd.o \
-TARGETS = \
- cigma \
- init \
- skel \
- cube \
- extract \
+TARGETS = cigma
-all: $(TARGETS)
+all: $(TARGETS) $(COMMAND_OBJS)
-.c:
- $(CC) $(CFLAGS) $< $(LIBS) -o $@
+cigma: cigma.c $(COMMAND_OBJS)
+ $(CC) $(CFLAGS) $^ $(LIBS) -o $@
+.c.o:
+ $(CC) $(CFLAGS) -c $<
+
clean:
- rm -f $(TARGETS)
+ rm -f $(TARGETS) $(COMMAND_OBJS)
.PHONY: clean
More information about the cig-commits
mailing list