You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.6 KiB
Makefile
66 lines
1.6 KiB
Makefile
SKYNET_ROOT ?= ../skynet
|
|
include $(SKYNET_ROOT)/platform.mk
|
|
|
|
PLAT ?= linux
|
|
|
|
#####################################################
|
|
SKYNET_LUA_INC ?= $(SKYNET_ROOT)/3rd/lua/
|
|
SKYNET_LUA_LIB ?= $(SKYNET_ROOT)/3rd/lua/
|
|
SKYNET_SRC ?= $(SKYNET_ROOT)/skynet-src
|
|
|
|
LFLAGS = $(SHARED) -I$(SKYNET_LUA_INC)
|
|
|
|
LUA_CLIB_PATH ?= ../luaclib
|
|
#####################################################
|
|
LFS_SO = $(LUA_CLIB_PATH)/lfs.so
|
|
CJSON_SO = $(LUA_CLIB_PATH)/cjson.so
|
|
PROFILE_SO = $(LUA_CLIB_PATH)/profile.so
|
|
SKIPLIST_SO = $(LUA_CLIB_PATH)/skiplist.so
|
|
SNAPSHOT_SO = $(LUA_CLIB_PATH)/snapshot.so
|
|
SHIFTTIMER_SO = $(LUA_CLIB_PATH)/shiftimer.so
|
|
GEOHASH_SO = $(LUA_CLIB_PATH)/geohash.so
|
|
CLUA_SO = $(LUA_CLIB_PATH)/clua.so
|
|
#####################################################
|
|
all: $(LFS_SO) \
|
|
$(CJSON_SO) \
|
|
$(PROFILE_SO) \
|
|
$(SKIPLIST_SO) \
|
|
$(SNAPSHOT_SO) \
|
|
$(SHIFTTIMER_SO) \
|
|
$(CLUA_SO) \
|
|
$(GEOHASH_SO)
|
|
#####################################################
|
|
|
|
$(LFS_SO):
|
|
cd lua-lfs && $(MAKE) PLAT=$(PLAT)
|
|
|
|
$(CJSON_SO):
|
|
cd lua-cjson && $(MAKE) PLAT=$(PLAT)
|
|
|
|
$(PROFILE_SO):
|
|
cd lua-profile && $(MAKE) PLAT=$(PLAT)
|
|
|
|
$(SKIPLIST_SO):
|
|
cd lua-zset && $(MAKE) PLAT=$(PLAT)
|
|
|
|
$(SNAPSHOT_SO):
|
|
cd lua-snapshot && $(MAKE) PLAT=$(PLAT)
|
|
|
|
$(SHIFTTIMER_SO):
|
|
cd lua-timer && $(MAKE) PLAT=$(PLAT)
|
|
|
|
$(GEOHASH_SO):
|
|
cd lua-geohash && $(MAKE) PLAT=$(PLAT)
|
|
|
|
$(CLUA_SO):
|
|
cd lua-clua && $(MAKE) PLAT=$(PLAT)
|
|
|
|
#####################################################
|
|
|
|
cleanall:
|
|
rm -f $(LUA_CLIB_PATH)/*.so && \
|
|
rm -rf $(LUA_CLIB_PATH)/*.dSYM && \
|
|
rm -f $(LUA_CLIB_PATH)/*.o
|
|
|
|
.PHONY: all cleanall
|