mirror of
https://github.com/libretro/libretro-prboom.git
synced 2024-11-23 07:59:39 +00:00
21 lines
565 B
Makefile
21 lines
565 B
Makefile
LOCAL_PATH := $(call my-dir)
|
|
|
|
ROOT_DIR := $(LOCAL_PATH)/..
|
|
CORE_DIR := $(ROOT_DIR)/src
|
|
|
|
include $(ROOT_DIR)/Makefile.common
|
|
|
|
COREFLAGS := -DHAVE_LIBMAD -DMUSIC_SUPPORT $(COREDEFINES) $(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_C)
|
|
LOCAL_CFLAGS := $(COREFLAGS)
|
|
LOCAL_LDFLAGS := -Wl,-version-script=$(ROOT_DIR)/libretro/link.T
|
|
include $(BUILD_SHARED_LIBRARY)
|