summaryrefslogtreecommitdiff
path: root/make-mac.mk
diff options
context:
space:
mode:
Diffstat (limited to 'make-mac.mk')
-rw-r--r--make-mac.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/make-mac.mk b/make-mac.mk
index 1bc842ce..02d42252 100644
--- a/make-mac.mk
+++ b/make-mac.mk
@@ -1,5 +1,9 @@
-CC?=clang
-CXX?=clang++
+ifeq ($(origin CC),default)
+ CC=$(shell if [ -e /usr/bin/clang ]; then echo clang; else echo gcc; fi)
+endif
+ifeq ($(origin CXX),default)
+ CXX=$(shell if [ -e /usr/bin/clang++ ]; then echo clang++; else echo g++; fi)
+endif
INCLUDES=-I/usr/local/include
DEFS=