-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmake.config.in
137 lines (113 loc) · 2.67 KB
/
make.config.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
#
# Config.mk.in
# written by Jonas Juselius <[email protected]> Tue Dec 4 12:09:26 EET 2001
#
@SET_MAKE@
SHELL:=@SHELL@
host:=@host@
host_os:=@host_os@
host_cpu:=@host_cpu@
host_vendor:=@host_vendor@
CC:=@CC@
FC:=@FC@
CPP:=@CPP@
CPPFLAGS:=@CPPFLAGS@
CFLAGS:=@CFLAGS@
FCFLAGS:=@FCFLAGS@
LDFLAGS:=@LDFLAGS@
LIBS:=@LIBS@
LD:=@LD@
RAN:=@RANLIB@
STRIP:=@STRIP@
AWK:=@AWK@
AR:=@AR@
ETAGS:=@ETAGS@
CTAGS:=@CTAGS@
LN_S:=@LN_S@
YACC:=@YACC@
LEX:=@LEX@
LEXLIB:=@LEXLIB@
INSTALL:=@INSTALL@
INSTALL_DATA:=@INSTALL_DATA@
INSTALL_SCRIPT:=@INSTALL_SCRIPT@
INSTALL_PROGRAM:=@INSTALL_PROGRAM@
mkinstalldirs=$(topdir)/config/mkinstalldirs
FC_MODEXT=@FC_MODEXT@
FC_MODCASE=@FC_MODCASE@
BRNCH:=$(shell git rev-parse --abbrev-ref HEAD)
ARCH_TEMP:=$(host_cpu)-$(host_os)-$(FC)
ifdef BRANCH
ARCH_TEMP:=$(host_cpu)-$(host_os)-$(FC)-$(BRNCH)
endif
ARCH:=$(ARCH_TEMP)
ifdef DEBUG
ARCH:=$(ARCH_TEMP)-dbg
endif
ifdef PROF
ARCH:=$(ARCH_TEMP)-prf
endif
prefix=@prefix@
exec_prefix=@exec_prefix@
inst_bindir=@bindir@
inst_libdir=@libdir@
inst_libexecdir=@libexecdir@
inst_includedir=@includedir@
inst_datadir=@datadir@
libdir:=@top_libdir@
bindir:=@top_bindir@
includedir:=@top_includedir@
datadir:=@top_datadir@
all_src:=$(wildcard *.f90 *.F *.f *.c)
all_objs:=$(addsuffix .o, $(basename $(all_src)))
tag_src:=$(filter-out lex.yy.c, $(all_src))
tag_src:=$(filter-out y.tab.c, $(tag_src))
# search path used by make to find dependencies
#Note: dependencies on FoX can currently not be resolved instead FoX is always made first
VPATH=$(includedir):$(libdir):$(bindir)
BLAS_LIBS=@BLAS_LIBS@
LAPACK_LIBS=@LAPACK_LIBS@ $(BLAS_LIBS)
BLAS95=@F90_LIBS_blas95@
LAPACK95=@F90_LIBS_lapack95@
LIBMPI_F90=@F90_LIBS_mpi_f90@
#Fortran flags
fopt:=@fopt@
fopt_low:=@fopt_low@
fopt_high:=@fopt_high@
fcflags:=@fcflags@
fmodule:=@fmodule@
fdebug:=@fdebug@
fprof:=@fprof@
frange:=@frange@
fldflags:=@fldflags@
# C compiler flags
cflags:=@cflags@
cdebug:=@cdebug@
cprof:=@cprof@
crange:=@crange@
cldflags:=@cldflags@
ifdef DEBUG
fopt:=
fcflags+=$(fdebug)
cflags+=$(cdebug)
endif
fcflags+=-I$(includedir) $(fox_FC_flags) $(fmodule) $(ARCH)
cflags+=-I$(includedir)
ifdef PROF
fcflags+=$(fprof)
fldflags+=$(fprof)
cflags+=$(cprof)
cldflags+=$(cprof)
endif
ifdef RANGE
fcflags+=$(frange)
cflags+=$(crange)
endif
fldflags:=$(fldflags) -L. -L$(libdir) $(fox_libfiles) $(LDFLAGS)
cldflags:=$(cldflags) -L. -L$(libdir) $(LDFLAGS)
# remove extra whitespace
LLO_FCFLAGS:=$(strip $(fopt_low) $(fcflags) $(FCFLAGS))
HLO_FCFLAGS:=$(strip $(fopt_high) $(fcflags) $(FCFLAGS))
FCFLAGS:=$(strip $(fopt) $(fcflags) $(FCFLAGS))
FLDFLAGS:=$(strip $(fldflags) $(FLDFLAGS))
CFLAGS:=$(strip $(cflags) $(CFLAGS))
CLDFLAGS:=$(strip $(cldflags) $(CLDFLAGS))