From: mittorn Date: Sun, 24 May 2015 16:28:46 +0000 (+0700) Subject: Add CFLAGS_OPT check X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=36696ece82d8944326abc5e5949be301ae360ef3;p=nanogl.git Add CFLAGS_OPT check --- diff --git a/Android.mk b/Android.mk index 7be1dc2..e7654fc 100644 --- a/Android.mk +++ b/Android.mk @@ -18,7 +18,15 @@ include $(CLEAR_VARS) LOCAL_MODULE := NanoGL -LOCAL_CFLAGS := -O2 +LOCAL_CFLAGS += $(CFLAGS_OPT) +ifeq ($(TARGET_ARCH),arm) +LOCAL_CFLAGS += $(CFLAGS_OPT_ARM) +endif +ifeq ($(TARGET_ARCH),x86) +LOCAL_CFLAGS += $(CFLAGS_OPT_X86) +endif + +LOCAL_CFLAGS += LOCAL_C_INCLUDES := $(LOCAL_PATH)/GL