2013-03-03 10:30:39 +08:00
|
|
|
TARGET = liblua.so
|
2012-09-26 20:51:41 +08:00
|
|
|
|
2013-08-22 15:06:34 +08:00
|
|
|
INCLUDES += -I.. -I../lua -I../tolua -I../cocos2dx_support -I../cocos2dx_support/generated \
|
2013-05-24 11:42:27 +08:00
|
|
|
-I../Classes -I../../../CocosDenshion/include -I../../../extensions -I../../../external/chipmunk/include/chipmunk
|
2012-09-26 20:51:41 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
SOURCES = ../lua/lapi.o \
|
|
|
|
../lua/lauxlib.c \
|
|
|
|
../lua/lbaselib.c \
|
|
|
|
../lua/lcode.c \
|
|
|
|
../lua/ldblib.c \
|
|
|
|
../lua/ldebug.c \
|
|
|
|
../lua/ldo.c \
|
|
|
|
../lua/ldump.c \
|
|
|
|
../lua/lfunc.c \
|
|
|
|
../lua/lgc.c \
|
|
|
|
../lua/linit.c \
|
|
|
|
../lua/liolib.c \
|
|
|
|
../lua/llex.c \
|
|
|
|
../lua/lmathlib.c \
|
|
|
|
../lua/lmem.c \
|
|
|
|
../lua/loadlib.c \
|
|
|
|
../lua/lobject.c \
|
|
|
|
../lua/lopcodes.c \
|
|
|
|
../lua/loslib.c \
|
|
|
|
../lua/lparser.c \
|
|
|
|
../lua/lstate.c \
|
|
|
|
../lua/lstring.c \
|
|
|
|
../lua/lstrlib.c \
|
|
|
|
../lua/ltable.c \
|
|
|
|
../lua/ltablib.c \
|
|
|
|
../lua/ltm.c \
|
|
|
|
../lua/lundump.c \
|
|
|
|
../lua/lvm.c \
|
|
|
|
../lua/lzio.c \
|
|
|
|
../lua/print.c \
|
|
|
|
../tolua/tolua_event.c \
|
|
|
|
../tolua/tolua_is.c \
|
|
|
|
../tolua/tolua_map.c \
|
|
|
|
../tolua/tolua_push.c \
|
|
|
|
../tolua/tolua_to.c \
|
|
|
|
../cocos2dx_support/tolua_fix.c \
|
|
|
|
../cocos2dx_support/CCLuaBridge.cpp \
|
|
|
|
../cocos2dx_support/CCLuaEngine.cpp \
|
|
|
|
../cocos2dx_support/CCLuaStack.cpp \
|
|
|
|
../cocos2dx_support/CCLuaValue.cpp \
|
|
|
|
../cocos2dx_support/Cocos2dxLuaLoader.cpp \
|
2013-06-03 13:47:12 +08:00
|
|
|
../cocos2dx_support/LuaCocos2d.cpp \
|
|
|
|
../cocos2dx_support/CCBProxy.cpp \
|
|
|
|
../cocos2dx_support/Lua_extensions_CCB.cpp \
|
2013-06-21 10:43:02 +08:00
|
|
|
../cocos2dx_support/LuaOpengl.cpp \
|
2013-07-11 13:38:25 +08:00
|
|
|
../cocos2dx_support/LuaScrollView.cpp \
|
2013-08-22 13:39:05 +08:00
|
|
|
../cocos2dx_support/LuaScriptHandlerMgr.cpp \
|
|
|
|
../cocos2dx_support/LuaBasicConversions.cpp \
|
|
|
|
../cocos2dx_support/generated/lua_cocos2dx_auto.cpp \
|
|
|
|
../cocos2dx_support/generated/lua_cocos2dx_extension_auto.cpp \
|
|
|
|
../cocos2dx_support/lua_cocos2dx_manual.cpp \
|
2013-08-26 18:45:50 +08:00
|
|
|
../cocos2dx_support/lua_cocos2dx_extension_manual.cpp \
|
|
|
|
../cocos2dx_support/lua_cocos2dx_deprecated.cpp
|
2013-02-06 15:59:29 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
include ../../../cocos2dx/proj.linux/cocos2dx.mk
|
2013-02-06 15:59:29 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
TARGET := $(LIB_DIR)/$(TARGET)
|
2013-05-24 11:42:27 +08:00
|
|
|
SHAREDLIBS += -lextension
|
2012-09-26 20:51:41 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
all: $(TARGET)
|
2012-09-26 20:51:41 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
$(TARGET): $(OBJECTS) $(CORE_MAKEFILE_LIST)
|
|
|
|
@mkdir -p $(@D)
|
|
|
|
$(LOG_LINK)$(CXX) $(CXXFLAGS) $(OBJECTS) -shared -o $@ $(SHAREDLIBS) $(STATICLIBS)
|
2012-09-26 20:51:41 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
$(OBJ_DIR)/%.o: ../%.cpp $(CORE_MAKEFILE_LIST)
|
|
|
|
@mkdir -p $(@D)
|
|
|
|
$(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
|
2012-09-26 20:51:41 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
$(OBJ_DIR)/%.o: ../%.c $(CORE_MAKEFILE_LIST)
|
|
|
|
@mkdir -p $(@D)
|
|
|
|
$(LOG_CC)$(CC) $(CCFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
|