2013-04-04 09:26:55 +08:00
|
|
|
TARGET = libcocosdenshion.so
|
|
|
|
|
|
|
|
INCLUDES += -I.. -I../include
|
|
|
|
|
|
|
|
SOURCES = ../emscripten/SimpleAudioEngine.cpp
|
|
|
|
|
|
|
|
COCOS_ROOT = ../..
|
|
|
|
include $(COCOS_ROOT)/cocos2dx/proj.emscripten/cocos2dx.mk
|
|
|
|
|
|
|
|
TARGET := $(LIB_DIR)/$(TARGET)
|
|
|
|
|
|
|
|
all: $(TARGET)
|
|
|
|
|
|
|
|
$(TARGET): $(OBJECTS) $(CORE_MAKEFILE_LIST)
|
|
|
|
@mkdir -p $(@D)
|
2013-04-24 05:43:59 +08:00
|
|
|
$(CXX) $(CXXFLAGS) $(OBJECTS) -shared -o $(TARGET) $(SHAREDLIBS) $(STATICLIBS)
|
2013-04-04 09:26:55 +08:00
|
|
|
|
|
|
|
$(OBJ_DIR)/%.o: ../%.cpp $(CORE_MAKEFILE_LIST)
|
|
|
|
@mkdir -p $(@D)
|
2013-04-24 05:43:59 +08:00
|
|
|
$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) $(VISIBILITY) -c $< -o $@
|