aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'bruiser/makefile')
-rw-r--r--bruiser/makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/bruiser/makefile b/bruiser/makefile
index d296672..b74c686 100644
--- a/bruiser/makefile
+++ b/bruiser/makefile
@@ -4,9 +4,9 @@ include ../macros.mk
#######################################VARS####################################
CXX_FLAGS+=-I/usr/include
-EXTRA_LD_FLAGS+=-lncurses
+EXTRA_LD_FLAGS+=-L$(shell pwd)/lua-5.3.4/src/ -llua -ldl
BRUISER=bruiser
-
+LIB_LUA=./lua-5.3.4/src/liblua.a
######################################RULES####################################
.DEFAULT: all
@@ -20,17 +20,18 @@ all: $(BRUISER)
linenoise.o:
$(CC) $(CC_FLAGS) linenoise/linenoise.c -c -o linenoise.o
-lua:
- $(MAKE) -C lua-5.3.4
+$(LIB_LUA):
+ $(MAKE) -C lua-5.3.4 linux
-$(BRUISER): $(BRUISER).o ../mutator_aux.o ../tinyxml2/tinyxml2.o linenoise.o
+$(BRUISER): $(BRUISER).o ../mutator_aux.o ../tinyxml2/tinyxml2.o linenoise.o $(LIB_LUA)
$(CXX) $^ $(LD_FLAGS) -o $@
clean:
rm -f *.o *~ $(BRUISER)
+ $(MAKE) -C lua-5.3.4 clean
help:
- @echo 'There is help.'
- @echo 'All is the defualt target.'
- @echo 'Clean runs clean.'
- @echo 'For a more complete and detaild list of BUILD_MODE and other things look at the main makefiles help under project root.'
+ @echo 'there is help.'
+ @echo 'all is the defualt target.'
+ @echo 'clean runs clean.'
+ @echo 'for a more complete and detaild list of BUILD_MODE and other things look at the main makefiles help under project root.'