android builds now include both 64 and 32bit in the APK
[andemo] / libs / anim / Makefile
index 3260d3c..6f34ca3 100644 (file)
@@ -8,10 +8,16 @@ ifeq ($(sys), mingw)
 endif
 ifeq ($(sys), android-arm64)
        obj = anim.arm64.o track.arm64.o dynarr.arm64.o
-       lib = ../android/libanim.a
+       lib = ../android64/libanim.a
+       pic = -fPIC
+endif
+ifeq ($(sys), android-arm32)
+       obj = anim.arm32.o track.arm32.o dynarr.arm32.o
+       lib = ../android32/libanim.a
+       pic = -fPIC
 endif
 
-CFLAGS = -g -ffast-math -fno-strict-aliasing -I..
+CFLAGS = -g -ffast-math -fno-strict-aliasing $(pic) -I..
 
 $(lib): $(obj)
 
@@ -21,6 +27,9 @@ $(lib): $(obj)
 %.arm64.o: %.c
        $(CC) -o $@ $(CFLAGS) -c $<
 
+%.arm32.o: %.c
+       $(CC) -o $@ $(CFLAGS) -c $<
+
 %.w32.o: %.c
        $(CC) -o $@ $(CFLAGS) -c $<