aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2016-11-19 18:12:27 +0000
committerbloodstalker <thabogre@gmail.com>2016-11-19 18:12:27 +0000
commit8e9cc64155aac9f8a8c471d5b74b563658cb34cd (patch)
tree61901f87b005ca5df5a4aeea79c2baba5c25a0cf /makefile
parentminor change in the clean command and where build artefacts and outputs are s... (diff)
downloadmutator-8e9cc64155aac9f8a8c471d5b74b563658cb34cd.tar.gz
mutator-8e9cc64155aac9f8a8c471d5b74b563658cb34cd.zip
fixed a problem with build all.
Diffstat (limited to 'makefile')
-rw-r--r--makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/makefile b/makefile
index d637bda..52d020d 100644
--- a/makefile
+++ b/makefile
@@ -32,17 +32,17 @@ TARGET2=mutator-lvl2
all: $(TARGET) $(TARGET2) $(TARGET0)
-.cpp.o: mutator.cpp mutator-lvl2.cpp mutator-lvl0.cpp mutator_aux.cpp mutator_aux.h
+.cpp.o:
$(CXX) $(CXX_FLAGS) -c $< -o $@
$(TARGET): $(TARGET).o mutator_aux.o
- $(CXX) $? $(LD_FLAGS) -o $@
+ $(CXX) $^ $(LD_FLAGS) -o $@
$(TARGET2): $(TARGET2).o mutator_aux.o
- $(CXX) $? $(LD_FLAGS) -o $@
+ $(CXX) $^ $(LD_FLAGS) -o $@
$(TARGET0): $(TARGET0).o mutator_aux.o
- $(CXX) $? $(LD_FLAGS) -o $@
+ $(CXX) $^ $(LD_FLAGS) -o $@
clean:
rm -f *.o *~ $(TARGET0) $(TARGET) $(TARGET2)