diff options
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | gen/source.mk | 9 |
2 files changed, 11 insertions, 2 deletions
@@ -1,7 +1,7 @@ deps.mk docs/output build -gen fwd -!gen/source.mk +gen/*.c +gen/*.inc !include/fwd diff --git a/gen/source.mk b/gen/source.mk new file mode 100644 index 0000000..55fe692 --- /dev/null +++ b/gen/source.mk @@ -0,0 +1,9 @@ +gen/gen_parser.c: src/parser.y gen/gen_lexer.inc + bison -Wcounterexamples -o gen/gen_parser.c src/parser.y + +gen/gen_lexer.inc: src/lexer.l + flex -o gen/gen_lexer.inc src/lexer.l + +build/gen/parser.o: gen/gen_parser.c + mkdir -p build/gen + $(COMPILE_FWD) $(SKIP_ANALYZER) -c gen/gen_parser.c -o build/gen/parser.o |