Starting to get rid of the C version of things that can be in crystal
This commit is contained in:
12
src/Makefile
12
src/Makefile
@ -1,17 +1,7 @@
|
||||
CC=gcc
|
||||
all: test
|
||||
shortcodes.c: shortcodes.rl
|
||||
ragel -G2 shortcodes.rl -o shortcodes.c
|
||||
tests.so: shortcodes.c tests.c
|
||||
$(CC) -fPIC -shared -g -o $@ $^ -lbg -lcgreen
|
||||
clean:
|
||||
rm -f shortcodes.c *.o *.so tests
|
||||
test: tests.so
|
||||
cgreen-runner $^
|
||||
debug:
|
||||
cgreen-debug tests.so
|
||||
rm -f shortcodes.o
|
||||
%o: %c
|
||||
$(CC) -g -c -o $@ $^
|
||||
shortcodes.a: shortcodes.o
|
||||
ar rcs $@ $^
|
||||
.PHONY: test debug
|
||||
|
@ -1,4 +1,4 @@
|
||||
@[Link(ldflags: "#{__DIR__}/../shortcodes.o")]
|
||||
@[Link(ldflags: "#{__DIR__}/shortcodes.o")]
|
||||
lib Shortcodes
|
||||
|
||||
struct Chunk
|
||||
|
Reference in New Issue
Block a user