]> Dogcows Code - chaz/vimcoder/commitdiff
Change build command to work with free functions
authorSven Kämpf <sven.kaempf@googlemail.com>
Mon, 9 Mar 2015 06:18:40 +0000 (07:18 +0100)
committerSven Kämpf <sven.kaempf@googlemail.com>
Mon, 9 Mar 2015 06:18:40 +0000 (07:18 +0100)
Since the driver.cc and the $(CLASSNAME).cc both are source files and driver.cc includes
$(CLASSNME).cc a linker error is created when building and linking both of them.
If only driver.cc is built and linked everything is ok. However if there is a change in
$(CLASSNAME).cc the rebuilt has to be done. Therefore the remaining implicit rules have to stay in
the Makefile.

src/com/dogcows/resources/C++Makefile

index 79332f1d570ebab878357045eb73d44472a44663..84ed692d9d4ed9234664e36ad7583a3b55705931 100644 (file)
@@ -35,7 +35,7 @@ prove: all
 
 
 %$(EXEEXT): %.cc
-       $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@
+       $(LINK.cc) $< $(LOADLIBES) $(LDLIBS) -o $@
 
 driver$(EXEEXT): $CLASSNAME$.cc
 
This page took 0.026892 seconds and 4 git commands to generate.