projects
/
andemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
android builds now include both 64 and 32bit in the APK
[andemo]
/
libs
/
psys
/
Makefile
diff --git
a/libs/psys/Makefile
b/libs/psys/Makefile
index
9d434ac
..
8cc39cb
100644
(file)
--- a/
libs/psys/Makefile
+++ b/
libs/psys/Makefile
@@
-9,10
+9,16
@@
ifeq ($(sys), mingw)
endif
ifeq ($(sys), android-arm64)
obj = $(src:.c=.arm64.o)
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
endif
-CFLAGS = -O3 -ffast-math -fno-strict-aliasing -I..
+CFLAGS = -O3 -ffast-math -fno-strict-aliasing $(pic) -I..
$(alib): $(obj)
$(AR) rcs $@ $(obj)
$(alib): $(obj)
$(AR) rcs $@ $(obj)
@@
-20,6
+26,9
@@
$(alib): $(obj)
%.arm64.o: %.c
$(CC) -o $@ $(CFLAGS) -c $<
%.arm64.o: %.c
$(CC) -o $@ $(CFLAGS) -c $<
+%.arm32.o: %.c
+ $(CC) -o $@ $(CFLAGS) -c $<
+
%.w32.o: %.c
$(CC) -o $@ $(CFLAGS) -c $<
%.w32.o: %.c
$(CC) -o $@ $(CFLAGS) -c $<