mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
netpack for gate
This commit is contained in:
5
Makefile
5
Makefile
@@ -13,7 +13,7 @@ $(LUA_STATICLIB) :
|
||||
cd 3rd/lua && $(MAKE) CC=$(CC) $(PLAT)
|
||||
|
||||
CSERVICE = snlua logger gate client master multicast tunnel harbor localcast
|
||||
LUA_CLIB = skynet socketdriver int64 mcast bson mongo md5
|
||||
LUA_CLIB = skynet socketdriver int64 mcast bson mongo md5 netpack
|
||||
|
||||
SKYNET_SRC = skynet_main.c skynet_handle.c skynet_module.c skynet_mq.c \
|
||||
skynet_server.c skynet_start.c skynet_timer.c skynet_error.c \
|
||||
@@ -62,6 +62,9 @@ $(LUA_CLIB_PATH)/mongo.so : lualib-src/lua-mongo.c | $(LUA_CLIB_PATH)
|
||||
$(LUA_CLIB_PATH)/md5.so : 3rd/lua-md5/md5.c 3rd/lua-md5/md5lib.c 3rd/lua-md5/compat-5.2.c | $(LUA_CLIB_PATH)
|
||||
$(CC) $(CFLAGS) $(SHARED) -O2 -I3rd/lua-md5 $^ -o $@
|
||||
|
||||
$(LUA_CLIB_PATH)/netpack.so : lualib-src/lua-netpack.c | $(LUA_CLIB_PATH)
|
||||
$(CC) $(CFLAGS) $(SHARED) $^ -Iskynet-src -o $@
|
||||
|
||||
all : $(SKYNET_BUILD_PATH)/client
|
||||
|
||||
$(SKYNET_BUILD_PATH)/client : client-src/client.c
|
||||
|
||||
Reference in New Issue
Block a user