]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - makefile
patch from div0 to make universal-binary builds of darkplaces possible on Mac OS X
[xonotic/darkplaces.git] / makefile
index e563564dc8e6aaea030f7b38049f427ab895dd35..ba1b76edfa6b7a976ea9dbb5f4e166b778b04ec1 100644 (file)
--- a/makefile
+++ b/makefile
@@ -26,6 +26,8 @@ endif  # ifneq ($(filter %BSD,$(DP_ARCH)),)
 endif  # ifdef windir
 endif  # ifndef DP_MAKE_TARGET
 
+CFLAGS_MAKEDEP=-MD
+
 # If we're not on compiling for Win32, we need additional information
 ifneq ($(DP_MAKE_TARGET), mingw)
        DP_ARCH:=$(shell uname)
@@ -88,6 +90,10 @@ ifeq ($(DP_MAKE_TARGET), macosx)
        EXE_CLNEXUIZ=$(EXE_MACOSXCLNEXUIZ)
        EXE_SVNEXUIZ=$(EXE_UNIXSVNEXUIZ)
        EXE_SDLNEXUIZ=$(EXE_UNIXSDLNEXUIZ)
+
+       ifeq ($(word 2, $(filter -arch, $(CC))), -arch)
+               CFLAGS_MAKEDEP=
+       endif
 endif
 
 # SunOS configuration (Solaris)