shortcode/Makefile

15 lines
273 B
Makefile
Raw Normal View History

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