From 03ed7ff77268501336af87db65446bde09689880 Mon Sep 17 00:00:00 2001 From: James Gregory Date: Tue, 23 Apr 2013 13:10:49 -0700 Subject: [PATCH] Move to a separate Makefile for Emscripten. --- Makefile | 18 +----------------- Makefile.emscripten | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 17 deletions(-) create mode 100644 Makefile.emscripten diff --git a/Makefile b/Makefile index 2380ac2f86..f8c529b257 100644 --- a/Makefile +++ b/Makefile @@ -14,26 +14,10 @@ define MAKE_TARGET +$(MAKE) -C samples/Lua/TestLua/proj.$(PLATFORM) $@ endef -define EMSCRIPTEN_MAKE_TARGET - +$(MAKE) -C external/chipmunk/proj.emscripten $1 - +$(MAKE) -C external/Box2D/proj.emscripten $1 - +$(MAKE) -C CocosDenshion/proj.emscripten $1 - +$(MAKE) -C extensions/proj.emscripten $1 - +$(MAKE) -C cocos2dx/proj.emscripten $1 - +$(MAKE) -C scripting/lua/proj.emscripten $1 - +$(MAKE) -C samples/Cpp/HelloCpp/proj.emscripten $1 - +$(MAKE) -C samples/Cpp/TestCpp/proj.emscripten $1 - +$(MAKE) -C samples/Cpp/SimpleGame/proj.emscripten $1 -endef - all: $(call MAKE_TARGET,all) clean: $(call MAKE_TARGET,clean) - $(call EMSCRIPTEN_MAKE_TARGET,clean) -emscripten: - $(call EMSCRIPTEN_MAKE_TARGET,all) - -.PHONY: all clean emscripten +.PHONY: all clean diff --git a/Makefile.emscripten b/Makefile.emscripten new file mode 100644 index 0000000000..23012dd392 --- /dev/null +++ b/Makefile.emscripten @@ -0,0 +1,25 @@ +PLATFORM = emscripten + +define MAKE_TARGET + +$(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) $@ + +$(MAKE) -C samples/Cpp/SimpleGame/proj.$(PLATFORM) $@ +endef + +# Haven't yet got the lua projects working. +# +$(MAKE) -C samples/Lua/HelloLua/proj.$(PLATFORM) $@ +# +$(MAKE) -C samples/Lua/TestLua/proj.$(PLATFORM) $@ + +all: + $(call MAKE_TARGET,all) + +clean: + $(call MAKE_TARGET,clean) + +.PHONY: all clean