+ifeq "$(CLAM_COMPILER)" "GNU_DARWIN"
+ # Darwin kernel GNU compiler... really more general macos (MacOS) here these days.
+ CC = g++
+ PLATFORM_ADD_IN = darwin
+ DEFINITIONS += _FILE_OFFSET_BITS=64
+
+ DEPENDENCY_DEFINITIONS += NO_VERSION
+# DEPENDENCY_ADDITIONS = -X/usr/include -X/usr/include/c++/$(CLAM_COMPILER_VERSION) -X/usr/include/c++/$(CLAM_COMPILER_VERSION)/tr1 -X/usr/local/include -X/usr/include/linux -X/usr/include/wx-2.8 -X/usr/lib/gcc/i586-suse-linux/$(CLAM_COMPILER_VERSION)/include -X/usr/lib/gcc/i486-linux-gnu/$(CLAM_COMPILER_VERSION)/include
+ DEPENDENCY_ADDITIONS = -X/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
+
+ COMPILER_HEADER_DIR := /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
+#/usr/local/include /usr/include
+#old /System/Library/Frameworks/Foundation.framework/Versions/C/Headers
+#/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
+#/Library/Developer/CommandLineTools/usr/include
+
+# ifeq "x86_64" "$(CLAM_BASE_CPU)"
+# COMPILER_LIBRARY_DIR = /lib64 /usr/lib64 /usr/local/lib64
+# else
+# COMPILER_LIBRARY_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib
+##/usr/lib /usr/local/lib
+# endif
+
+ DEFINITIONS += UNIX unix __UNIX__ __USE_GNU
+
+ LIBRARY_TOOL = ar
+ LIB_PREFIX = lib
+ # special flags for getting rid of warnings on fd_set.
+ LOAD_FLAG_PREFIX=-Wl,-U,___darwin_check_fd_set_overflow
+
+ CREATE_LIBRARY_FLAG += -r
+ # space on end is significant.
+ LINKER_OUTPUT_FLAG = -o
+ LINK_TOOL = g++
+
+ # mac specific flags
+ COMPILER_FLAGS += -Wno-nullability-completeness
+#trying this one again, which had been turned off.
+ COMPILER_FLAGS += -fgnu-runtime
+
+ ifneq "$(DEBUG)" ""
+ # add in debugging flags.
+# COMPILER_FLAGS += -g3 -O0
+ endif
+endif
+
+############################################################################
+
+ifeq "$(CLAM_COMPILER)" "GNU_ARM_LINUX"