From 7361761f9b934298d326e9bae3109e8de335db37 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20K=C3=A4mpf?= Date: Mon, 9 Mar 2015 07:18:40 +0100 Subject: [PATCH] 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. --- src/com/dogcows/resources/C++Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.0