axmol/CocosDenshion/proj.linux/Makefile

28 lines
685 B
Makefile
Raw Normal View History

TARGET = libcocosdenshion.so
2012-08-02 13:02:59 +08:00
INCLUDES += -I.. -I../include
2012-08-02 13:02:59 +08:00
ifeq ($(LBITS),64)
INCLUDES += -I../third_party/fmod/lib64/api/inc
2012-08-02 13:02:59 +08:00
else
INCLUDES += -I../third_party/fmod/api/inc
2012-08-02 13:02:59 +08:00
endif
SOURCES = ../linux/FmodAudioPlayer.cpp \
../linux/SimpleAudioEngine.cpp \
2012-08-02 13:02:59 +08:00
COCOS_ROOT = ../..
include $(COCOS_ROOT)/cocos2dx/proj.linux/cocos2dx.mk
2012-08-02 13:02:59 +08:00
TARGET := $(LIB_DIR)/$(TARGET)
2012-08-02 13:02:59 +08:00
all: $(TARGET)
2012-08-02 13:02:59 +08:00
$(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 $@