From 01052811be08444458576dda994d15f8823560ea Mon Sep 17 00:00:00 2001 From: Kimplul Date: Tue, 25 Jun 2024 23:25:29 +0300 Subject: initial rewrite to use ejit + Doesn't actually link yet due to missing stuff from ejit, will have to add them (tomorrow?) --- scripts/makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'scripts/makefile') 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: -- cgit v1.2.3