2013-03-03 10:30:39 +08:00
|
|
|
SOURCES = ../src/chipmunk.c \
|
|
|
|
../src/cpBody.c \
|
|
|
|
../src/cpSpace.c \
|
|
|
|
../src/cpSpatialIndex.c \
|
|
|
|
../src/cpArbiter.c \
|
|
|
|
../src/cpCollision.c \
|
|
|
|
../src/cpSpaceComponent.c \
|
|
|
|
../src/cpSweep1D.c \
|
|
|
|
../src/cpArray.c \
|
|
|
|
../src/cpHashSet.c \
|
|
|
|
../src/cpSpaceHash.c \
|
|
|
|
../src/cpVect.c \
|
|
|
|
../src/cpBB.c \
|
|
|
|
../src/cpPolyShape.c \
|
|
|
|
../src/cpSpaceQuery.c \
|
|
|
|
../src/cpBBTree.c \
|
|
|
|
../src/cpShape.c \
|
|
|
|
../src/cpSpaceStep.c \
|
|
|
|
../src/constraints/cpConstraint.c \
|
|
|
|
../src/constraints/cpPivotJoint.c \
|
|
|
|
../src/constraints/cpDampedRotarySpring.c \
|
|
|
|
../src/constraints/cpRatchetJoint.c \
|
|
|
|
../src/constraints/cpDampedSpring.c \
|
|
|
|
../src/constraints/cpRotaryLimitJoint.c \
|
|
|
|
../src/constraints/cpGearJoint.c \
|
|
|
|
../src/constraints/cpSimpleMotor.c \
|
|
|
|
../src/constraints/cpGrooveJoint.c \
|
|
|
|
../src/constraints/cpSlideJoint.c \
|
|
|
|
../src/constraints/cpPinJoint.c \
|
|
|
|
|
|
|
|
include ../../../cocos2dx/proj.linux/cocos2dx.mk
|
|
|
|
|
|
|
|
TARGET = $(LIB_DIR)/libchipmunk.a
|
2012-08-02 13:02:59 +08:00
|
|
|
INCLUDES = -I../include/chipmunk
|
|
|
|
DEFINES = -DLINUX
|
2013-03-03 10:30:39 +08:00
|
|
|
CCFLAGS += -std=gnu99
|
|
|
|
OBJECTS := $(subst src/,,$(OBJECTS))
|
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_AR)$(AR) $(ARFLAGS) $(TARGET) $(OBJECTS)
|
2012-09-19 03:42:57 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
$(OBJ_DIR)/%.o: ../src/%.c $(CORE_MAKEFILE_LIST)
|
|
|
|
@mkdir -p $(@D)
|
|
|
|
$(LOG_CC)$(CC) $(CCFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
|