-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.os.newdtg
251 lines (221 loc) · 4.69 KB
/
config.os.newdtg
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
#
#
# This config.os file is included in the Makefile.
# It handle the platform dependent compiler options.
#
#
# Programmer:
#
# Pedro Tsai
#
# -------------------------------------------------------------------
#
# Suffix rules
#
# .SUFFIXES: .f .o .F .H .h
# -------------------------------------------------------------------
#
# General Macros
MAKE = make
MAKE = make -f Makefile.newdtg
SHELL=/bin/sh
RM = rm -f
RM_CMD = $(RM) *.l *.BAK *.bak *.o *.i core errs ,* *~ *.a .emacs_* \
tags TAGS make.log MakeOut
# ------------------------------------------------------------------
# Prompt the user for os type
#
default:
@echo "To make your target files type one of the following:"
@echo " make sgi Standard"
@echo " make sgi_g Debug mode (with -g flag)"
@echo " make cray Generic Cray"
@echo " make cray_g Debug mode (with -g flag)"
@echo " make alpha Standard"
@echo " make alpha_g Debug mode (with -g flag)"
@echo " make hp Standard"
@echo " make hp_g Debug mode (with -g flag)"
@echo " make sol2 Standard"
@echo " make sol2_g Debug mode (with -g flag)"
@echo " make sunos4 Standard"
@echo " make sunos4_g Debug mode (with -g flag)"
@echo " make clean "
#-------------------------------------------------------------------------
#
# D. OS specific compiler and loader options
#
#
# MACROS DESCRIPTIONS:
#
# FC: Fortran compiler.
# CC: C compiler
# C++: C++ compiler
# CPP: C Preprocessor
# FFLAGS: Fortran compilation flag.
# CFLAGS: C/C++ compilation flags.
# LD: Loader
# LDFLAGS: Loader flag
# INCS: Include files directories
# LIBS: Additional local libraries
#
#
# -------------------------------------------------------
# --------------- CRAY OS 8.0 ---------------------------
cray:
${MAKE} target \
"FC=cf77" \
"CC=cc " \
"C++=CC " \
"FFLAGS=-DCRAY" \
"CFLAGS=-DCRAY" \
"LD=cf77" \
"LDFLAGS= " \
"LIBS= " \
"INCS= " \
"AR=ar rv"
cray_g:
${MAKE} target \
"FC=cf77" \
"CC=cc " \
"C++=CC " \
"FFLAGS=-DCRAY -g " \
"CFLAGS=-DCRAY -g " \
"LD=cf77" \
"LDFLAGS= " \
"LIBS= " \
"INCS= " \
"AR=ar rv"
# ---------------- END CRAY OS 8.0 -------------------------
# ---------------- SGI IRIX 6.2 -----------------------------
#
sgi:
${MAKE} target \
"FC=f77" \
"CC=cc " \
"C++=DCC " \
"FFLAGS=-DSGI -32 " \
"CFLAGS=-DSGI -32 " \
"C++FLAGS=-DSGI -32 " \
"AR=ar rv"
sgi_g:
${MAKE} target \
"FC=f77" \
"CC=cc " \
"C++=DCC " \
"FFLAGS=-DSGI -32 -g " \
"CFLAGS=-DSGI -32 -g " \
"C++FLAGS=-DSGI -32 -g " \
"AR=ar rv"
# ----------------- END IRIX 6.2 -----------------------------
# ----------------- DEC ALPHA OSF1 -----------------------------
#
alpha:
${MAKE} target \
"FC=f77" \
"CC=cc " \
"C++=CC " \
"FFLAGS=-DDEC_ALPHA -convert big_endian " \
"CFLAGS=-DDEC_ALPHA " \
"LD=f77" \
"LDFLAGS= " \
"LIBS= " \
"INCS= " \
"AR=ar rv"
alpha_g:
${MAKE} target \
"FC=f77" \
"CC=cc " \
"C++=CC " \
"FFLAGS=-DDEC_ALPHA " \
"CFLAGS=-DDEC_ALPHA " \
"LD=f77" \
"LDFLAGS= " \
"LIBS= " \
"INCS= " \
"AR=ar rv"
# ----------------- END ALPHA OSF1 -----------------------------
#
# ----------------- HP-UX -----------------------------
#
# CFLAGS: -Aa <Use ANSI-C compiler>
hp:
${MAKE} target \
"FC=f77" \
"CC=cc " \
"C++=CC " \
"FFLAGS=-DHP " \
"CFLAGS=-DHP -D_INCLUDE_POSIX_SOURCE -Aa " \
"C++FLAGS=-DHP " \
"LDFLAGS= " \
"LIBS= " \
"INCS= " \
"AR=ar rv"
hp_g:
${MAKE} target \
"FC=f77" \
"CC=cc " \
"C++=CC " \
"FFLAGS=-DHP -g " \
"CFLAGS=-DHP -D_INCLUDE_POSIX_SOURCE -Aa -g " \
"C++FLAGS=-DHP " \
"LDFLAGS= " \
"LIBS= " \
"INCS= " \
"AR=ar rv"
# ---------------- END HP-UX B.10.00 -------------------------
# ----------------- Solaris 2 -----------------------------
#
# CFLAGS: -Aa <Use ANSI-C compiler>
sol2:
${MAKE} target \
"FC=f77" \
"CC=cc " \
"C++=CC " \
"FFLAGS=-DSOLARIS " \
"CFLAGS=-DSOLARIS " \
"C++FLAGS=-DSOLARIS " \
"LDFLAGS= " \
"LIBS= " \
"INCS= " \
"AR=ar rv"
sol2_g:
${MAKE} target \
"FC=f77" \
"CC=cc " \
"C++=CC " \
"FFLAGS=-DSOLARIS -g " \
"CFLAGS=-DSOLARIS -g " \
"C++FLAGS=-DSOLARIS " \
"LDFLAGS= " \
"LIBS= " \
"INCS= " \
"AR=ar rv"
# ---------------- END Solaris 2 -------------------------
# ----------------- SunOS 4.1.* -----------------------------
#
# CFLAGS: <Use ANSI-C compiler>
sunos4:
${MAKE} target \
"FC=f77" \
"CC=acc " \
"C++=CC " \
"FFLAGS=-DSUNOS " \
"CFLAGS=-DSUNOS " \
"C++FLAGS=-DSUNOS " \
"LDFLAGS= " \
"LIBS= " \
"INCS= " \
"AR=ar rv "
sunos4_g:
${MAKE} target \
"FC=f77" \
"CC=acc " \
"C++=CC " \
"FFLAGS=-DSUNOS -g " \
"CFLAGS=-DSUNOS -g " \
"C++FLAGS=-DSUNOS " \
"LDFLAGS= " \
"LIBS= " \
"INCS= " \
"AR=ar rv"
# ---------------- END SunOS 4.1.* -------------------------