Limbo 3.5.4
Loading...
Searching...
No Matches
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
10ifneq ($(shell which gcc),)
11 CC = gcc
12else
13ifneq ($(shell which gcc48),)
14 CC = gcc48
15else
16ifneq ($(shell which gcc-4.8),)
17 CC = gcc-4.8
18else
19ifneq ($(shell which gcc47),)
20 CC = gcc47
21else
22ifneq ($(shell which gcc-4.7),)
23 CC = gcc-4.7
24else
25ifneq ($(shell which gcc44),)
26 CC = gcc44
27else
28ifneq ($(shell which gcc-4.4),)
29 CC = gcc-4.4
30else
31 CC = gcc
32endif
33endif
34endif
35endif
36endif
37endif
38endif
39
40## @endcond