2023-07-12 19:09:17 +00:00
|
|
|
CC=tcc
|
|
|
|
all: tests
|
2023-07-10 21:19:34 +00:00
|
|
|
run: shortcodes
|
|
|
|
./shortcodes
|
|
|
|
shortcodes.c: shortcodes.rl
|
|
|
|
ragel -G2 shortcodes.rl -o shortcodes.c
|
|
|
|
shortcodes: shortcodes.c
|
2023-07-12 21:01:46 +00:00
|
|
|
$(CC) shortcodes.c -g -o shortcodes
|
2023-07-12 19:09:17 +00:00
|
|
|
tests: shortcodes.c shortcodes.h tests.c
|
|
|
|
$(CC) tests.c shortcodes.c -lbg -lcgreen -g -o tests
|
2023-07-12 19:40:15 +00:00
|
|
|
test: tests
|
2023-07-12 19:09:17 +00:00
|
|
|
./tests
|
|
|
|
clean:
|
|
|
|
rm -f shortcodes shortcodes.c
|
2023-07-12 19:40:15 +00:00
|
|
|
|
|
|
|
.PHONY: test run
|