X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=Makefile.android;fp=Makefile.android;h=33a7851d8f6c5d07ed1d717f70568525ff28f21a;hb=3b852038f69e28291498c05f115f498c4dd47657;hp=4a77672f96339b4d9b4d5e48679d991fe288b53d;hpb=313480bbe9994a200ed9a4355d97a033bf0d6151;p=andemo diff --git a/Makefile.android b/Makefile.android index 4a77672..33a7851 100644 --- a/Makefile.android +++ b/Makefile.android @@ -23,6 +23,9 @@ def = -DGLDEF incdir = -Isrc -Ilibs -Ilibs/imago/src -Ilibs/treestore libdir = -Llibs/android +libs = libs/android/libimago.a libs/android/libtreestore.a libs/android/libanim.a \ + libs/android/libpsys.a + CC = $(TC)clang CFLAGS = $(CCSYSROOT) $(ISYS) $(warn) $(dbg) $(opt) $(def) $(incdir) -fPIC -fcommon -MMD LDFLAGS = $(LDSYSROOT) $(libdir) -lm -landroid -llog -lEGL -lGLESv2 -limago -lpsys -lanim -ltreestore @@ -44,7 +47,7 @@ $(name).unsigned.apk: $(lib_so) AndroidManifest.xml cp -r sdr apkbuild/assets aapt package -f -F $@ -I $(PLATFORM_JAR) -M AndroidManifest.xml apkbuild -$(lib_so): $(obj) Makefile.android +$(lib_so): $(obj) Makefile.android $(libs) $(CC) -o $@ -shared -Wl,-soname,$(lib_so) $(obj) $(LDFLAGS) -include $(dep)