2013-04-17 23:26:01 +08:00
|
|
|
PLATFORM ?= linux
|
2013-03-03 10:30:39 +08:00
|
|
|
|
2013-06-25 23:11:28 +08:00
|
|
|
define MAKE_TARGETS
|
2013-03-03 10:30:39 +08:00
|
|
|
+$(MAKE) -C external/chipmunk/proj.$(PLATFORM) $@
|
|
|
|
+$(MAKE) -C external/Box2D/proj.$(PLATFORM) $@
|
|
|
|
+$(MAKE) -C CocosDenshion/proj.$(PLATFORM) $@
|
|
|
|
+$(MAKE) -C extensions/proj.$(PLATFORM) $@
|
|
|
|
+$(MAKE) -C cocos2dx/proj.$(PLATFORM) $@
|
|
|
|
+$(MAKE) -C scripting/lua/proj.$(PLATFORM) $@
|
|
|
|
+$(MAKE) -C samples/Cpp/HelloCpp/proj.$(PLATFORM) $@
|
|
|
|
+$(MAKE) -C samples/Cpp/TestCpp/proj.$(PLATFORM) $@
|
2013-03-09 02:00:21 +08:00
|
|
|
+$(MAKE) -C samples/Cpp/SimpleGame/proj.$(PLATFORM) $@
|
2013-06-25 23:11:28 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
# Haven't yet got the lua projects working with emscripten
|
|
|
|
ifneq ($(PLATFORM),emscripten)
|
|
|
|
define MAKE_LUA
|
2013-03-03 10:30:39 +08:00
|
|
|
+$(MAKE) -C samples/Lua/HelloLua/proj.$(PLATFORM) $@
|
|
|
|
+$(MAKE) -C samples/Lua/TestLua/proj.$(PLATFORM) $@
|
|
|
|
endef
|
2013-06-25 23:11:28 +08:00
|
|
|
endif
|
2013-03-03 10:30:39 +08:00
|
|
|
|
|
|
|
all:
|
2013-06-25 23:11:28 +08:00
|
|
|
$(call MAKE_TARGETS,all)
|
|
|
|
$(call MAKE_LUA,all)
|
2013-03-03 10:30:39 +08:00
|
|
|
|
|
|
|
clean:
|
2013-06-25 23:11:28 +08:00
|
|
|
$(call MAKE_TARGETS,clean)
|
|
|
|
$(call MAKE_LUA,clean)
|
2013-03-03 10:30:39 +08:00
|
|
|
|
|
|
|
.PHONY: all clean
|