mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
add some lua library
This commit is contained in:
14
lua-protobuf/Makefile
Normal file
14
lua-protobuf/Makefile
Normal 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
|
||||
Reference in New Issue
Block a user