mirror of https://github.com/axmolengine/axmol.git
23 lines
760 B
Makefile
23 lines
760 B
Makefile
EXECUTABLE = HelloLua
|
|
|
|
COCOS_ROOT = ../../../..
|
|
INCLUDES = -I../Classes \
|
|
-I$(COCOS_ROOT)/audio/include \
|
|
-I$(COCOS_ROOT)/cocos/scripting/lua/bindings \
|
|
-I$(COCOS_ROOT)/external/lua/lua
|
|
|
|
SOURCES = main.cpp ../Classes/AppDelegate.cpp
|
|
|
|
SHAREDLIBS += -lcocos2d -lcocosdenshion -llua -lextension
|
|
|
|
include $(COCOS_ROOT)/cocos/2d/cocos2dx.mk
|
|
|
|
$(TARGET): $(OBJECTS) $(STATICLIBS) $(COCOS_LIBS) $(CORE_MAKEFILE_LIST)
|
|
@mkdir -p $(@D)
|
|
cp -n ../../../../cocos/scripting/lua/script/* ../../../../samples/Lua/HelloLua/Resources
|
|
$(LOG_LINK)$(CXX) $(CXXFLAGS) $(OBJECTS) -o $@ $(SHAREDLIBS) $(STATICLIBS) $(LIBS)
|
|
|
|
$(OBJ_DIR)/%.o: ../%.cpp $(CORE_MAKEFILE_LIST)
|
|
@mkdir -p $(@D)
|
|
$(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) $(VISIBILITY) -c $< -o $@
|