2013-03-03 10:30:39 +08:00
|
|
|
TARGET = libcocos2d.so
|
2012-08-02 13:02:59 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
INCLUDES += \
|
2013-09-17 22:36:15 +08:00
|
|
|
-I../platform/third_party/linux/libfreetype2 \
|
|
|
|
-I../platform/third_party/common/etc \
|
|
|
|
-I../platform/third_party/common/s3tc \
|
|
|
|
-I../platform/third_party/common/atitc \
|
|
|
|
-I../../extensions \
|
|
|
|
-I../../extensions/CCBReader \
|
|
|
|
-I../../extensions/GUI/CCControlExtension \
|
|
|
|
-I../../extensions/GUI/CCControlExtension \
|
|
|
|
-I../../external/chipmunk/include/chipmunk \
|
|
|
|
-I../../extensions/network \
|
|
|
|
-I../../extensions/Components
|
2012-08-02 13:02:59 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
SOURCES = ../actions/CCAction.cpp \
|
|
|
|
../actions/CCActionCamera.cpp \
|
|
|
|
../actions/CCActionEase.cpp \
|
|
|
|
../actions/CCActionGrid.cpp \
|
|
|
|
../actions/CCActionGrid3D.cpp \
|
|
|
|
../actions/CCActionInstant.cpp \
|
|
|
|
../actions/CCActionInterval.cpp \
|
|
|
|
../actions/CCActionManager.cpp \
|
|
|
|
../actions/CCActionPageTurn3D.cpp \
|
|
|
|
../actions/CCActionProgressTimer.cpp \
|
|
|
|
../actions/CCActionTiledGrid.cpp \
|
|
|
|
../actions/CCActionCatmullRom.cpp \
|
|
|
|
../actions/CCActionTween.cpp \
|
|
|
|
../base_nodes/CCAtlasNode.cpp \
|
|
|
|
../base_nodes/CCNode.cpp \
|
|
|
|
../cocoa/CCAffineTransform.cpp \
|
|
|
|
../cocoa/CCAutoreleasePool.cpp \
|
|
|
|
../cocoa/CCGeometry.cpp \
|
|
|
|
../cocoa/CCNS.cpp \
|
|
|
|
../cocoa/CCObject.cpp \
|
|
|
|
../cocoa/CCSet.cpp \
|
|
|
|
../cocoa/CCArray.cpp \
|
|
|
|
../cocoa/CCDictionary.cpp \
|
|
|
|
../cocoa/CCString.cpp \
|
2013-05-10 15:37:40 +08:00
|
|
|
../cocoa/CCDataVisitor.cpp \
|
2013-05-29 08:06:41 +08:00
|
|
|
../cocoa/CCData.cpp \
|
2013-09-21 14:40:54 +08:00
|
|
|
../event_dispatcher/CCEventAcceleration.cpp \
|
|
|
|
../event_dispatcher/CCEventListenerAcceleration.cpp \
|
2013-09-12 20:51:44 +08:00
|
|
|
../event_dispatcher/CCEvent.cpp \
|
|
|
|
../event_dispatcher/CCEventDispatcher.cpp \
|
|
|
|
../event_dispatcher/CCEventListener.cpp \
|
2013-09-21 14:40:54 +08:00
|
|
|
../event_dispatcher/CCEventKeyboard.cpp \
|
|
|
|
../event_dispatcher/CCEventListenerKeyboard.cpp \
|
2013-09-12 20:51:44 +08:00
|
|
|
../event_dispatcher/CCTouch.cpp \
|
2013-09-21 14:40:54 +08:00
|
|
|
../event_dispatcher/CCEventTouch.cpp \
|
|
|
|
../event_dispatcher/CCEventListenerTouch.cpp \
|
|
|
|
../event_dispatcher/CCEventCustom.cpp \
|
|
|
|
../event_dispatcher/CCEventListenerCustom.cpp \
|
2013-03-03 10:30:39 +08:00
|
|
|
../draw_nodes/CCDrawingPrimitives.cpp \
|
|
|
|
../draw_nodes/CCDrawNode.cpp \
|
|
|
|
../effects/CCGrabber.cpp \
|
|
|
|
../effects/CCGrid.cpp \
|
2013-08-05 10:29:20 +08:00
|
|
|
../label_nodes/CCFont.cpp \
|
|
|
|
../label_nodes/CCFontAtlas.cpp \
|
|
|
|
../label_nodes/CCFontAtlasCache.cpp \
|
|
|
|
../label_nodes/CCFontAtlasFactory.cpp \
|
|
|
|
../label_nodes/CCFontDefinition.cpp \
|
|
|
|
../label_nodes/CCFontFNT.cpp \
|
|
|
|
../label_nodes/CCFontFreeType.cpp \
|
|
|
|
../label_nodes/CCLabel.cpp \
|
2013-03-03 10:30:39 +08:00
|
|
|
../label_nodes/CCLabelAtlas.cpp \
|
|
|
|
../label_nodes/CCLabelBMFont.cpp \
|
|
|
|
../label_nodes/CCLabelTTF.cpp \
|
2013-08-05 10:29:20 +08:00
|
|
|
../label_nodes/CCLabelTextFormatter.cpp \
|
|
|
|
../label_nodes/CCTextImage.cpp \
|
2013-03-03 10:30:39 +08:00
|
|
|
../layers_scenes_transitions_nodes/CCLayer.cpp \
|
|
|
|
../layers_scenes_transitions_nodes/CCScene.cpp \
|
|
|
|
../layers_scenes_transitions_nodes/CCTransition.cpp \
|
|
|
|
../layers_scenes_transitions_nodes/CCTransitionPageTurn.cpp \
|
|
|
|
../layers_scenes_transitions_nodes/CCTransitionProgress.cpp \
|
|
|
|
../menu_nodes/CCMenu.cpp \
|
|
|
|
../menu_nodes/CCMenuItem.cpp \
|
|
|
|
../misc_nodes/CCMotionStreak.cpp \
|
|
|
|
../misc_nodes/CCProgressTimer.cpp \
|
|
|
|
../misc_nodes/CCClippingNode.cpp \
|
|
|
|
../misc_nodes/CCRenderTexture.cpp \
|
|
|
|
../particle_nodes/CCParticleExamples.cpp \
|
|
|
|
../particle_nodes/CCParticleSystem.cpp \
|
|
|
|
../particle_nodes/CCParticleSystemQuad.cpp \
|
|
|
|
../particle_nodes/CCParticleBatchNode.cpp \
|
2013-09-17 22:36:15 +08:00
|
|
|
../physics/Box2D/CCPhysicsContactInfo.cpp \
|
|
|
|
../physics/Box2D/CCPhysicsJointInfo.cpp \
|
|
|
|
../physics/Box2D/CCPhysicsShapeInfo.cpp \
|
|
|
|
../physics/Box2D/CCPhysicsBodyInfo.cpp \
|
|
|
|
../physics/Box2D/CCPhysicsWorldInfo.cpp \
|
|
|
|
../physics/chipmunk/CCPhysicsContactInfo.cpp \
|
|
|
|
../physics/chipmunk/CCPhysicsJointInfo.cpp \
|
|
|
|
../physics/chipmunk/CCPhysicsShapeInfo.cpp \
|
|
|
|
../physics/chipmunk/CCPhysicsBodyInfo.cpp \
|
|
|
|
../physics/chipmunk/CCPhysicsWorldInfo.cpp \
|
2013-09-09 17:13:59 +08:00
|
|
|
../physics/CCPhysicsBody.cpp \
|
2013-09-17 22:36:15 +08:00
|
|
|
../physics/CCPhysicsContact.cpp \
|
|
|
|
../physics/CCPhysicsShape.cpp \
|
2013-09-09 17:13:59 +08:00
|
|
|
../physics/CCPhysicsJoint.cpp \
|
|
|
|
../physics/CCPhysicsWorld.cpp \
|
2013-03-03 10:30:39 +08:00
|
|
|
../platform/CCSAXParser.cpp \
|
|
|
|
../platform/CCThread.cpp \
|
|
|
|
../platform/CCEGLViewProtocol.cpp \
|
|
|
|
../platform/CCFileUtils.cpp \
|
|
|
|
../platform/linux/CCStdC.cpp \
|
|
|
|
../platform/linux/CCFileUtilsLinux.cpp \
|
|
|
|
../platform/linux/CCCommon.cpp \
|
|
|
|
../platform/linux/CCApplication.cpp \
|
|
|
|
../platform/linux/CCEGLView.cpp \
|
|
|
|
../platform/linux/CCImage.cpp \
|
|
|
|
../platform/linux/CCDevice.cpp \
|
2013-07-30 10:25:20 +08:00
|
|
|
../platform/third_party/common/etc/etc1.cpp \
|
2013-08-16 16:10:39 +08:00
|
|
|
../platform/third_party/common/s3tc/s3tc.cpp \
|
|
|
|
../platform/third_party/common/atitc/atitc.cpp \
|
2013-03-03 10:30:39 +08:00
|
|
|
../script_support/CCScriptSupport.cpp \
|
|
|
|
../sprite_nodes/CCAnimation.cpp \
|
|
|
|
../sprite_nodes/CCAnimationCache.cpp \
|
|
|
|
../sprite_nodes/CCSprite.cpp \
|
|
|
|
../sprite_nodes/CCSpriteBatchNode.cpp \
|
|
|
|
../sprite_nodes/CCSpriteFrame.cpp \
|
|
|
|
../sprite_nodes/CCSpriteFrameCache.cpp \
|
|
|
|
../support/ccUTF8.cpp \
|
|
|
|
../support/CCProfiling.cpp \
|
2013-03-08 11:18:34 +08:00
|
|
|
../support/user_default/CCUserDefault.cpp \
|
2013-03-03 10:30:39 +08:00
|
|
|
../support/TransformUtils.cpp \
|
|
|
|
../support/base64.cpp \
|
|
|
|
../support/ccUtils.cpp \
|
|
|
|
../support/CCVertex.cpp \
|
|
|
|
../support/CCNotificationCenter.cpp \
|
|
|
|
../support/image_support/TGAlib.cpp \
|
|
|
|
../support/tinyxml2/tinyxml2.cpp \
|
|
|
|
../support/zip_support/ZipUtils.cpp \
|
|
|
|
../support/zip_support/ioapi.cpp \
|
|
|
|
../support/zip_support/unzip.cpp \
|
|
|
|
../support/data_support/ccCArray.cpp \
|
2013-06-04 17:38:43 +08:00
|
|
|
../support/component/CCComponent.cpp \
|
|
|
|
../support/component/CCComponentContainer.cpp \
|
2013-03-03 10:30:39 +08:00
|
|
|
../text_input_node/CCIMEDispatcher.cpp \
|
|
|
|
../text_input_node/CCTextFieldTTF.cpp \
|
|
|
|
../textures/CCTexture2D.cpp \
|
|
|
|
../textures/CCTextureAtlas.cpp \
|
|
|
|
../textures/CCTextureCache.cpp \
|
|
|
|
../tilemap_parallax_nodes/CCParallaxNode.cpp \
|
|
|
|
../tilemap_parallax_nodes/CCTMXLayer.cpp \
|
|
|
|
../tilemap_parallax_nodes/CCTMXObjectGroup.cpp \
|
|
|
|
../tilemap_parallax_nodes/CCTMXTiledMap.cpp \
|
|
|
|
../tilemap_parallax_nodes/CCTMXXMLParser.cpp \
|
|
|
|
../tilemap_parallax_nodes/CCTileMapAtlas.cpp \
|
|
|
|
../shaders/CCGLProgram.cpp \
|
|
|
|
../shaders/ccGLStateCache.cpp \
|
|
|
|
../shaders/CCShaderCache.cpp \
|
|
|
|
../shaders/ccShaders.cpp \
|
|
|
|
../kazmath/src/aabb.c \
|
|
|
|
../kazmath/src/plane.c \
|
|
|
|
../kazmath/src/vec2.c \
|
|
|
|
../kazmath/src/mat3.c \
|
|
|
|
../kazmath/src/quaternion.c \
|
|
|
|
../kazmath/src/vec3.c \
|
|
|
|
../kazmath/src/mat4.c \
|
|
|
|
../kazmath/src/ray2.c \
|
|
|
|
../kazmath/src/vec4.c \
|
|
|
|
../kazmath/src/neon_matrix_impl.c \
|
|
|
|
../kazmath/src/utility.c \
|
|
|
|
../kazmath/src/GL/mat4stack.c \
|
|
|
|
../kazmath/src/GL/matrix.c \
|
|
|
|
../CCCamera.cpp \
|
|
|
|
../CCConfiguration.cpp \
|
|
|
|
../CCDirector.cpp \
|
|
|
|
../CCScheduler.cpp \
|
2013-05-23 16:50:48 +08:00
|
|
|
../ccFPSImages.c \
|
2013-07-05 17:32:50 +08:00
|
|
|
../ccTypes.cpp \
|
2013-07-25 17:48:22 +08:00
|
|
|
../cocos2d.cpp \
|
|
|
|
../CCDeprecated.cpp
|
2012-11-16 15:16:55 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
COCOS_ROOT = ../..
|
2012-08-02 13:02:59 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
include cocos2dx.mk
|
2012-08-02 13:02:59 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
CXXFLAGS += -Wno-sequence-point
|
|
|
|
CCFLAGS += -Wno-sequence-point
|
2012-08-02 13:02:59 +08:00
|
|
|
|
2013-09-17 22:36:15 +08:00
|
|
|
STATICLIBS += $(LIB_DIR)/libchipmunk.a
|
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
TARGET := $(LIB_DIR)/$(TARGET)
|
2012-09-19 03:42:57 +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 $@ $(SHAREDLIBS) $(STATICLIBS) $(LIBS)
|
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) -c $< -o $@
|
2012-08-02 13:02:59 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
$(OBJ_DIR)/%.o: ../%.c $(CORE_MAKEFILE_LIST)
|
|
|
|
@mkdir -p $(@D)
|
|
|
|
$(LOG_CC)$(CC) $(CCFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
|