shortcode/Makefile

14 lines
288 B
Makefile
Raw Normal View History

CC=gcc
all: test
2023-07-10 21:19:34 +00:00
shortcodes.c: shortcodes.rl
ragel -G2 shortcodes.rl -o shortcodes.c
tests.so: shortcodes.c tests.c
$(CC) -fPIC -shared -g -o $@ $^ -lbg -lcgreen
2023-07-12 19:09:17 +00:00
clean:
rm -f shortcodes.c *.o *.so tests
test: tests.so
cgreen-runner $^
debug:
cgreen-debug tests.so
.PHONY: test debug