Use clang to compile if installed

This commit is contained in:
Timothy Warren 2015-04-21 21:41:56 -04:00
parent 8d2421de33
commit c35f822f1c
1 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,9 @@
CXX = $(shell wx-config --cxx) -I/include
#Try using clang, if it's installed
ifneq ($(shell which clang),clang not found)
CXX = $(patsubst g++,clang++, $(shell wx-config --cxx)) -std=c++11 -I/include
else
CXX = $(shell wx-config --cxx) -I/include
endif
SOURCES = $(wildcard include/**/*.cpp src/network/*.cpp src/settings/*.cpp include/*.cpp)
OBJECTS = $(patsubst %.cpp,%.o, $(SOURCES))