2010-09-13 11:09:23 +08:00
|
|
|
|
|
|
|
############################################################################
|
|
|
|
#
|
|
|
|
# Makefile for building : chipmunk_Arm.TMK3
|
|
|
|
# Created by TMK3_V2.3, please do not modify.
|
|
|
|
#
|
|
|
|
#############################################################################
|
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
TO_PROJECT_ROOT = ../../../PRJ_TG3
|
2010-11-23 18:20:46 +08:00
|
|
|
OUTPUT_FILENAME = libChipmunkStatic.a
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-10-26 17:51:37 +08:00
|
|
|
include $(TO_PROJECT_ROOT)/MakeInclude/Makefile_Base_StaticLib.ARM
|
2010-09-13 11:09:23 +08:00
|
|
|
include $(TO_PROJECT_ROOT)/MakeInclude/Makefile_TOPS_Def.ARM
|
|
|
|
|
2011-03-10 14:24:13 +08:00
|
|
|
DEFINES += -DCC_UNDER_WOPHONE
|
2010-11-18 21:47:14 +08:00
|
|
|
INCLUDE_PATH += -I../ \
|
|
|
|
-I../../cocos2dx -I../../cocos2dx/include \
|
|
|
|
-I../include -I../include/chipmunk -I../include/chipmunk/contains \
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-10-18 10:36:00 +08:00
|
|
|
CC_FLAGS += -std=c99 -fvisibility=default
|
2010-09-13 11:09:23 +08:00
|
|
|
|
|
|
|
OBJECTS_DIR = ./Debug-ARM
|
|
|
|
DESTDIR = $(TO_PROJECT_ROOT)/$(BIN_OUTPUT_DIR)
|
|
|
|
TARGET = $(DESTDIR)/$(OUTPUT_FILENAME)
|
|
|
|
|
|
|
|
DEL_FILE = rm -f
|
|
|
|
MKDIR = mkdir -p
|
|
|
|
|
|
|
|
first: all
|
|
|
|
|
|
|
|
OBJECTS = \
|
|
|
|
$(OBJECTS_DIR)/chipmunk.o \
|
|
|
|
$(OBJECTS_DIR)/cpArbiter.o \
|
|
|
|
$(OBJECTS_DIR)/cpArray.o \
|
|
|
|
$(OBJECTS_DIR)/cpBB.o \
|
|
|
|
$(OBJECTS_DIR)/cpBody.o \
|
|
|
|
$(OBJECTS_DIR)/cpCollision.o \
|
|
|
|
$(OBJECTS_DIR)/cpHashSet.o \
|
|
|
|
$(OBJECTS_DIR)/cpPolyShape.o \
|
|
|
|
$(OBJECTS_DIR)/cpShape.o \
|
2011-05-21 14:58:22 +08:00
|
|
|
$(OBJECTS_DIR)/cpSpace.o \
|
|
|
|
$(OBJECTS_DIR)/cpSpaceComponent.o \
|
|
|
|
$(OBJECTS_DIR)/cpSpaceHash.o \
|
|
|
|
$(OBJECTS_DIR)/cpSpaceQuery.o \
|
|
|
|
$(OBJECTS_DIR)/cpSpaceStep.o \
|
2010-09-13 11:09:23 +08:00
|
|
|
$(OBJECTS_DIR)/cpVect.o \
|
|
|
|
$(OBJECTS_DIR)/cpConstraint.o \
|
|
|
|
$(OBJECTS_DIR)/cpDampedRotarySpring.o \
|
|
|
|
$(OBJECTS_DIR)/cpDampedSpring.o \
|
|
|
|
$(OBJECTS_DIR)/cpGearJoint.o \
|
|
|
|
$(OBJECTS_DIR)/cpGrooveJoint.o \
|
|
|
|
$(OBJECTS_DIR)/cpPinJoint.o \
|
|
|
|
$(OBJECTS_DIR)/cpPivotJoint.o \
|
|
|
|
$(OBJECTS_DIR)/cpRatchetJoint.o \
|
|
|
|
$(OBJECTS_DIR)/cpRotaryLimitJoint.o \
|
|
|
|
$(OBJECTS_DIR)/cpSimpleMotor.o \
|
|
|
|
$(OBJECTS_DIR)/cpSlideJoint.o
|
|
|
|
|
|
|
|
ADD_OBJECTS +=
|
|
|
|
|
|
|
|
$(OBJECTS_DIR) :
|
|
|
|
$(MKDIR) $(OBJECTS_DIR)
|
|
|
|
|
|
|
|
$(DESTDIR) :
|
|
|
|
$(MKDIR) $(DESTDIR)
|
|
|
|
|
|
|
|
all : $(OBJECTS_DIR) $(DESTDIR) $(TARGET)
|
|
|
|
|
|
|
|
$(TARGET) : $(OBJECTS)
|
|
|
|
$(LINK) $(LINK_FLAGS) -o $(TARGET) $(SYS_OBJECTS) $(OBJECTS) $(ADD_OBJECTS) $(LIBS) $(SYS_LIBS)
|
|
|
|
|
|
|
|
clean :
|
|
|
|
-$(DEL_FILE) $(OBJECTS)
|
|
|
|
-$(DEL_FILE) $(TARGET)
|
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
$(OBJECTS_DIR)/chipmunk.o : ../src/chipmunk.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/chipmunk.o ../src/chipmunk.c
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
$(OBJECTS_DIR)/cpArbiter.o : ../src/cpArbiter.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpArbiter.o ../src/cpArbiter.c
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
$(OBJECTS_DIR)/cpArray.o : ../src/cpArray.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpArray.o ../src/cpArray.c
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
$(OBJECTS_DIR)/cpBB.o : ../src/cpBB.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpBB.o ../src/cpBB.c
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
$(OBJECTS_DIR)/cpBody.o : ../src/cpBody.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpBody.o ../src/cpBody.c
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
$(OBJECTS_DIR)/cpCollision.o : ../src/cpCollision.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpCollision.o ../src/cpCollision.c
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
$(OBJECTS_DIR)/cpHashSet.o : ../src/cpHashSet.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpHashSet.o ../src/cpHashSet.c
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
$(OBJECTS_DIR)/cpPolyShape.o : ../src/cpPolyShape.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpPolyShape.o ../src/cpPolyShape.c
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
$(OBJECTS_DIR)/cpShape.o : ../src/cpShape.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpShape.o ../src/cpShape.c
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
$(OBJECTS_DIR)/cpSpace.o : ../src/cpSpace.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpSpace.o ../src/cpSpace.c
|
2011-05-21 14:58:22 +08:00
|
|
|
|
2011-05-24 17:52:24 +08:00
|
|
|
$(OBJECTS_DIR)/cpSpaceComponent.o : ../src/cpSpaceComponent.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpSpaceComponent.o ../src/cpSpaceComponent.c
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
$(OBJECTS_DIR)/cpSpaceHash.o : ../src/cpSpaceHash.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpSpaceHash.o ../src/cpSpaceHash.c
|
2011-05-21 14:58:22 +08:00
|
|
|
|
2011-05-24 17:52:24 +08:00
|
|
|
$(OBJECTS_DIR)/cpSpaceQuery.o : ../src/cpSpaceQuery.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpSpaceQuery.o ../src/cpSpaceQuery.c
|
2011-05-21 14:58:22 +08:00
|
|
|
|
2011-05-24 17:52:24 +08:00
|
|
|
$(OBJECTS_DIR)/cpSpaceStep.o : ../src/cpSpaceStep.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpSpaceStep.o ../src/cpSpaceStep.c
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
$(OBJECTS_DIR)/cpVect.o : ../src/cpVect.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpVect.o ../src/cpVect.c
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
$(OBJECTS_DIR)/cpConstraint.o : ../src/constraints/cpConstraint.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpConstraint.o ../src/constraints/cpConstraint.c
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
$(OBJECTS_DIR)/cpDampedRotarySpring.o : ../src/constraints/cpDampedRotarySpring.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpDampedRotarySpring.o ../src/constraints/cpDampedRotarySpring.c
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
$(OBJECTS_DIR)/cpDampedSpring.o : ../src/constraints/cpDampedSpring.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpDampedSpring.o ../src/constraints/cpDampedSpring.c
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
$(OBJECTS_DIR)/cpGearJoint.o : ../src/constraints/cpGearJoint.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpGearJoint.o ../src/constraints/cpGearJoint.c
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
$(OBJECTS_DIR)/cpGrooveJoint.o : ../src/constraints/cpGrooveJoint.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpGrooveJoint.o ../src/constraints/cpGrooveJoint.c
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
$(OBJECTS_DIR)/cpPinJoint.o : ../src/constraints/cpPinJoint.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpPinJoint.o ../src/constraints/cpPinJoint.c
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
$(OBJECTS_DIR)/cpPivotJoint.o : ../src/constraints/cpPivotJoint.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpPivotJoint.o ../src/constraints/cpPivotJoint.c
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
$(OBJECTS_DIR)/cpRatchetJoint.o : ../src/constraints/cpRatchetJoint.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpRatchetJoint.o ../src/constraints/cpRatchetJoint.c
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
$(OBJECTS_DIR)/cpRotaryLimitJoint.o : ../src/constraints/cpRotaryLimitJoint.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpRotaryLimitJoint.o ../src/constraints/cpRotaryLimitJoint.c
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
$(OBJECTS_DIR)/cpSimpleMotor.o : ../src/constraints/cpSimpleMotor.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpSimpleMotor.o ../src/constraints/cpSimpleMotor.c
|
2010-09-13 11:09:23 +08:00
|
|
|
|
2010-11-18 21:47:14 +08:00
|
|
|
$(OBJECTS_DIR)/cpSlideJoint.o : ../src/constraints/cpSlideJoint.c
|
|
|
|
$(CC) -c $(CC_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/cpSlideJoint.o ../src/constraints/cpSlideJoint.c
|
2010-09-13 11:09:23 +08:00
|
|
|
|