aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-07-29 14:02:54 +0000
committerbloodstalker <thabogre@gmail.com>2017-07-29 14:02:54 +0000
commit1d1acee0697e206ed690f65d9e7a1dd03b2348d2 (patch)
tree7dbe3cee1f9a4339d7726d92948164b1f35a7450 /bruiser
parentnew command (diff)
downloadmutator-1d1acee0697e206ed690f65d9e7a1dd03b2348d2.tar.gz
mutator-1d1acee0697e206ed690f65d9e7a1dd03b2348d2.zip
trying to add header sensitivity
Diffstat (limited to '')
-rw-r--r--bruiser/makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/bruiser/makefile b/bruiser/makefile
index 136b1c6..278da47 100644
--- a/bruiser/makefile
+++ b/bruiser/makefile
@@ -9,6 +9,7 @@ LUA?=JIT
LIB_LUA=./lua-5.3.4/src/liblua.a
LIB_LUA_JIT=./LuaJIT/src/libluajit.a
HEADER_LIST=bruiser.h bruiser-extra.h CompletionHints.h
+SRCS=bruiser.cpp, CompletionHints.cpp, ORCmutation.cpp, mutagen.cpp
#for some reason without ld the build fails on ubuntu trusty on travis
EXTRA_LD_FLAGS+=-ldl
######################################RULES####################################
@@ -18,7 +19,15 @@ EXTRA_LD_FLAGS+=-ldl
all: $(BRUISER)
-.cpp.o:
+depend: .bruiser.d
+
+.bruiser.d: $(SRCS)
+ rm -f ./.bruisr.d
+ $(CXX) $(CXX_FLAGS) -MMD $^ -MF ./.bruiser.d;
+
+-include ./.bruiser.d
+
+.cpp.o: depend
$(CXX) $(CXX_FLAGS) -c $< -o $@
linenoise.o: