From 518bdfc134bfa00426f22abd574831f7ec51924a Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 11 May 2017 16:45:49 +0200 Subject: Some work on Android build --- examples/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'examples') diff --git a/examples/Makefile b/examples/Makefile index 18a5d1f4..c3728b3b 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -541,6 +541,11 @@ physac/physics_restitution: physac/physics_restitution.c # compile [physac] example - physics shatter physac/physics_shatter: physac/physics_shatter.c $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDES) $(LFLAGS) $(LIBS) -static -lpthread -D$(PLATFORM) $(WINFLAGS) + +ifeq ($(PLATFORM),PLATFORM_ANDROID) +external/native_app_glue.o : native_app_glue.c native_app_glue.h + $(CC) -c $< $(CFLAGS) $(INCLUDES) -D$(PLATFORM) -D$(SHAREDFLAG) +endif # fix dylib install path name for each executable (MAC) fix_dylib: -- cgit v1.2.3