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)
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)
# Compilation
# CFLAGS_COMMON=-MD -Wall -Werror
-CFLAGS_COMMON=-MD -Wall -Wsign-compare
+CFLAGS_COMMON=$(CFLAGS_MAKEDEP) -Wall -Wsign-compare
CFLAGS_DEBUG=-ggdb
CFLAGS_PROFILE=-g -pg -ggdb
CFLAGS_RELEASE=