aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser/makefile
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-06-10 03:17:39 +0000
committerbloodstalker <thabogre@gmail.com>2018-06-10 03:17:39 +0000
commit394262751bd166606a11c9db1e16a08b177ad807 (patch)
tree99a090bff851b97103e458f3ea1048d3a31187b7 /bruiser/makefile
parentadded the autogen files, should also fix travis (diff)
downloadmutator-394262751bd166606a11c9db1e16a08b177ad807.tar.gz
mutator-394262751bd166606a11c9db1e16a08b177ad807.zip
fix
Diffstat (limited to 'bruiser/makefile')
-rw-r--r--bruiser/makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/bruiser/makefile b/bruiser/makefile
index 3f38539..393a7ae 100644
--- a/bruiser/makefile
+++ b/bruiser/makefile
@@ -21,7 +21,7 @@ TBG_OBJLIST_INC=$(patsubst ./luatablegen/%.c, ./luatablegen/%.o, $(wildcard ./lu
######################################RULES####################################
.DEFAULT: all
-.PHONY: all clean help tablegen
+.PHONY: all clean help
all: $(BRUISER)
@@ -46,8 +46,13 @@ dependc:.dependc
linenoise.o:
$(CC) $(CC_FLAGS) linenoise/linenoise.c -c -o linenoise.o
-tablegen:
- ../extra-tools/tablegen-test/run.sh
+./wasmtablegen.json:
+ if [[ ls -l ./luatablegen | wc -l == 2 ]];then ./tablegen.sh;else :;fi
+
+./luatablegen/%.c: ./wasmtablegen.json
+ ./tablegen.sh
+
+./luatablegen/%.o:./luatablegen/%.c
$(MAKE) -C luatablegen
$(LIB_LUA):
@@ -59,6 +64,7 @@ $(LIB_LUA_JIT):
@echo "building with jit"
$(BRUISER): $(BRUISER).o ../mutator_aux.o ../tinyxml2/tinyxml2.o linenoise.o CompletionHints.o mutagen.o ORCmutation.o bruiserffi.o asmrewriter.o bruisercapstone.o ramdump.o ffs.o $(LIB_LUA) $(TBG_OBJLIST_INC)
+ @echo $(TBG_OBJLIST_INC)
$(CXX) $^ $(LD_FLAGS) -o $@
clean: