From: Holger Schemel Date: Tue, 14 Jul 2020 18:17:45 +0000 (+0200) Subject: added build support for older versions of Mac OS X X-Git-Tag: 4.2.0.0~9 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=be1fbc11a1cb9b02031ca92447d3ca9e4049c0b6;p=rocksndiamonds.git added build support for older versions of Mac OS X --- diff --git a/src/Makefile b/src/Makefile index da479a44..70fb390f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -57,6 +57,16 @@ PROGNAME = ../$(PROGBASE).exe EXTRA_LDFLAGS = -lshfolder -lwsock32 endif +ifdef BUILD_DIST # distribution build +ifeq ($(shell uname -s),Darwin) # compiling on Mac OS X +MAC_TARGET_VERSION_MIN = 10.7 +EXTRA_FLAGS_MAC = -mmacosx-version-min=$(MAC_TARGET_VERSION_MIN) +EXTRA_CFLAGS = $(EXTRA_FLAGS_MAC) +EXTRA_LDFLAGS = $(EXTRA_FLAGS_MAC) +MACOSX_DEPLOYMENT_TARGET = $MAC_TARGET_VERSION_MIN +endif +endif + # ----------------------------------------------------------------------------- # configuring target