return errors from parse() #1
20
Makefile
20
Makefile
@ -1,16 +1,14 @@
|
|||||||
CC=tcc
|
CC=gcc
|
||||||
all: tests
|
all: tests
|
||||||
run: shortcodes
|
|
||||||
./shortcodes
|
|
||||||
shortcodes.c: shortcodes.rl
|
shortcodes.c: shortcodes.rl
|
||||||
ragel -G2 shortcodes.rl -o shortcodes.c
|
ragel -G2 shortcodes.rl -o shortcodes.c
|
||||||
shortcodes: shortcodes.c
|
%.o: %.c
|
||||||
$(CC) shortcodes.c -g -o shortcodes
|
$(CC) -fPIC -c -o $@ $^
|
||||||
tests: shortcodes.c shortcodes.h tests.c
|
tests.so: shortcodes.o tests.o
|
||||||
$(CC) tests.c shortcodes.c -lbg -lcgreen -g -o tests
|
$(CC) -shared -o $@ $^ -lbg -lcgreen
|
||||||
test: tests
|
test: tests.so
|
||||||
./tests
|
cgreen-runner $^
|
||||||
clean:
|
clean:
|
||||||
rm -f shortcodes shortcodes.c
|
rm -f shortcodes.c *.o *.so
|
||||||
|
|
||||||
.PHONY: test run
|
.PHONY: test
|
||||||
|
Loading…
Reference in New Issue
Block a user