2013-04-04 12:42:49 +08:00
|
|
|
EXECUTABLE = HelloCpp.html
|
2013-04-04 09:26:55 +08:00
|
|
|
|
|
|
|
INCLUDES = -I.. -I../Classes
|
|
|
|
|
|
|
|
SOURCES = main.cpp \
|
|
|
|
../Classes/AppDelegate.cpp \
|
|
|
|
../Classes/HelloWorldScene.cpp
|
|
|
|
|
|
|
|
COCOS_ROOT = ../../../..
|
|
|
|
include $(COCOS_ROOT)/cocos2dx/proj.emscripten/cocos2dx.mk
|
|
|
|
|
|
|
|
SHAREDLIBS += -lcocos2d
|
|
|
|
COCOS_LIBS = $(LIB_DIR)/libcocos2d.so
|
|
|
|
|
|
|
|
$(TARGET): $(OBJECTS) $(STATICLIBS) $(COCOS_LIBS) $(CORE_MAKEFILE_LIST)
|
|
|
|
@mkdir -p $(@D)
|
|
|
|
$(CXX) $(CXXFLAGS) $(OBJECTS) -o $@ $(SHAREDLIBS) $(STATICLIBS)
|
|
|
|
|
|
|
|
$(OBJ_DIR)/%.o: %.cpp $(CORE_MAKEFILE_LIST)
|
|
|
|
@mkdir -p $(@D)
|
|
|
|
$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) $(VISIBILITY) -c $< -o $@
|
|
|
|
|
|
|
|
$(OBJ_DIR)/%.o: ../%.cpp $(CORE_MAKEFILE_LIST)
|
|
|
|
@mkdir -p $(@D)
|
|
|
|
$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) $(VISIBILITY) -c $< -o $@
|