-
Notifications
You must be signed in to change notification settings - Fork 0
/
Defs.mak.in
144 lines (118 loc) · 2.51 KB
/
Defs.mak.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
137
138
139
140
141
142
143
144
# Makefile for MPIP -*-Makefile-*-
# Please see license in doc/UserGuide.html
# @configure_input@
# $Id$
SHELL = /bin/sh
CC = @CC@
CXX = @CXX@
FC = @F77@
AR = ar
RANLIB = @RANLIB@
PYTHON = python
CFLAGS = @CFLAGS@
FFLAGS = @FFLAGS@
USE_GETARG = @USE_GETARG@
USE_LIBDWARF = @USE_LIBDWARF@
ifneq (-g,$(findstring -g,$(CFLAGS)))
CFLAGS += -g
endif
ifneq (-g,$(findstring -g,$(FFLAGS)))
FFLAGS += -g
endif
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
LIBS = @LIBS@
LDFLAGS = @LDFLAGS@
F77_SYMBOLS = @F77_SYMBOLS@
BINUTILS_DIR = @BINUTILS_DIR@
BIN_TYPE_FLAG = @BIN_TYPE_FLAG@
CANONICAL_BUILD = @build@
CANONICAL_TARGET = @target@
TARGET_OS = @target_os@
TARGET_CPU = @target_cpu@
ifneq ( $(srcdir), "." )
CPPFLAGS += -I.
endif
CPPFLAGS = -I$(srcdir) @CPPFLAGS@
# check if we're *really* cross-compiling
ifeq (${CANONICAL_TARGET},${CANONICAL_BUILD})
OS = $(shell uname)
ARCH = $(shell uname -m)
else
OS = ${TARGET_OS}
ARCH = ${TARGET_CPU}
endif
ifeq ($(OS),UNICOS/mp)
OS = UNICOS_mp
endif
ifeq ($(OS),OSF1)
LIBS += -lexc
endif
ifeq ($(OS),Linux)
ifeq ($(ARCH),i686)
CPPFLAGS += -DIA32
endif
ifeq ($(ARCH),alpha)
CPPFLAGS += -Dalpha
endif
ifeq ($(ARCH),x86_64)
CPPFLAGS += -DX86_64
endif
ifeq ($(ARCH),ppc64)
CPPFLAGS += -Dppc64
endif
endif
ifeq (${OS},catamount)
OS = Catamount
ifeq (${ARCH},x86_64)
CPPFLAGS += -DX86_64
endif
endif
C_TARGET = libmpiP.a
API_TARGET = libmpiPapi.a
MPIPLIB = mpiP
MPIPFLIB = mpiP
BUILD_FLIB=false
ifeq ($(USE_GETARG),true)
BUILD_FLIB=true
FORTRAN_FLAG = -DUSE_GETARG
endif
ifneq ($(OS),Linux)
BUILD_FLIB=true
endif
ifeq ($(BUILD_FLIB),true)
FORTRAN_TARGET = @FORTRAN_TARGET@
MPIPFLIB = @MPIPFLIB@
FORTRAN_FLAG := $(FORTRAN_FLAG) @FORTRAN_FLAG@
F77_VENDOR = @F77_VENDOR@
endif
DEMANGLE_TARGET =
DO_DEMANGLE = @DO_DEMANGLE@
ENABLE_BFD = @ENABLE_BFD@
MPIPCXXLIB = mpiP
ifeq ($(ENABLE_BFD),yes)
ifeq ($(DO_DEMANGLE),GNU)
CPPFLAGS += -DDEMANGLE_$(DO_DEMANGLE)
endif
ifeq ($(DO_DEMANGLE),IBM)
DEMANGLE_FLAG = -DDEMANGLE_$(DO_DEMANGLE)
DEMANGLE_TARGET = libmpiPdmg.a
MPIPCXXLIB = mpiPdmg
CPPFLAGS := -I/usr/include $(CPPFLAGS)
endif
ifeq ($(DO_DEMANGLE),Compaq)
DEMANGLE_FLAG = -DDEMANGLE_$(DO_DEMANGLE)
DEMANGLE_TARGET = libmpiPdmg.a
MPIPCXXLIB = mpiPdmg
CPPFLAGS := -I/usr/include $(CPPFLAGS)
CXXLIBS += -lmld
endif
endif
ifneq ($(ARCH),ppc64)
CPPFLAGS+= -D${OS}
endif
LFLAGS +=
LIBS +=
ENABLE_API_ONLY = @ENABLE_API_ONLY@
##### EOF