Pass capn_ptr by value, better handling of tags

This commit is contained in:
James McKaskill 2013-05-07 22:44:21 -04:00
parent 3a235fe8c6
commit b8da11676a
10 changed files with 1236 additions and 438 deletions

View file

@ -1,6 +1,7 @@
.PHONY: all clean test
CFLAGS=-g -Wall -Werror -fPIC -I. -Wno-unused-function
LDFLAGS=-g -Wall -Werror -fPIC
CFLAGS=-g -Wall -Werror -fPIC -I. -Wno-unused-function -ansi -pedantic
all: capn.so test
@ -11,7 +12,7 @@ clean:
$(CC) $(CFLAGS) -c $< -o $@
capn.so: capn-malloc.o capn-stream.o capn.o
$(CC) -shared $(CFLAGS) $^ -o $@
$(CC) -shared $(LDFLAGS) $^ -o $@
test: capn-test
./capn-test