summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2016-02-22 23:50:58 -0800
committerBen Smith <binji@chromium.org>2016-02-24 10:35:36 -0800
commitbf1d77eebc45c1b8885df9762362fba1ef6a9b38 (patch)
treef9c786f4170ce14a7f314927abb6f0f89f11006b /Makefile
parentec4731b6f9607d9e0545693b0a5586a138278b10 (diff)
downloadwabt-bf1d77eebc45c1b8885df9762362fba1ef6a9b38.tar.gz
wabt-bf1d77eebc45c1b8885df9762362fba1ef6a9b38.tar.bz2
wabt-bf1d77eebc45c1b8885df9762362fba1ef6a9b38.zip
rename parser -> bison-parser, lexer -> flex-lexer
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 3dc37801..712f1b6b 100644
--- a/Makefile
+++ b/Makefile
@@ -28,9 +28,9 @@ AFL_CC := $(AFL_DIR)/afl-gcc
SEXPR_WASM_CC := $(CC)
SEXPR_WASM_CFLAGS := $(CFLAGS)
SEXPR_WASM_SRCS := \
- wasm.c sexpr-wasm.c wasm-parser.c wasm-lexer.c wasm-vector.c wasm-check.c \
- wasm-writer.c wasm-binary-writer.c wasm-allocator.c wasm-stack-allocator.c \
- wasm-ast.c
+ wasm.c sexpr-wasm.c wasm-bison-parser.c wasm-flex-lexer.c wasm-vector.c \
+ wasm-check.c wasm-writer.c wasm-binary-writer.c wasm-allocator.c \
+ wasm-stack-allocator.c wasm-ast.c
ASAN_FLAGS := -fsanitize=address
SEXPR_WASM_ASAN_CC := clang
@@ -64,11 +64,11 @@ everything: $(addprefix out/,$(EVERYTHING))
out:
mkdir -p $@
-src/wasm-lexer.c src/wasm-lexer.h: src/wasm-lexer.l
- flex -o src/wasm-lexer.c $<
+src/wasm-flex-lexer.c: src/wasm-flex-lexer.l
+ flex -o src/wasm-flex-lexer.c $<
-src/wasm-parser.c src/wasm-parser.h: src/wasm-parser.y
- bison -o src/wasm-parser.c --defines=src/wasm-parser.h $<
+src/wasm-bison-parser.c src/wasm-bison-parser.h: src/wasm-bison-parser.y
+ bison -o src/wasm-bison-parser.c --defines=src/wasm-bison-parser.h $<
define EXE
$(2)_OBJS = $$(patsubst %.c,out/obj/$(1)/%.o,$$($(2)_SRCS))