Add error reporting/checking
This commit is contained in:
6
Makefile
6
Makefile
@ -2,10 +2,8 @@ CC=gcc
|
||||
all: test
|
||||
shortcodes.c: shortcodes.rl
|
||||
ragel -G2 -L shortcodes.rl -o shortcodes.c
|
||||
%.o: %.c
|
||||
$(CC) -fPIC -c -o $@ $^ -g
|
||||
tests.so: shortcodes.o tests.o
|
||||
$(CC) -shared -g -o $@ $^ -lbg -lcgreen
|
||||
tests.so: shortcodes.c tests.c
|
||||
$(CC) -fPIC -shared -g -o $@ $^ -lbg -lcgreen
|
||||
clean:
|
||||
rm -f shortcodes.c *.o *.so tests
|
||||
test: tests.so
|
||||
|
Reference in New Issue
Block a user