Add tinyalse receipe to main makefile.
authorDaniel G <giri@nwrk.biz>
Thu, 31 Jan 2019 22:12:51 +0000 (23:12 +0100)
committerDaniel G <giri@nwrk.biz>
Thu, 31 Jan 2019 22:12:51 +0000 (23:12 +0100)
_template/Makefile

index 6c02eb8..a55d3ea 100644 (file)
@@ -5,9 +5,10 @@
 # Description: Universal Makefile for Unix based Operating Systems
 ############################################################################
 WORKDIR = $(shell pwd)
+APPINFO = $(WORKDIR)/src/appinfo
 
 all: deps _template create_installers
-deps: freetype allegro nanox fltk
+deps: freetype allegro nanox fltk libsndfile libao
 create_installers: linux32_package linux_arm_package windows_package android_package
 
 #### Dependencies
@@ -47,6 +48,14 @@ boost:
        cd $(WORKDIR)/packages/boost1.68.0; \
        make
 
+tinyalsa:
+       cd $(WORKDIR)/packages/tinyalsa1.0.2; \
+       make
+
+alsa:
+       cd $(WORKDIR)/packages/alsa-lib1.1.8; \
+       make
+
 #### _template App
 _template:
        cd $(WORKDIR)/src; \
@@ -90,6 +99,14 @@ clean_boost:
        cd $(WORKDIR)/packages/boost1.68.0; \
        make clean
 
+clean_tinyalsa:
+       cd $(WORKDIR)/packages/tinyalsa1.0.2; \
+       make clean
+
+clean_alsa:
+       cd $(WORKDIR)/packages/alsa-lib1.1.8; \
+       make clean
+
 clean__template:
        cd $(WORKDIR)/src; \
        make clean
@@ -106,9 +123,10 @@ linux32_package:
        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/
+       cp -r $(WORKDIR)/src/assets $(WORKDIR)/install_package/linux32/
+       cp $(APPINFO)/start__template $(WORKDIR)/install_package/linux32/
+       cp $(APPINFO)/start__template.desktop $(WORKDIR)/install_package/linux32/
+       cp $(APPINFO)/Icon.png $(WORKDIR)/install_package/linux32/
        tar -zcvf $(WORKDIR)/install_package/install__template_linux32 -C $(WORKDIR)/install_package/linux32/ .
        $(WORKDIR)/scripts/gen_package_linux.sh $(WORKDIR)/install_package/install__template_linux32
        rm $(WORKDIR)/install_package/install__template_linux32 
@@ -118,9 +136,10 @@ linux_arm_package:
        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/
+       cp -r $(WORKDIR)/src/assets $(WORKDIR)/install_package/linux_arm/
+       cp $(APPINFO)/start__template $(WORKDIR)/install_package/linux_arm/
+       cp $(APPINFO)/start__template.desktop $(WORKDIR)/install_package/linux_arm/
+       cp $(APPINFO)/Icon.png $(WORKDIR)/install_package/linux_arm/
        tar -zcvf $(WORKDIR)/install_package/install__template_linux_arm -C $(WORKDIR)/install_package/linux_arm/ .
        $(WORKDIR)/scripts/gen_package_linux.sh $(WORKDIR)/install_package/install__template_linux_arm
        rm $(WORKDIR)/install_package/install__template_linux_arm 
@@ -128,6 +147,7 @@ linux_arm_package:
 windows_package:
        mkdir -p $(WORKDIR)/install_package/windows/
        cp $(WORKDIR)/src/bin/Release_Windows/_template.exe $(WORKDIR)/install_package/windows/
+       cp -r $(WORKDIR)/src/assets $(WORKDIR)/install_package/windows/
        cd $(WORKDIR)/scripts/; \
        ./gen_package_windows.sh $(WORKDIR)/install_package/windows/*; \
        mv ./*.exe $(WORKDIR)/install_package/install__template_windows.exe
@@ -136,4 +156,4 @@ android_package:
        mkdir -p $(WORKDIR)/install_package/
        cp $(WORKDIR)/src/bin/Android/_template.apk $(WORKDIR)/install_package/install__template_android.apk
 
-clean: clean_lib clean__template clean_fltk  clean_tinyxml clean_allegro clean_nanox clean_freetype clean_libsndfile clean_libao clean_boost clean_gtest
+clean: clean_lib clean__template clean_fltk  clean_tinyxml clean_allegro clean_nanox clean_freetype clean_libsndfile clean_libao clean_boost clean_gtest clean_tinyalsa clean_alsa