From: Sven Kämpf Date: Mon, 9 Mar 2015 06:18:40 +0000 (+0100) Subject: Change build command to work with free functions X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=7361761f9b934298d326e9bae3109e8de335db37;p=chaz%2Fvimcoder Change build command to work with free functions 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. --- diff --git a/src/com/dogcows/resources/C++Makefile b/src/com/dogcows/resources/C++Makefile index 79332f1..84ed692 100644 --- a/src/com/dogcows/resources/C++Makefile +++ b/src/com/dogcows/resources/C++Makefile @@ -35,7 +35,7 @@ prove: all %$(EXEEXT): %.cc - $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ + $(LINK.cc) $< $(LOADLIBES) $(LDLIBS) -o $@ driver$(EXEEXT): $CLASSNAME$.cc