mirror of https://github.com/axmolengine/axmol.git
21 lines
531 B
Makefile
21 lines
531 B
Makefile
|
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)
|
||
|
$(LOG_LINK)$(CXX) $(CXXFLAGS) $(OBJECTS) -shared -o $(TARGET) $(SHAREDLIBS) $(STATICLIBS)
|
||
|
|
||
|
$(OBJ_DIR)/%.o: ../%.cpp $(CORE_MAKEFILE_LIST)
|
||
|
@mkdir -p $(@D)
|
||
|
$(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) $(VISIBILITY) -c $< -o $@
|