Limbo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FindGcc.mk
Go to the documentation of this file.
1 ## @file FindGcc.mk
2 ## @brief find gcc, determine CC
3 ## @author Yibo Lin
4 ## @date Jan 2017
5 ##
6 ## @param CC set CC as C compiler
7 
8 ## @cond
9 
10 ifneq ($(shell which gcc),)
11  CC = gcc
12 else
13 ifneq ($(shell which gcc48),)
14  CC = gcc48
15 else
16 ifneq ($(shell which gcc-4.8),)
17  CC = gcc-4.8
18 else
19 ifneq ($(shell which gcc47),)
20  CC = gcc47
21 else
22 ifneq ($(shell which gcc-4.7),)
23  CC = gcc-4.7
24 else
25 ifneq ($(shell which gcc44),)
26  CC = gcc44
27 else
28 ifneq ($(shell which gcc-4.4),)
29  CC = gcc-4.4
30 else
31  CC = gcc
32 endif
33 endif
34 endif
35 endif
36 endif
37 endif
38 endif
39 
40 ## @endcond