Apply same Linux compiler-picker logic to Mac.

This commit is contained in:
Adam Ierymenko 2015-07-24 13:17:41 -07:00
parent d57ea671d7
commit dba91eaa09

View File

@ -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=