From e82c73d2b57e58894d8c93fc720559df6392d58b Mon Sep 17 00:00:00 2001 From: Kimplul Date: Tue, 4 Jul 2023 23:37:51 +0300 Subject: add loop example --- example/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 example/Makefile (limited to 'example/Makefile') diff --git a/example/Makefile b/example/Makefile new file mode 100644 index 0000000..66c96a0 --- /dev/null +++ b/example/Makefile @@ -0,0 +1,17 @@ +CFLAGS = -Wall -Wextra -g -O2 + +all: exec + +exec: bcode.o main.o + $(CC) $(CFLAGS) $^ -o $@ + +bcode.o: ../bcode.c + $(CC) $(CFLAGS) -c $^ -o $@ + +../bcode.c: rules.py + cd .. && ./bcgen example/rules.py + touch ../bcode.c # just to get make to wake up + +.PHONY: clean +clean: + rm -rf *.o exec -- cgit v1.3