forked from egallicc/AGBNP3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.macros
61 lines (46 loc) · 1.84 KB
/
global.macros
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
#################################################################
# global macros
#################################################################
F = f
O = o
EXE =
# The := += hackery below is needed to set SPACE to " ".
SPACE :=
SPACE +=
OBJ_OUT_FLAG=-o$(SPACE)
FOR_OUT_FLAG=-o$(SPACE)
EXE_OUT_FLAG=-o #
STATIC_OUT_FLAG=
DYN_OUT_FLAG=-o
AR = ar
LD = $(CXX_SHARED_LINKER)
ARFLAGS = rs
STATIC_LIBEXT = a
LIBEXT = $(STATIC_LIBEXT)
SHARED_LIBEXT = so
VERS_CandCXXFLAGS = $(MACH_CandCXXFLAGS) $(MACH_COPT) $(MACH_CWARN) \
$(MACH_CSTRICT)
VERS_CandCXXFLAGS_SAFE = $(MACH_CandCXXFLAGS) $(MACH_COPT_SAFE) $(MACH_CWARN) \
$(MACH_CSTRICT)
VERS_FFLAGS = $(MACH_FFLAGS) $(MACH_FOPT) $(MACH_FWARN) \
$(MACH_FSTRICT)
VERS_FFLAGS_SAFE = $(MACH_FFLAGS) $(MACH_FOPT_SAFE) $(MACH_FWARN) \
$(MACH_FSTRICT)
LIBS = $(LIB_PATH) $(LOCAL_LIBS) \
$(VERS_LIBS) $(VERS_SYSLIBS)
CFLAGS = $(ARCH) $(TERMINATE_FLAG) $(VERS_CFLAGS) $(VERS_CandCXXFLAGS) \
$(LOCAL_CFLAGS) $(LOCAL_CandCXXFLAGS) $(INC_PATH)
CFLAGS_SAFE = $(ARCH) $(TERMINATE_FLAG) $(VERS_CFLAGS) $(VERS_CandCXXFLAGS_SAFE) $(LOCAL_CFLAGS) $(LOCAL_CandCXXFLAGS) $(INC_PATH)
CXXFLAGS = $(ARCH) $(TERMINATE_FLAG) $(VERS_CXXFLAGS) $(VERS_CandCXXFLAGS) \
$(LOCAL_CXXFLAGS) $(LOCAL_CandCXXFLAGS) $(INC_PATH)
CXXFLAGS_SAFE = $(ARCH) $(TERMINATE_FLAG) $(VERS_CXXFLAGS) $(VERS_CandCXXFLAGS_SAFE) \
$(LOCAL_CXXFLAGS) $(LOCAL_CandCXXFLAGS) $(INC_PATH)
FFLAGS = $(ARCH) $(TERMINATE_FLAG) $(VERS_FFLAGS) \
$(LOCAL_FFLAGS) $(INC_PATH)
FFLAGS_SAFE = $(ARCH) $(TERMINATE_FLAG) $(VERS_FFLAGS_SAFE) \
$(LOCAL_FFLAGS) $(INC_PATH)
#use LFLAGS when linking a binary with $(CC), $(LD), OR $(CXX)
LFLAGS = $(ARCH) $(LINK_TYPE) $(VERS_LFLAGS) $(LOCAL_LFLAGS)
#use F_LFLAGS when linking a binary with $(FC), $(F77), or $(F90)
F_LFLAGS = $(ARCH) $(F_LINK_TYPE) $(VERS_LFLAGS) $(VERS_F_LFLAGS) $(LOCAL_LFLAGS) $(FC_LINKER_STDC)
default_target: all