2013-03-02 01:09:58 +08:00
|
|
|
COCOS_ROOT = ../..
|
|
|
|
COCOS_SRC_ROOT = $(COCOS_ROOT)/cocos2dx
|
|
|
|
|
|
|
|
INCLUDES = \
|
2013-06-08 15:35:45 +08:00
|
|
|
-I$(NACL_SDK_ROOT)/include
|
2013-03-02 01:09:58 +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/CCZone.cpp \
|
|
|
|
../cocoa/CCArray.cpp \
|
|
|
|
../cocoa/CCDictionary.cpp \
|
|
|
|
../cocoa/CCString.cpp \
|
2013-05-10 15:37:40 +08:00
|
|
|
../cocoa/CCDataVisitor.cpp \
|
2013-03-02 01:09:58 +08:00
|
|
|
../draw_nodes/CCDrawingPrimitives.cpp \
|
|
|
|
../draw_nodes/CCDrawNode.cpp \
|
|
|
|
../effects/CCGrabber.cpp \
|
|
|
|
../effects/CCGrid.cpp \
|
|
|
|
../keypad_dispatcher/CCKeypadDelegate.cpp \
|
|
|
|
../keypad_dispatcher/CCKeypadDispatcher.cpp \
|
|
|
|
../label_nodes/CCLabelAtlas.cpp \
|
|
|
|
../label_nodes/CCLabelBMFont.cpp \
|
|
|
|
../label_nodes/CCLabelTTF.cpp \
|
|
|
|
../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 \
|
|
|
|
../platform/CCSAXParser.cpp \
|
|
|
|
../platform/CCThread.cpp \
|
|
|
|
../platform/platform.cpp \
|
|
|
|
../platform/CCImageCommonWebp.cpp \
|
|
|
|
../platform/CCEGLViewProtocol.cpp \
|
|
|
|
../platform/CCFileUtils.cpp \
|
|
|
|
../platform/nacl/CCCommon.cpp \
|
|
|
|
../platform/nacl/CCDevice.cpp \
|
|
|
|
../platform/nacl/CCFileUtilsNaCl.cpp \
|
|
|
|
../platform/nacl/CCApplication.cpp \
|
|
|
|
../platform/nacl/CCEGLView.cpp \
|
|
|
|
../platform/nacl/CCImage.cpp \
|
|
|
|
../platform/nacl/CCInstance.cpp \
|
|
|
|
../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/tinyxml2/tinyxml2.cpp \
|
|
|
|
../support/CCPointExtension.cpp \
|
|
|
|
../support/CCProfiling.cpp \
|
2013-03-07 09:51:26 +08:00
|
|
|
../support/user_default/CCUserDefault.cpp \
|
2013-03-02 01:09:58 +08:00
|
|
|
../support/TransformUtils.cpp \
|
|
|
|
../support/base64.cpp \
|
|
|
|
../support/ccUtils.cpp \
|
|
|
|
../support/ccUTF8.cpp \
|
|
|
|
../support/CCVertex.cpp \
|
|
|
|
../support/CCNotificationCenter.cpp \
|
|
|
|
../support/image_support/TGAlib.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-02 01:09:58 +08:00
|
|
|
../text_input_node/CCIMEDispatcher.cpp \
|
|
|
|
../text_input_node/CCTextFieldTTF.cpp \
|
|
|
|
../textures/CCTexture2D.cpp \
|
|
|
|
../textures/CCTextureAtlas.cpp \
|
|
|
|
../textures/CCTextureCache.cpp \
|
2013-05-27 15:06:43 +08:00
|
|
|
../textures/CCTextureETC.cpp \
|
2013-03-02 01:09:58 +08:00
|
|
|
../textures/CCTexturePVR.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 \
|
|
|
|
../touch_dispatcher/CCTouchDispatcher.cpp \
|
|
|
|
../touch_dispatcher/CCTouchHandler.cpp \
|
|
|
|
../touch_dispatcher/CCTouch.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.cpp \
|
|
|
|
../kazmath/src/vec3.cpp \
|
|
|
|
../kazmath/src/mat4.cpp \
|
|
|
|
../kazmath/src/ray2.cpp \
|
|
|
|
../kazmath/src/vec4.cpp \
|
|
|
|
../kazmath/src/neon_matrix_impl.cpp \
|
|
|
|
../kazmath/src/utility.cpp \
|
|
|
|
../kazmath/src/GL/mat4stack.cpp \
|
|
|
|
../kazmath/src/GL/matrix.cpp \
|
|
|
|
../CCCamera.cpp \
|
|
|
|
../CCConfiguration.cpp \
|
|
|
|
../CCDirector.cpp \
|
|
|
|
../CCScheduler.cpp \
|
2013-05-23 16:50:48 +08:00
|
|
|
../ccFPSImages.c \
|
2013-03-02 01:09:58 +08:00
|
|
|
../cocos2d.cpp
|
|
|
|
|
|
|
|
include cocos2dx.mk
|
|
|
|
|
2013-03-05 02:19:50 +08:00
|
|
|
CXXFLAGS += -Wno-sequence-point
|
|
|
|
|
2013-03-02 01:09:58 +08:00
|
|
|
TARGET = $(LIB_DIR)/libcocos2d.a
|
|
|
|
|
|
|
|
all: $(TARGET)
|
|
|
|
|
2013-03-05 02:19:50 +08:00
|
|
|
$(TARGET): $(OBJECTS) $(CORE_MAKEFILE_LIST)
|
2013-03-02 01:09:58 +08:00
|
|
|
@mkdir -p $(@D)
|
2013-03-05 02:19:50 +08:00
|
|
|
$(LOG_AR)$(NACL_AR) $(ARFLAGS) $@ $(OBJECTS)
|
2013-03-02 01:09:58 +08:00
|
|
|
|
2013-03-05 02:19:50 +08:00
|
|
|
$(OBJ_DIR)/%.o: ../%.cpp $(CORE_MAKEFILE_LIST)
|
2013-03-02 01:09:58 +08:00
|
|
|
@mkdir -p $(@D)
|
2013-03-05 02:19:50 +08:00
|
|
|
$(LOG_CXX)$(NACL_CXX) -MMD $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
|
2013-03-02 01:09:58 +08:00
|
|
|
|
2013-03-05 02:19:50 +08:00
|
|
|
$(OBJ_DIR)/%.o: ../%.c $(CORE_MAKEFILE_LIST)
|
2013-03-02 01:09:58 +08:00
|
|
|
@mkdir -p $(@D)
|
2013-03-05 02:19:50 +08:00
|
|
|
$(LOG_CC)$(NACL_CC) -MMD $(CCFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
|