comparison Makefile @ 294:48d36405e987

Defaulting gcc for on-board compiling, see #1695
author Giulio Moro <giuliomoro@yahoo.it>
date Tue, 24 May 2016 23:46:21 +0100
parents feadb63cff32
children 4475c0bc2aaa
comparison
equal deleted inserted replaced
292:3d26df8a8a6c 294:48d36405e987
20 CPP_FLAGS := -O3 -march=armv7-a -mtune=cortex-a8 -mfloat-abi=hard -mfpu=neon -ftree-vectorize 20 CPP_FLAGS := -O3 -march=armv7-a -mtune=cortex-a8 -mfloat-abi=hard -mfpu=neon -ftree-vectorize
21 C_FLAGS := $(CPP_FLAGS) 21 C_FLAGS := $(CPP_FLAGS)
22 22
23 ifndef COMPILER 23 ifndef COMPILER
24 # check whether clang is installed 24 # check whether clang is installed
25 TEST_COMPILER := $(shell which clang) 25 # TEST_COMPILER := $(shell which clang)
26 ifneq ($(strip $(TEST_COMPILER)), ) 26 # ifneq ($(strip $(TEST_COMPILER)), )
27 # if it is installed, use it 27 # # if it is installed, use it
28 COMPILER := clang 28 # COMPILER := clang
29 else 29 # else
30 COMPILER := gcc 30 COMPILER := gcc
31 endif 31 # endif
32 endif 32 endif
33 33
34 ifeq ($(COMPILER), clang) 34 ifeq ($(COMPILER), clang)
35 CC=clang 35 CC=clang
36 CXX=clang++ 36 CXX=clang++