[PVFS2-CVS] commit by pw in pvfs2/src/common/statecomp: module.mk.in

CVS commit program cvs at parl.clemson.edu
Sat Apr 9 16:26:45 EDT 2005


Update of /projects/cvsroot/pvfs2/src/common/statecomp
In directory parlweb:/tmp/cvs-serv12249/src/common/statecomp

Modified Files:
	module.mk.in 
Log Message:
get right build path for statecomp in >=2-level deep obj tree build


Index: module.mk.in
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/common/statecomp/module.mk.in,v
diff -u -p -u -r1.11 -r1.12
--- module.mk.in	9 Feb 2005 20:58:37 -0000	1.11
+++ module.mk.in	9 Apr 2005 19:26:45 -0000	1.12
@@ -15,9 +15,11 @@ STATECOMPGEN := \
     $(DIR)/parser.c \
     $(DIR)/parser.h \
 
+# Trying to build lots of .c files at once confuses the MODCFLAGS calculation.
+# Point it to the target to get the real dir name.
 statecomp: $(STATECOMP)
 $(STATECOMP): $(STATECOMPSRC)
 	$(Q) "  CC		$@"
-	$(E)$(BUILD_CC) $(LIBCFLAGS) $(CFLAGS) $(call modcflags, $<) $^ -o $@
+	$(E)$(BUILD_CC) $(LIBCFLAGS) $(CFLAGS) $(call modcflags, $@) $^ -o $@
 
 .SECONDARY: $(STATECOMPGEN)



More information about the PVFS2-CVS mailing list