aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2021-03-07 15:17:56 +0100
committerTeddy Wing2021-03-07 15:17:56 +0100
commita0ec0a479163122ba4facef38b8b527229a1b8ca (patch)
tree6bfcbca77014ead1774d6c81ce23b9db2141f1a3
parente1cdd8cbde46d8610e05d9a79c3e90b7f2a75c0a (diff)
downloadRe-Good-Catalina-Invert-Colours-a0ec0a479163122ba4facef38b8b527229a1b8ca.tar.bz2
Makefile: Set minimum Mac OS X version to 10.7
Build for as early a Mac OS X version as we can. Can't build for 10.5 because only 10.6+ supports ARC. Can't build for 10.6 because DDHotKey requires weak references, and these are only supported starting in 10.7: https://en.wikipedia.org/w/index.php?title=Weak_reference&oldid=1000364515#Objective-C_2.0
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3dc36cb..bfceaf8 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ DDHOTKEY_OBJ := $(patsubst %.m,%.o,$(wildcard lib/DDHotKey/*.m))
all: $(SOURCES) build/libddhotkey.a build/include/*.h
clang -x objective-c \
+ -mmacosx-version-min=10.7 \
-framework Carbon \
-framework Cocoa \
-framework CoreGraphics \
@@ -21,6 +22,7 @@ build/include/%.h: lib/DDHotKey/%.h
lib/DDHotKey/%.o: lib/DDHotKey/%.m
clang -x objective-c \
+ -mmacosx-version-min=10.7 \
-fobjc-arc \
-c \
$<