axmol/tests/test.linux/Makefile

128 lines
4.8 KiB
Makefile

CC = gcc
CXX = g++
TARGET = cocos2dx-test
CCFLAGS = -Wall -g -O2
CXXFLAGS = -Wall -g -O2
VISIBILITY =
INCLUDES = -I../ \
-I../../cocos2dx/platform/third_party/linux \
-I../../cocos2dx/include \
-I../../cocos2dx \
-I../../cocos2dx/platform \
-I../../CocosDenshion/include \
-I../../chipmunk/include/chipmunk \
-I../../
DEFINES = -DLINUX
OBJECTS = ../tests/AccelerometerTest/AccelerometerTest.o \
../tests/ActionManagerTest/ActionManagerTest.o \
../tests/ActionsTest/ActionsTest.o \
../tests/Box2DTest/Box2dTest.o \
../tests/Box2DTestBed/Box2dView.o \
../tests/Box2DTestBed/GLES-Render.o \
../tests/Box2DTestBed/Test.o \
../tests/Box2DTestBed/TestEntries.o \
../tests/BugsTest/Bug-1159.o \
../tests/BugsTest/Bug-1174.o \
../tests/BugsTest/Bug-350.o \
../tests/BugsTest/Bug-422.o \
../tests/BugsTest/Bug-624.o \
../tests/BugsTest/Bug-886.o \
../tests/BugsTest/Bug-899.o \
../tests/BugsTest/Bug-914.o \
../tests/BugsTest/Bug-458/Bug-458.o \
../tests/BugsTest/Bug-458/QuestionContainerSprite.o \
../tests/BugsTest/BugsTest.o \
../tests/ChipmunkTest/Bounce.o \
../tests/ChipmunkTest/Joints.o \
../tests/ChipmunkTest/LogoSmash.o \
../tests/ChipmunkTest/MagnetsElectric.o \
../tests/ChipmunkTest/OneWay.o \
../tests/ChipmunkTest/Planet.o \
../tests/ChipmunkTest/Player.o \
../tests/ChipmunkTest/Plink.o \
../tests/ChipmunkTest/Pump.o \
../tests/ChipmunkTest/PyramidStack.o \
../tests/ChipmunkTest/PyramidTopple.o \
../tests/ChipmunkTest/Query.o \
../tests/ChipmunkTest/Sensors.o \
../tests/ChipmunkTest/Simple.o \
../tests/ChipmunkTest/Springies.o \
../tests/ChipmunkTest/Tank.o \
../tests/ChipmunkTest/TheoJansen.o \
../tests/ChipmunkTest/Tumble.o \
../tests/ChipmunkTest/UnsafeOps.o \
../tests/ChipmunkTest/cocos2dChipmunkDemo.o \
../tests/ChipmunkTest/drawSpace.o \
../tests/ClickAndMoveTest/ClickAndMoveTest.o \
../tests/CocosDenshionTest/CocosDenshionTest.o \
../tests/CocosNodeTest/CocosNodeTest.o \
../tests/CurlTest/CurlTest.o \
../tests/CurrentLanguageTest/CurrentLanguageTest.o \
../tests/DirectorTest/DirectorTest.o \
../tests/DrawPrimitivesTest/DrawPrimitivesTest.o \
../tests/EaseActionsTest/EaseActionsTest.o \
../tests/EffectsAdvancedTest/EffectsAdvancedTest.o \
../tests/EffectsTest/EffectsTest.o \
../tests/FontTest/FontTest.o \
../tests/HiResTest/HiResTest.o \
../tests/IntervalTest/IntervalTest.o \
../tests/KeypadTest/KeypadTest.o \
../tests/LabelTest/LabelTest.o \
../tests/LayerTest/LayerTest.o \
../tests/MenuTest/MenuTest.o \
../tests/MotionStreakTest/MotionStreakTest.o \
../tests/ParallaxTest/ParallaxTest.o \
../tests/ParticleTest/ParticleTest.o \
../tests/PerformanceTest/PerformanceNodeChildrenTest.o \
../tests/PerformanceTest/PerformanceParticleTest.o \
../tests/PerformanceTest/PerformanceSpriteTest.o \
../tests/PerformanceTest/PerformanceTest.o \
../tests/PerformanceTest/PerformanceTextureTest.o \
../tests/PerformanceTest/PerformanceTouchesTest.o \
../tests/ProgressActionsTest/ProgressActionsTest.o \
../tests/RenderTextureTest/RenderTextureTest.o \
../tests/RotateWorldTest/RotateWorldTest.o \
../tests/SceneTest/SceneTest.o \
../tests/SchedulerTest/SchedulerTest.o \
../tests/SpriteTest/SpriteTest.o \
../tests/TextInputTest/TextInputTest.o \
../tests/TextureCacheTest/TextureCacheTest.o \
../tests/Texture2dTest/Texture2dTest.o \
../tests/TileMapTest/TileMapTest.o \
../tests/TouchesTest/Ball.o \
../tests/TouchesTest/Paddle.o \
../tests/TouchesTest/TouchesTest.o \
../tests/TransitionsTest/TransitionsTest.o \
../tests/UserDefaultTest/UserDefaultTest.o \
../tests/ZwoptexTest/ZwoptexTest.o \
../tests/ExtensionsTest/NotificationCenterTest.o \
../tests/ExtensionsTest/ExtensionsTest.o \
../tests/controller.o \
../tests/testBasic.o \
../AppDelegate.o \
./main.o
STATICLIBS_DIR = ../../cocos2dx/platform/third_party/linux/libraries
STATICLIBS = ../../lib/linux/Debug/libbox2d.a \
../../lib/linux/Debug/libchipmunk.a \
$(STATICLIBS_DIR)/libcurl.a
SHAREDLIBS = -L../../lib/linux/Debug -lcocos2d -lrt -lz -lcocosdenshion -Wl,-rpath,../../lib/linux/Debug/
####### Build rules
$(TARGET): $(OBJECTS)
$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) $(OBJECTS) -o $(TARGET) $(SHAREDLIBS) $(STATICLIBS)
####### Compile
%.o: %.cpp
$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) $(VISIBILITY) -c $< -o $@
%.o: %.c
$(CC) $(CCFLAGS) $(INCLUDES) $(DEFINES) $(VISIBILITY) -c $< -o $@
clean:
rm -f $(OBJECTS) $(TARGET) core