Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Patch the OpenXCOM makefile to autodetect an OSX build, and set the target and hence build options, automatically. Fixes the autobuilder for OSX.
diff --git a/src/Makefile.simple b/src/Makefile.simple
index ccdade2..5bd206e 100644
--- a/src/Makefile.simple
+++ b/src/Makefile.simple
@@ -3,7 +3,9 @@
# Put DINGOO for Dingoo A320 builds.
# Put OSX for MacOSX 10.7 unix-style builds.
TARGET =
-
+ifeq ($(shell uname),Darwin)
+TARGET = OSX
+endif
# Directories and files
OBJDIR = ../obj/
BINDIR = ../bin/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.