diff options
author | Ben Smith <binji@chromium.org> | 2015-11-14 12:49:35 -0800 |
---|---|---|
committer | Ben Smith <binji@chromium.org> | 2015-12-03 17:04:35 -0800 |
commit | 3442b0bc98a5fc9e6b4bc792f1be1e2d41d7b1e4 (patch) | |
tree | 4480da3b85bffa4921e062c8066efc8277a14462 /Makefile | |
parent | 7cb9d2e4ee5a8ccd9d142dd78f71e7a259016219 (diff) | |
download | wabt-3442b0bc98a5fc9e6b4bc792f1be1e2d41d7b1e4.tar.gz wabt-3442b0bc98a5fc9e6b4bc792f1be1e2d41d7b1e4.tar.bz2 wabt-3442b0bc98a5fc9e6b4bc792f1be1e2d41d7b1e4.zip |
rename wasm-tokens.h -> wasm2.h, fix parser deps
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -14,6 +14,9 @@ ASAN_OBJS = $(addprefix out/,$(patsubst %.c,%.asan.o,$(SRCS))) MSAN_OBJS = $(addprefix out/,$(patsubst %.c,%.msan.o,$(SRCS))) LSAN_OBJS = $(addprefix out/,$(patsubst %.c,%.lsan.o,$(SRCS))) +PARSER_SRCS = wasm-parser.c wasm-lexer.c +PARSER_OBJS = $(addprefix out/,$(patsubst %.c,%.o,$(PARSER_SRCS))) + .PHONY: all all: $(addprefix out/,$(ALL)) @@ -29,14 +32,16 @@ src/wasm-lexer.c src/wasm-lexer.h: src/wasm-lexer.l src/wasm-parser.c src/wasm-parser.h: src/wasm-parser.y bison -o src/wasm-parser.c --defines=src/wasm-parser.h $< -out/parser: src/wasm-lexer.c src/wasm-parser.c | out - $(CC) $(CFLAGS) -Wno-unused-function -Wno-return-type -o $@ $^ -ll - $(OBJS): out/%.o: src/%.c | out $(CC) $(CFLAGS) -c -o $@ $(DEPEND_FLAGS) $< out/sexpr-wasm: $(OBJS) | out $(CC) -o $@ $^ +$(PARSER_OBJS): out/%.o: src/%.c | out + $(CC) $(CFLAGS) -Wno-unused-function -Wno-return-type -c -o $@ $(DEPEND_FLAGS) $< +out/parser: $(PARSER_OBJS) | out + $(CC) -o $@ $^ -ll + # ASAN $(ASAN_OBJS): out/%.asan.o: src/%.c | out clang $(ASAN_FLAGS) $(CFLAGS) -c -o $@ $(DEPEND_FLAGS) $< @@ -59,6 +64,7 @@ src/wasm-keywords.h: src/wasm-keywords.gperf gperf --compare-strncmp --readonly-tables --struct-type $< --output-file $@ -include $(OBJS:.o=.d) $(ASAN_OBJS:.o=.d) $(MSAN_OBJS:.o=.d) $(LSAN_OBJS:.o=.d) +-include $(PARSER_OBJS:.o=.d) #### TESTS #### .PHONY: test |