2013-03-03 10:30:39 +08:00
|
|
|
TARGET = libcocosdenshion.so
|
2012-08-02 13:02:59 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
INCLUDES += -I.. -I../include
|
2013-01-27 19:57:54 +08:00
|
|
|
|
2012-08-02 13:02:59 +08:00
|
|
|
ifeq ($(LBITS),64)
|
2013-03-03 10:30:39 +08:00
|
|
|
INCLUDES += -I../third_party/fmod/lib64/api/inc
|
2012-08-02 13:02:59 +08:00
|
|
|
else
|
2013-03-03 10:30:39 +08:00
|
|
|
INCLUDES += -I../third_party/fmod/api/inc
|
2012-08-02 13:02:59 +08:00
|
|
|
endif
|
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
SOURCES = ../linux/FmodAudioPlayer.cpp \
|
|
|
|
../linux/SimpleAudioEngine.cpp \
|
2012-08-02 13:02:59 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
COCOS_ROOT = ../..
|
|
|
|
include $(COCOS_ROOT)/cocos2dx/proj.linux/cocos2dx.mk
|
2012-08-02 13:02:59 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
TARGET := $(LIB_DIR)/$(TARGET)
|
2012-08-02 13:02:59 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
all: $(TARGET)
|
2012-08-02 13:02:59 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
$(TARGET): $(OBJECTS) $(CORE_MAKEFILE_LIST)
|
|
|
|
@mkdir -p $(@D)
|
|
|
|
$(LOG_LINK)$(CXX) $(CXXFLAGS) $(OBJECTS) -shared -o $(TARGET) $(SHAREDLIBS) $(STATICLIBS)
|
2012-09-19 03:42:57 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
$(OBJ_DIR)/%.o: ../%.cpp $(CORE_MAKEFILE_LIST)
|
|
|
|
@mkdir -p $(@D)
|
|
|
|
$(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) $(VISIBILITY) -c $< -o $@
|