always use all the prequisites when building
authorDiane Trout <diane@caltech.edu>
Wed, 22 Feb 2006 04:05:39 +0000 (04:05 +0000)
committerDiane Trout <diane@caltech.edu>
Wed, 22 Feb 2006 04:05:39 +0000 (04:05 +0000)
$? is the prereqs "newer" than the target
$^ is all the prerequisites
Needless to say when building binaries you need all the libraries,
even when they haven't changed.

module.mk
test/module.mk

index a06d311a67694f155749480313c9bc3e06d13ca1..abde60fbc8307220c7ae26cd0dbf43f9c727938b 100644 (file)
--- a/module.mk
+++ b/module.mk
@@ -13,5 +13,5 @@ MUSSA := $(CURDIR)/mussa$(BINEXT)
 TARGETBINS += $(MUSSA)
 
 $(MUSSA): $(MUSSASRC:.cxx=$(OBJEXT)) $(MUSSA_FLTK_LIB) $(MUSSA_ALG_LIB)
-       g++ -lfltk -o $@ $?
+       g++ -lfltk -o $@ $^
 
index 62b5aea672babb3be8ff1c713fb7cd099cdf4461..8ddc34e74c2fa12e5e5f6276c0b4f7647e551c5f 100644 (file)
@@ -14,5 +14,5 @@ TEST := $(BASEDIR)/test_mussa$(BINEXT)
 TARGETBINS += $(TEST)
 
 $(TEST): $(TESTSRC:.cxx=$(OBJEXT))  $(MUSSA_ALG_LIB)
-       g++ $(CXXFLAGS) -lboost_unit_test_framework -o $@ $?
+       g++ $(CXXFLAGS) -lboost_unit_test_framework -o $@ $^