LOCAL_PATH := $(call my-dir) CORE_DIR := $(LOCAL_PATH)/.. include $(CORE_DIR)/Makefile.common COREFLAGS := -DANDROID -D__LIBRETRO__ -DHAVE_STRINGS_H -DHAVE_STDINT_H -DWANT_CRC32 $(INCFLAGS) GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)" ifneq ($(GIT_VERSION)," unknown") COREFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\" endif include $(CLEAR_VARS) LOCAL_MODULE := retro LOCAL_SRC_FILES := $(SOURCES_CXX) $(SOURCES_C) LOCAL_CXXFLAGS := $(COREFLAGS) LOCAL_CFLAGS := $(COREFLAGS) LOCAL_LDFLAGS := -Wl,-version-script=$(CORE_DIR)/libretro/link.T LOCAL_LDLIBS := -lz include $(BUILD_SHARED_LIBRARY)