shortcode/Makefile

17 lines
356 B
Makefile
Raw Normal View History

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 19:09:17 +00:00
$(CC) shortcodes.c -lbg -g -o shortcodes
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