Skip to content

Instantly share code, notes, and snippets.

Created April 30, 2014 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/626242249065b31f39d9 to your computer and use it in GitHub Desktop.
Save anonymous/626242249065b31f39d9 to your computer and use it in GitHub Desktop.
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