diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-07-04 23:37:51 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-07-04 23:37:51 +0300 |
| commit | e82c73d2b57e58894d8c93fc720559df6392d58b (patch) | |
| tree | 3a637c10d0334e21ba3a75fbf5854d0f43efe07e /example/Makefile | |
| parent | 703e37ac56883f9a54b35960fde438c7cfba4592 (diff) | |
| download | bcgen-e82c73d2b57e58894d8c93fc720559df6392d58b.tar.gz bcgen-e82c73d2b57e58894d8c93fc720559df6392d58b.zip | |
add loop example
Diffstat (limited to 'example/Makefile')
| -rw-r--r-- | example/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
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 |
