diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-06-25 23:25:29 +0300 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-06-25 23:25:29 +0300 |
commit | 01052811be08444458576dda994d15f8823560ea (patch) | |
tree | c52f2d72ef0ef703e755fcf05ee5d3a02f050acc /scripts | |
parent | 449ca1e570aa421992bbe98c6928def1ba8896fd (diff) | |
download | posthaste-01052811be08444458576dda994d15f8823560ea.tar.gz posthaste-01052811be08444458576dda994d15f8823560ea.zip |
initial rewrite to use ejit
+ Doesn't actually link yet due to missing stuff from ejit, will have to
add them (tomorrow?)
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/makefile b/scripts/makefile index 9d79525..0d08407 100644 --- a/scripts/makefile +++ b/scripts/makefile @@ -36,7 +36,7 @@ COMPILE_FLAGS = $(CFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(OBFLAGS) $(ASSERTFLAGS) \ LINK_FLAGS = $(LDFLAGS) -lm -INCLUDE_FLAGS = -I include -I deps +INCLUDE_FLAGS = -I include -I deps/ejit/include COMPILE = $(CC) \ $(COMPILE_FLAGS) $(DEPFLAGS) $(INCLUDE_FLAGS) @@ -54,8 +54,11 @@ gen/gen_parser.c: src/parser.y gen/gen_lexer.inc gen/gen_lexer.inc: src/lexer.l flex -o gen/gen_lexer.inc src/lexer.l -posthaste: $(POSTHASTE_OBJS) - $(COMPILE_POSTHASTE) $(POSTHASTE_OBJS) -o $@ $(LINK_FLAGS) +posthaste: $(POSTHASTE_OBJS) deps/ejit/ejit.o + $(COMPILE_POSTHASTE) $(POSTHASTE_OBJS) deps/ejit/ejit.o -o $@ $(LINK_FLAGS) + +deps/ejit/ejit.o: + $(MAKE) -C deps/ejit # might lint some common things twice .PHONY: |