Add all
[fltk_mvc_template.git] / _template / Makefile
index 46c77ed..148bda6 100644 (file)
@@ -6,8 +6,9 @@
 ############################################################################
 WORKDIR = $(shell pwd)
 
-all: freetype allegro nanox fltk _template linux_package windows_package android_package
-
+all: deps _template create_installers
+deps: freetype allegro nanox fltk
+create_installers: linux32_package linux_arm_package windows_package android_package
 
 #### Dependencies
 freetype:
@@ -30,6 +31,22 @@ tinyxml:
        cd $(WORKDIR)/packages/tinyxml; \
        make
 
+libsndfile:
+       cd $(WORKDIR)/packages/libsndfile; \
+       make
+
+libao:
+       cd $(WORKDIR)/packages/libao; \
+       make
+
+gtest:
+       cd $(WORKDIR)/packages/googletest; \
+       make
+
+boost:
+       cd $(WORKDIR)/packages/boost; \
+       make
+
 #### _template App
 _template:
        cd $(WORKDIR)/src; \
@@ -57,6 +74,22 @@ clean_tinyxml:
        cd $(WORKDIR)/packages/tinyxml; \
        make clean
 
+clean_libsndfile:
+       cd $(WORKDIR)/packages/libsndfile; \
+       make clean
+
+clean_libao:
+       cd $(WORKDIR)/packages/libao; \
+       make clean
+
+clean_gtest:
+       cd $(WORKDIR)/packages/googletest; \
+       make clean
+
+clean_boost:
+       cd $(WORKDIR)/packages/boost; \
+       make clean
+
 clean__template:
        cd $(WORKDIR)/src; \
        make clean
@@ -68,17 +101,29 @@ clean_lib:
        find $(WORKDIR)/include/ -maxdepth 1 -mindepth 1 -type d -exec rm -rf '{}' \;
 
 ### Create packages
-linux_package:
-       mkdir -p $(WORKDIR)/install_package/linux/lib
-       mkdir -p $(WORKDIR)/install_package/linux/bin
-       $(WORKDIR)/scripts/copydeps.sh $(WORKDIR)/src/bin/Release_Linux/_template $(WORKDIR)/install_package/linux/lib
-       cp $(WORKDIR)/src/bin/Release_Linux/_template $(WORKDIR)/install_package/linux/bin
-       cp $(WORKDIR)/src/start__template $(WORKDIR)/install_package/linux/
-       cp $(WORKDIR)/src/start__template.desktop $(WORKDIR)/install_package/linux/
-       cp $(WORKDIR)/src/Icon.png $(WORKDIR)/install_package/linux/
-       tar -zcvf $(WORKDIR)/install_package/install_linux -C $(WORKDIR)/install_package/linux/ .
-       $(WORKDIR)/scripts/gen_package_linux.sh $(WORKDIR)/install_package/install_linux
-       rm $(WORKDIR)/install_package/install_linux 
+linux32_package:
+       mkdir -p $(WORKDIR)/install_package/linux32/lib
+       mkdir -p $(WORKDIR)/install_package/linux32/bin
+       $(WORKDIR)/scripts/copydeps.sh $(WORKDIR)/src/bin/Release_Linux32/_template $(WORKDIR)/install_package/linux32/lib
+       cp $(WORKDIR)/src/bin/Release_Linux32/_template $(WORKDIR)/install_package/linux32/bin
+       cp $(WORKDIR)/src/start__template $(WORKDIR)/install_package/linux32/
+       cp $(WORKDIR)/src/start__template.desktop $(WORKDIR)/install_package/linux32/
+       cp $(WORKDIR)/src/Icon.png $(WORKDIR)/install_package/linux32/
+       tar -zcvf $(WORKDIR)/install_package/install_linux32 -C $(WORKDIR)/install_package/linux32/ .
+       $(WORKDIR)/scripts/gen_package_linux.sh $(WORKDIR)/install_package/install_linux32
+       rm $(WORKDIR)/install_package/install_linux32 
+
+linux_arm_package:
+       mkdir -p $(WORKDIR)/install_package/linux_arm/lib
+       mkdir -p $(WORKDIR)/install_package/linux_arm/bin
+       $(WORKDIR)/scripts/copydeps.sh $(WORKDIR)/src/bin/Release_LinuxARM/_template $(WORKDIR)/install_package/linux_arm/lib
+       cp $(WORKDIR)/src/bin/Release_LinuxARM/_template $(WORKDIR)/install_package/linux_arm/bin
+       cp $(WORKDIR)/src/start__template $(WORKDIR)/install_package/linux_arm/
+       cp $(WORKDIR)/src/start__template.desktop $(WORKDIR)/install_package/linux_arm/
+       cp $(WORKDIR)/src/Icon.png $(WORKDIR)/install_package/linux_arm/
+       tar -zcvf $(WORKDIR)/install_package/install_linux_arm -C $(WORKDIR)/install_package/linux_arm/ .
+       $(WORKDIR)/scripts/gen_package_linux.sh $(WORKDIR)/install_package/install_linux_arm
+       rm $(WORKDIR)/install_package/install_linux_arm 
 
 windows_package:
        mkdir -p $(WORKDIR)/install_package/windows/
@@ -91,4 +136,4 @@ android_package:
        mkdir -p $(WORKDIR)/install_package/
        cp $(WORKDIR)/src/bin/Android/_template.apk $(WORKDIR)/install_package/
 
-clean: clean_lib clean__template clean_fltk  clean_tinyxml clean_allegro clean_nanox clean_freetype
+clean: clean_lib clean__template clean_fltk  clean_tinyxml clean_allegro clean_nanox clean_freetype clean_libsndfile clean_libao clean_boost clean_gtest