tests pass again
This commit is contained in:
17
Makefile
17
Makefile
@ -1,14 +1,17 @@
|
||||
CC=gcc
|
||||
all: tests
|
||||
shortcodes.c: shortcodes.rl
|
||||
ragel -G2 shortcodes.rl -o shortcodes.c
|
||||
ragel -G2 -L shortcodes.rl -o shortcodes.c
|
||||
%.o: %.c
|
||||
$(CC) -fPIC -c -o $@ $^
|
||||
$(CC) -fPIC -c -o $@ $^ -g
|
||||
tests.so: shortcodes.o tests.o
|
||||
$(CC) -shared -o $@ $^ -lbg -lcgreen
|
||||
test: tests.so
|
||||
cgreen-runner $^
|
||||
$(CC) -shared -g -o $@ $^ -lbg -lcgreen
|
||||
test-binary: shortcodes.c tests.c
|
||||
$(CC) -g -o tests shortcodes.c tests.c -DMAIN=1 -lbg -lcgreen
|
||||
clean:
|
||||
rm -f shortcodes.c *.o *.so
|
||||
|
||||
.PHONY: test
|
||||
test: tests.so
|
||||
cgreen-runner $^
|
||||
debug:
|
||||
cgreen-debug tests.so
|
||||
.PHONY: test debug
|
||||
|
Reference in New Issue
Block a user