android builds now include both 64 and 32bit in the APK
[andemo] / libs / psys / Makefile
index 9d434ac..8cc39cb 100644 (file)
@@ -9,10 +9,16 @@ ifeq ($(sys), mingw)
 endif
 ifeq ($(sys), android-arm64)
        obj = $(src:.c=.arm64.o)
-       alib = ../android/libpsys.a
+       alib = ../android64/libpsys.a
+       pic = -fPIC
+endif
+ifeq ($(sys), android-arm32)
+       obj = $(src:.c=.arm32.o)
+       alib = ../android32/libpsys.a
+       pic = -fPIC
 endif
 
-CFLAGS = -O3 -ffast-math -fno-strict-aliasing -I..
+CFLAGS = -O3 -ffast-math -fno-strict-aliasing $(pic) -I..
 
 $(alib): $(obj)
        $(AR) rcs $@ $(obj)
@@ -20,6 +26,9 @@ $(alib): $(obj)
 %.arm64.o: %.c
        $(CC) -o $@ $(CFLAGS) -c $<
 
+%.arm32.o: %.c
+       $(CC) -o $@ $(CFLAGS) -c $<
+
 %.w32.o: %.c
        $(CC) -o $@ $(CFLAGS) -c $<