Handle some stuff a little bit neater. (i.e. setting android target version)
[fltk_mvc_template.git] / _template / src / Makefile
index 1693c6e..60886fb 100644 (file)
@@ -10,7 +10,7 @@
 ###################################
 WORKDIR = $(shell pwd)
 SOURCES := $(shell ls *.cxx)
-PROJNAME = test
+PROJNAME = _template
 LIBDIR =
 INC = -I$(WORKDIR)/../include
 LDFLAGS = -std=c++11 -static-libstdc++ -static-libgcc -Wl,-Bstatic
@@ -47,7 +47,7 @@ LIBDIR_LINUXARM = -L$(WORKDIR)/../lib/linux_arm
 CFLAGS_LINUXARM = $(CFLAGS)
 RESINC_LINUXARM =
 LDFLAGS_LINUXARM = $(LDFLAGS)
-LIB_LINUXARM = $(LIB) -lm -lX11 -lxcb -lXau -lXdmcp -Wl,-Bdynamic -lpthread -lrt -ldl
+LIB_LINUXARM = $(LIB) -lm -Wl,-Bdynamic -lX11 -lxcb -lXau -lXdmcp -lpthread -lrt -ldl
 
 ###################################
 #MinGW | EDIT 4/14
@@ -428,7 +428,7 @@ before_android_apk:
        test -d $(CLASSDIR_ANDROID) || mkdir -p $(CLASSDIR_ANDROID)
        test -d $(ANDROID_SRC)/res/mipmap-hdpi || mkdir -p $(ANDROID_SRC)/res/mipmap-hdpi
        test -d $(ANDROID_SRC)/java/liballeg || mkdir -p $(ANDROID_SRC)/java/liballeg
-       cp $(WORKDIR)/../lib/android_arm/liballeg/* $(ANDROID_SRC)/java/liballeg
+       cp -r $(WORKDIR)/../lib/android_arm/liballeg/* $(ANDROID_SRC)/java/liballeg
        cp $(WORKDIR)/../lib/android_arm/liballegro.so $(ANDROID_SRC)/lib/$(ANDROID_ARCH_VER)/
        cp $(WORKDIR)/Icon.png $(ANDROID_SRC)/res/mipmap-hdpi/ic_launcher.png
        $(AAPT) package -f -m -J $(GENDIR_ANDROID) -M $(ANDROID_SRC)/AndroidManifest.xml -S $(ANDROID_SRC)/res -I $(ANDROID_CP)