2013-03-09 02:00:21 +08:00
|
|
|
EXECUTABLE = TestLua
|
2012-09-26 20:51:41 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
COCOS_ROOT = ../../../..
|
2013-10-22 18:01:56 +08:00
|
|
|
INCLUDES = -I../Classes \
|
|
|
|
-I$(COCOS_ROOT)/audio/include \
|
|
|
|
-I$(COCOS_ROOT)/cocos/scripting/lua/bindings \
|
2013-11-01 11:18:02 +08:00
|
|
|
-I$(COCOS_ROOT)/external/lua/lua \
|
|
|
|
-I$(COCOS_ROOT)/external/lua/tolua \
|
|
|
|
-I$(COCOS_ROOT)/extensions
|
2012-09-26 20:51:41 +08:00
|
|
|
|
2013-10-22 18:01:56 +08:00
|
|
|
SOURCES = main.cpp \
|
2013-11-01 11:18:02 +08:00
|
|
|
../Classes/AppDelegate.cpp \
|
|
|
|
../Classes/lua_assetsmanager_test_sample.cpp
|
2012-09-26 20:51:41 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
SHAREDLIBS += -lcocos2d -lcocosdenshion -llua
|
2012-09-26 20:51:41 +08:00
|
|
|
|
2013-10-22 18:01:56 +08:00
|
|
|
include $(COCOS_ROOT)/cocos/2d/cocos2dx.mk
|
2012-09-26 20:51:41 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
$(TARGET): $(OBJECTS) $(STATICLIBS) $(COCOS_LIBS) $(CORE_MAKEFILE_LIST)
|
|
|
|
@mkdir -p $(@D)
|
|
|
|
cp -R -n ../../../../samples/Cpp/TestCpp/Resources ../../../../samples/Lua/TestLua
|
2013-10-22 18:01:56 +08:00
|
|
|
cp -n ../../../../cocos/scripting/lua/script/* ../../../../samples/Lua/TestLua/Resources
|
2013-03-03 10:30:39 +08:00
|
|
|
$(LOG_LINK)$(CXX) $(CXXFLAGS) $(OBJECTS) -o $@ $(SHAREDLIBS) $(STATICLIBS) $(LIBS)
|
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) $(VISIBILITY) -c $< -o $@
|
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) $(VISIBILITY) -c $< -o $@
|