2013-03-03 10:30:39 +08:00
|
|
|
TARGET = liblua.so
|
2012-09-26 20:51:41 +08:00
|
|
|
|
2013-10-22 18:01:56 +08:00
|
|
|
INCLUDES += -I../../../../external/lua/tolua \
|
|
|
|
-I../../../../external/lua/lua \
|
|
|
|
-I../../auto-generated/lua-bindings \
|
|
|
|
-I../../../../extensions \
|
|
|
|
-I../../../editor-support \
|
|
|
|
-I. \
|
|
|
|
-I../../../editor-support/cocosbuilder \
|
|
|
|
-I../../../editor-support/cocostudio \
|
|
|
|
-I../../../../external \
|
|
|
|
-I../../../
|
2012-09-26 20:51:41 +08:00
|
|
|
|
2013-10-22 18:01:56 +08:00
|
|
|
SOURCES = ../../../../external/lua/lua/lapi.c \
|
|
|
|
../../../../external/lua/lua/lauxlib.c \
|
|
|
|
../../../../external/lua/lua/lbaselib.c \
|
|
|
|
../../../../external/lua/lua/lcode.c \
|
|
|
|
../../../../external/lua/lua/ldblib.c \
|
|
|
|
../../../../external/lua/lua/ldebug.c \
|
|
|
|
../../../../external/lua/lua/ldo.c \
|
|
|
|
../../../../external/lua/lua/ldump.c \
|
|
|
|
../../../../external/lua/lua/lfunc.c \
|
|
|
|
../../../../external/lua/lua/lgc.c \
|
|
|
|
../../../../external/lua/lua/linit.c \
|
|
|
|
../../../../external/lua/lua/liolib.c \
|
|
|
|
../../../../external/lua/lua/llex.c \
|
|
|
|
../../../../external/lua/lua/lmathlib.c \
|
|
|
|
../../../../external/lua/lua/lmem.c \
|
|
|
|
../../../../external/lua/lua/loadlib.c \
|
|
|
|
../../../../external/lua/lua/lobject.c \
|
|
|
|
../../../../external/lua/lua/lopcodes.c \
|
|
|
|
../../../../external/lua/lua/loslib.c \
|
|
|
|
../../../../external/lua/lua/lparser.c \
|
|
|
|
../../../../external/lua/lua/lstate.c \
|
|
|
|
../../../../external/lua/lua/lstring.c \
|
|
|
|
../../../../external/lua/lua/lstrlib.c \
|
|
|
|
../../../../external/lua/lua/ltable.c \
|
|
|
|
../../../../external/lua/lua/ltablib.c \
|
|
|
|
../../../../external/lua/lua/ltm.c \
|
|
|
|
../../../../external/lua/lua/lundump.c \
|
|
|
|
../../../../external/lua/lua/lvm.c \
|
|
|
|
../../../../external/lua/lua/lzio.c \
|
|
|
|
../../../../external/lua/lua/print.c \
|
|
|
|
../../../../external/lua/tolua/tolua_event.c \
|
|
|
|
../../../../external/lua/tolua/tolua_is.c \
|
|
|
|
../../../../external/lua/tolua/tolua_map.c \
|
|
|
|
../../../../external/lua/tolua/tolua_push.c \
|
|
|
|
../../../../external/lua/tolua/tolua_to.c \
|
|
|
|
tolua_fix.c \
|
2013-08-27 21:40:29 +08:00
|
|
|
../../auto-generated/lua-bindings/lua_cocos2dx_auto.cpp \
|
|
|
|
../../auto-generated/lua-bindings/lua_cocos2dx_extension_auto.cpp \
|
2013-10-22 18:01:56 +08:00
|
|
|
CCLuaBridge.cpp \
|
|
|
|
CCLuaEngine.cpp \
|
|
|
|
CCLuaStack.cpp \
|
|
|
|
CCLuaValue.cpp \
|
|
|
|
Cocos2dxLuaLoader.cpp \
|
|
|
|
CCBProxy.cpp \
|
|
|
|
LuaOpengl.cpp \
|
|
|
|
LuaScriptHandlerMgr.cpp \
|
|
|
|
LuaBasicConversions.cpp \
|
|
|
|
lua_cocos2dx_manual.cpp \
|
|
|
|
lua_cocos2dx_extension_manual.cpp \
|
|
|
|
lua_cocos2dx_deprecated.cpp
|
2013-02-06 15:59:29 +08:00
|
|
|
|
2013-08-27 21:40:29 +08:00
|
|
|
|
2013-10-22 18:01:56 +08:00
|
|
|
include ../../../2d/cocos2dx.mk
|
2013-02-06 15:59:29 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
TARGET := $(LIB_DIR)/$(TARGET)
|
2013-10-22 18:01:56 +08:00
|
|
|
SHAREDLIBS += -lextension -lcocostudio -lcocosbuilder
|
2013-10-10 11:09:09 +08:00
|
|
|
STATICLIBS += $(LIB_DIR)/libbox2d.a
|
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-10-22 18:01:56 +08:00
|
|
|
$(OBJ_DIR)/%.o: %.cpp $(CORE_MAKEFILE_LIST)
|
2013-08-27 21:40:29 +08:00
|
|
|
@mkdir -p $(@D)
|
|
|
|
$(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
|
|
|
|
|
2013-10-22 18:01:56 +08:00
|
|
|
$(OBJ_DIR)/%.o: ../../%.cpp $(CORE_MAKEFILE_LIST)
|
2013-03-03 10:30:39 +08:00
|
|
|
@mkdir -p $(@D)
|
|
|
|
$(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
|
2012-09-26 20:51:41 +08:00
|
|
|
|
2013-10-22 18:01:56 +08:00
|
|
|
$(OBJ_DIR)/%.o: ../../../../%.c $(CORE_MAKEFILE_LIST)
|
|
|
|
@mkdir -p $(@D)
|
|
|
|
$(LOG_CC)$(CC) $(CCFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
|
|
|
|
|
|
|
|
$(OBJ_DIR)/%.o: %.c $(CORE_MAKEFILE_LIST)
|
2013-03-03 10:30:39 +08:00
|
|
|
@mkdir -p $(@D)
|
|
|
|
$(LOG_CC)$(CC) $(CCFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
|