axmol/samples/Cpp/HelloCpp/proj.linux/Makefile

26 lines
733 B
Makefile
Raw Normal View History

EXECUTABLE = HelloCpp
2012-08-02 13:02:59 +08:00
INCLUDES = -I.. -I../Classes
2012-08-02 13:02:59 +08:00
SOURCES = main.cpp \
../Classes/AppDelegate.cpp \
../Classes/HelloWorldScene.cpp
2012-08-02 13:02:59 +08:00
COCOS_ROOT = ../../../..
2013-10-22 18:01:56 +08:00
include $(COCOS_ROOT)/cocos/2d/cocos2dx.mk
2012-08-02 13:02:59 +08:00
SHAREDLIBS += -lcocos2d
COCOS_LIBS = $(LIB_DIR)/libcocos2d.so
2012-08-02 13:02:59 +08:00
$(TARGET): $(OBJECTS) $(STATICLIBS) $(COCOS_LIBS) $(CORE_MAKEFILE_LIST)
@mkdir -p $(@D)
$(LOG_LINK)$(CXX) $(CXXFLAGS) $(OBJECTS) -o $@ $(SHAREDLIBS) $(STATICLIBS)
2012-08-02 13:02:59 +08:00
$(OBJ_DIR)/%.o: %.cpp $(CORE_MAKEFILE_LIST)
@mkdir -p $(@D)
$(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) $(VISIBILITY) -c $< -o $@
2012-08-27 16:43:02 +08:00
$(OBJ_DIR)/%.o: ../%.cpp $(CORE_MAKEFILE_LIST)
@mkdir -p $(@D)
$(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) $(VISIBILITY) -c $< -o $@