add some lua library

This commit is contained in:
云风
2012-08-09 16:48:28 +08:00
parent d246152ca5
commit 4e50079706
47 changed files with 13562 additions and 0 deletions

14
lua-protobuf/Makefile Normal file
View File

@@ -0,0 +1,14 @@
.PHONY : all clean
all : protobuf.so addressbook.pb
LIBSRCS = context.c varint.c array.c pattern.c register.c proto.c map.c alloc.c rmessage.c wmessage.c bootstrap.c stringpool.c decode.c
protobuf.so : pbc-lua.c $(LIBSRCS)
gcc -O2 -Wall --shared -fPIC -o $@ $^
addressbook.pb : addressbook.proto
protoc -o$@ $<
clean :
rm protobuf.so addressbook.pb