Basic test framework in place
This commit is contained in:
9
Makefile
9
Makefile
@ -1,6 +1,13 @@
|
||||
CC=tcc
|
||||
all: tests
|
||||
run: shortcodes
|
||||
./shortcodes
|
||||
shortcodes.c: shortcodes.rl
|
||||
ragel -G2 shortcodes.rl -o shortcodes.c
|
||||
shortcodes: shortcodes.c
|
||||
tcc shortcodes.c -lbg -g -o shortcodes
|
||||
$(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
|
||||
|
Reference in New Issue
Block a user