aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-06-22 16:56:42 +0000
committerbloodstalker <thabogre@gmail.com>2017-06-22 16:56:42 +0000
commit52c86f77047c0a307751d9f15a5ad06ab4941076 (patch)
treef0c3b9188a820eb7d6539dffe457def1c915d6c1
parentthe new trusty update is live so we dont need to specify edge (diff)
downloadmutator-52c86f77047c0a307751d9f15a5ad06ab4941076.tar.gz
mutator-52c86f77047c0a307751d9f15a5ad06ab4941076.zip
wip
-rw-r--r--bruiser/makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/bruiser/makefile b/bruiser/makefile
index 8b3b231..f5754a2 100644
--- a/bruiser/makefile
+++ b/bruiser/makefile
@@ -4,8 +4,8 @@ include ../macros.mk
#######################################VARS####################################
CXX_FLAGS+=-I/usr/include
-EXTRA_LD_FLAGS+=-L$(shell pwd)/lua-5.3.4/src/ -llua -ldl
BRUISER=bruiser
+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
@@ -24,15 +24,20 @@ linenoise.o:
$(LIB_LUA):
$(MAKE) -C lua-5.3.4 linux
+ @echo "building with vanilla"
$(LIB_LUA_JIT):
$(MAKE) -C LuaJIT
+ @echo "building with jit"
$(BRUISER): $(BRUISER).o ../mutator_aux.o ../tinyxml2/tinyxml2.o linenoise.o CompletionHints.o $(LIB_LUA) $(LIB_LUA_JIT)
$(CXX) $^ $(LD_FLAGS) -o $@
clean:
rm -f *.o *~ $(BRUISER)
+
+deepclean:
+ rm -f *.o *~ $(BRUISER)
$(MAKE) -C lua-5.3.4 clean
$(MAKE) -C LuaJIT clean