From de3dd06d6f161e95a20f3d8a98d27114124c37e6 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Sat, 13 May 2017 23:57:53 +0430 Subject: now builds liblua --- bruiser/makefile | 19 ++++++++++--------- 1 file 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.' -- cgit v1.2.3