shortcode/Makefile

14 lines
326 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
./tests
clean:
rm -f shortcodes shortcodes.c