mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
fix Makefile
This commit is contained in:
33
Makefile
33
Makefile
@@ -53,21 +53,22 @@ service/broker.so : service-src/service_broker.c
|
|||||||
lualib/lpeg.so : lpeg/lpeg.c
|
lualib/lpeg.so : lpeg/lpeg.c
|
||||||
gcc -Wall -O2 -fPIC --shared $^ -o $@ -Ilpeg
|
gcc -Wall -O2 -fPIC --shared $^ -o $@ -Ilpeg
|
||||||
|
|
||||||
lualib/protobuf.so : \
|
PROTOBUFSRC = \
|
||||||
lua-protobuf/context.c \
|
lua-protobuf/context.c \
|
||||||
lua-protobuf/varint.c \
|
lua-protobuf/varint.c \
|
||||||
lua-protobuf/array.c \
|
lua-protobuf/array.c \
|
||||||
lua-protobuf/pattern.c \
|
lua-protobuf/pattern.c \
|
||||||
lua-protobuf/register.c \
|
lua-protobuf/register.c \
|
||||||
lua-protobuf/proto.c \
|
lua-protobuf/proto.c \
|
||||||
lua-protobuf/map.c \
|
lua-protobuf/map.c \
|
||||||
lua-protobuf/alloc.c \
|
lua-protobuf/alloc.c \
|
||||||
lua-protobuf/rmessage.c \
|
lua-protobuf/rmessage.c \
|
||||||
lua-protobuf/wmessage.c \
|
lua-protobuf/wmessage.c \
|
||||||
lua-protobuf/bootstrap.c \
|
lua-protobuf/bootstrap.c \
|
||||||
lua-protobuf/stringpool.c \
|
lua-protobuf/stringpool.c \
|
||||||
lua-protobuf/decode.c \
|
lua-protobuf/decode.c
|
||||||
lua-protobuf/pbc-lua.c
|
|
||||||
|
lualib/protobuf.so : $(PROTOBUFSRC) lua-protobuf/pbc-lua.c
|
||||||
gcc -O2 -Wall --shared -fPIC -o $@ $^
|
gcc -O2 -Wall --shared -fPIC -o $@ $^
|
||||||
|
|
||||||
lualib/int64.so : lua-int64/int64.c
|
lualib/int64.so : lua-int64/int64.c
|
||||||
@@ -80,7 +81,7 @@ skynet-master : master/master.c master/main.c
|
|||||||
gcc -g -Wall -Imaster -o $@ $^ -lzmq
|
gcc -g -Wall -Imaster -o $@ $^ -lzmq
|
||||||
|
|
||||||
clean :
|
clean :
|
||||||
rm skynet client skynet-master lualib/*.so service/*.so
|
rm skynet client skynet-master lua-protobuf/libpb.a lualib/*.so service/*.so
|
||||||
|
|
||||||
|
|
||||||
$(SKYNET_PATH) :
|
$(SKYNET_PATH) :
|
||||||
|
|||||||
Reference in New Issue
Block a user