Limbo
3.5.4
Toggle main menu visibility
Loading...
Searching...
No Matches
limbo
makeutils
FindCompiler.mk
Go to the documentation of this file.
1
## @file FindCompiler.mk
2
## @brief find compiler under various platform, determine CXX, CC, FC, AR
3
##
4
## Use following command in the Makefile to view the results
5
##
6
## $(info Compilers: CC = $(CC), CXX = $(CXX), FC = $(FC), AR = $(AR))
7
##
8
## @author Yibo Lin
9
## @date Jan 2017
10
##
11
## @param LIMBO_DIR, LIMBO_ROOT_DIR given LIMBO_DIR or LIMBO_ROOT_DIR
12
## @param CC, CXX, FC, AR set CC as c compiler, CXX as c++ compiler, FC as fortran compiler, AR as archiver
13
14
## @cond
15
16
# detect platform
17
UNAME_S = $(shell uname -s)
18
19
# consider two cases, called when building Limbo library or called from other programs
20
ifndef LIMBO_ROOT_DIR
21
ifdef LIMBO_DIR
22
LIMBO_ROOT_DIR = $(LIMBO_DIR)/include
23
else
24
$(error LIMBO_ROOT_DIR = $(LIMBO_ROOT_DIR), LIMBO_DIR = $(LIMBO_DIR))
25
endif
26
endif
27
28
# ==== search compilers under Linux
29
ifeq ($(UNAME_S), Linux)
30
#FOUNDCC = $(shell find ${PATH
//:/ } -maxdepth 1 -executable -name gcc* -exec basename {} \;)
31
32
include $(LIMBO_ROOT_DIR)/
limbo
/makeutils/FindGcc.mk
33
include $(LIMBO_ROOT_DIR)/
limbo
/makeutils/FindGxx.mk
34
include $(LIMBO_ROOT_DIR)/
limbo
/makeutils/FindGfortran.mk
35
include $(LIMBO_ROOT_DIR)/
limbo
/makeutils/FindAR.mk
36
37
endif
38
39
# ==== search for compilers under Darwin
40
ifeq ($(UNAME_S), Darwin)
41
42
include $(LIMBO_ROOT_DIR)/
limbo
/makeutils/FindClang.mk
43
include $(LIMBO_ROOT_DIR)/
limbo
/makeutils/FindClangxx.mk
44
include $(LIMBO_ROOT_DIR)/
limbo
/makeutils/FindGfortran.mk
45
include $(LIMBO_ROOT_DIR)/
limbo
/makeutils/FindAR.mk
46
47
endif
48
49
## @endcond
limbo
namespace for Limbo
Definition
GraphUtility.h:23
Generated on
for Limbo by
1.17.0