-
Notifications
You must be signed in to change notification settings - Fork 9
/
mmk_default_rules_x86_64.mms
executable file
·313 lines (234 loc) · 10.1 KB
/
mmk_default_rules_x86_64.mms
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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
! MMK_DEFAULT_RULES_X86_64.MMS
!
! COPYRIGHT � 2004 MADGOAT SOFTWARE. ALL RIGHTS RESERVED.
! COPYRIGHT � 2012 ENDLESS SOFTWARE SOLUTIONS. ALL RIGHTS RESERVED.
!
! Default build rules for use with MMK. (for OpenVMS x86_64)
!
! Modification history:
!
! 03-MAY-2004 V1.0 Madison Initial coding (from ACP)
! 22-AUG-2012 V2.4 Sneddon Add GENCAT support.
! 13-JUL-2023 V2.5 Goatley Add X86_64 support.
!
!
! This symbol can be used to distinguish MMK from DEC's DEC/MMS product
! using .IFDEF directives.
!
__MATTS_MMS__ = __MATTS_MMS__
__MMK__ = __MMK__
__MMK_V32__ = 1
!
! These symbols can be used to distinguish an x86-based build from a
! VAX, Alpha, or Itanium one.
!
__X86__ = 1
__X86_64__ = 1
EXE = .EXE
OLB = .OLB
OBJ = .OBJ
OPT = .OPT
L32 = .L32
.SUFFIXES : ! clear the suffix list first
.SUFFIXES : $(EXE) $(OLB) $(OBJ) .TLB .HLB .MLB $(L32) .CAT .C .CXX .BAS .B32 .BLI .FOR -
.COB .COR .DBL .RPG .SCN .PLI .PEN .PAS .MAC .MAR .M64 .MSG .MSGX .CLD -
.R32 .REQ .TXT .H .MEM .HLP .RNH .RNO .MMS .DAT .OPT .SDML .COM -
.C~ .CXX~ .BAS~ .B32~ .BLI~ .FOR~ .COB~ .COR~ .DBL~ .RPG~ .SCN~ -
.PLI~ .PAS~ .MAC~ .MAR~ .M64~ .MSG~ .CLD~ .R32~ .REQ~ .TXT~ -
.H~ .HLP~ .RNH~ .RNO~ .MMS~ .DAT~ .OPT~ .SDML~ .COM~
LINK = LINK
LINKFLAGS = /EXEC=$(MMS$TARGET)
$(OBJ)$(OLB) :
@ IF F$SEARCH("$(MMS$TARGET)") .EQS. "" THEN $(LIBR)/CREATE $(MMS$TARGET)
$(LIBR)$(LIBRFLAGS) $(MMS$TARGET) $(MMS$SOURCE)
.TXT.TLB :
@ IF F$SEARCH("$(MMS$TARGET)") .EQS. "" THEN $(LIBR)/CREATE/TEXT $(MMS$TARGET)
$(LIBR)$(LIBRFLAGS) $(MMS$TARGET) $(MMS$SOURCE)/MODULE=$(MMS$TARGET_MODULE)
.HLP.HLB :
@ IF F$SEARCH("$(MMS$TARGET)") .EQS. "" THEN $(LIBR)/CREATE/HELP $(MMS$TARGET)
$(LIBR)$(LIBRFLAGS) $(MMS$TARGET) $(MMS$SOURCE)
.MAC.MLB :
@ IF F$SEARCH("$(MMS$TARGET)") .EQS. "" THEN $(LIBR)/CREATE/MACRO $(MMS$TARGET)
$(LIBR)$(LIBRFLAGS) $(MMS$TARGET) $(MMS$SOURCE)
.MAR.MLB :
@ IF F$SEARCH("$(MMS$TARGET)") .EQS. "" THEN $(LIBR)/CREATE/MACRO $(MMS$TARGET)
$(LIBR)$(LIBRFLAGS) $(MMS$TARGET) $(MMS$SOURCE)
LIBR = LIBRARY
LIBRFLAGS = /REPLACE
.BAS$(OBJ) :
$(BASIC)$(BASFLAGS) $(MMS$SOURCE)
BASIC = BASIC
BASFLAGS = /NOLIST/OBJECT=$(MMS$TARGET_NAME)$(OBJ)
.BLI$(OBJ) :
$(BLISS)$(BFLAGS) $(MMS$SOURCE)
.B32$(OBJ) :
$(BLISS)$(BFLAGS) $(MMS$SOURCE)
BFLAGS = /NOLIST/OBJECT=$(MMS$TARGET_NAME)$(OBJ)
.C$(OBJ) :
$(CC)$(CFLAGS) $(MMS$SOURCE)
CC = CC
CFLAGS = /NOLIST/OBJECT=$(MMS$TARGET_NAME)$(OBJ)
.COB$(OBJ) :
$(COBOL)$(COBFLAGS) $(MMS$SOURCE)
COBOL = COBOL
COBFLAGS = /NOLIST/OBJECT=$(MMS$TARGET_NAME)$(OBJ)
.COR$(OBJ) :
$(CORAL)$(CORFLAGS) $(MMS$SOURCE)
CORAL = CORAL
CORFLAGS = /NOLIST/OBJECT=$(MMS$TARGET_NAME)$(OBJ)
.CXX$(OBJ) :
$(CXX)$(CXXFLAGS) $(MMS$SOURCE)
CXX = CXX
CXXFLAGS = /NOLIST/OBJECT=$(MMS$TARGET_NAME)$(OBJ)
.DBL$(OBJ) :
$(DIBOL)$(DBLFLAGS) $(MMS$SOURCE)
DIBOL = DIBOL
DBLFLAGS = /NOLIST/OBJECT=$(MMS$TARGET_NAME)$(OBJ)
.CLD$(OBJ) :
$(SETCMD)$(SETCMDFLAGS) $(MMS$SOURCE)
SETCMD = SET COMMAND
SETCMDFLAGS = /NOLIST/OBJECT=$(MMS$TARGET_NAME)$(OBJ)
.FOR$(OBJ) :
$(FORT)$(FFLAGS) $(MMS$SOURCE)
FORT = FORTRAN
FFLAGS = /NOLIST/OBJECT=$(MMS$TARGET_NAME)$(OBJ)
.MAR$(OBJ) :
$(MACRO)$(MFLAGS) $(MMS$SOURCE)
MACRO = MACRO/MIGRATION
MFLAGS = /NOLIST/OBJECT=$(MMS$TARGET_NAME)$(OBJ)
.M64$(OBJ) :
$(TASM)$(TASMFLAGS) $(MMS$SOURCE)
TASM = MACRO
TASMFLAGS = /NOLIST/OBJECT=$(MMS$TARGET_NAME)$(OBJ)
.MSG$(OBJ) :
$(MESSAGE)$(MSGFLAGS) $(MMS$SOURCE)
MESSAGE = MESSAGE
MSGFLAGS = /NOLIST/OBJECT=$(MMS$TARGET_NAME)$(OBJ)
.PAS$(OBJ) :
$(PASCAL)$(PFLAGS) $(MMS$SOURCE)
.PAS.PEN :
$(PASCAL)$(PENVFLAGS) $(MMS$SOURCE)
PASCAL = PASCAL
PFLAGS = /NOLIST/OBJECT=$(MMS$TARGET_NAME)$(OBJ)
PENVFLAGS = /ENVIRONMENT=$(MMS$TARGET_NAME).ENV/NOLIST
.PLI$(OBJ) :
$(PLI)$(PLIFLAGS) $(MMS$SOURCE)
PLI = PLI
PLIFLAGS = /NOLIST/OBJECT=$(MMS$TARGET_NAME)$(OBJ)
.REQ$(L32) :
$(BLISS)/LIBR=$(MMS$TARGET_NAME)$(L32)$(BLIBFLAGS) $(MMS$SOURCE)
.R32$(L32) :
$(BLISS)/LIBR=$(MMS$TARGET_NAME)$(L32)$(BLIBFLAGS) $(MMS$SOURCE)
BLISS = BLISS
BLIBFLAGS = /NOLIST
.RPG$(OBJ) :
$(RPG)$(RPGFLAGS) $(MMS$SOURCE)
RPG = RPG
RPGFLAGS = /NOLIST/OBJECT=$(MMS$TARGET_NAME)$(OBJ)
.RNH.HLP :
$(RUNOFF)$(RFLAGS) $(MMS$SOURCE)
.RNO.MEM :
$(RUNOFF)$(RFLAGS) $(MMS$SOURCE)
RUNOFF = RUNOFF
RFLAGS = /OUTPUT=$(MMS$TARGET)
.SCN$(OBJ) :
$(SCAN)$(SCANFLAGS) $(MMS$SOURCE)
SCAN = SCAN
SCANFLAGS = /NOLIST/OBJECT=$(MMS$TARGET_NAME)$(OBJ)
.MSGX.CAT :
$(GENCAT)$(GENCATFLAGS) $(MMS$SOURCE) $(MMS$TARGET)
GENCAT = GENCAT
GENCATFLAGS =
CMS = CMS
CMSCOMMENT = ""
CMSFLAGS = /GENERATION=$(MMS$CMS_GEN)
.B32~.B32 :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).B32 $(CMSFLAGS) $(CMSCOMMENT)
.BAS~.BAS :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).BAS $(CMSFLAGS) $(CMSCOMMENT)
.BLI~.BLI :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).BLI $(CMSFLAGS) $(CMSCOMMENT)
.C~.C :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).C $(CMSFLAGS) $(CMSCOMMENT)
.CLD~.CLD :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).CLD $(CMSFLAGS) $(CMSCOMMENT)
.COB~.COB :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).COB $(CMSFLAGS) $(CMSCOMMENT)
.COR~.COR :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).COR $(CMSFLAGS) $(CMSCOMMENT)
.COM~.COM :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).COM $(CMSFLAGS) $(CMSCOMMENT)
.CXX~.CXX :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).CXX $(CMSFLAGS) $(CMSCOMMENT)
.DAT~.DAT :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).DAT $(CMSFLAGS) $(CMSCOMMENT)
.DBL~.DBL :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).DBL $(CMSFLAGS) $(CMSCOMMENT)
.FOR~.FOR :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).FOR $(CMSFLAGS) $(CMSCOMMENT)
.H~.H :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).H $(CMSFLAGS) $(CMSCOMMENT)
.HLP~.HLP :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).HLP $(CMSFLAGS) $(CMSCOMMENT)
.MAC~.MAC :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).MAC $(CMSFLAGS) $(CMSCOMMENT)
.MAR~.MAR :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).MAR $(CMSFLAGS) $(CMSCOMMENT)
.M64~.M64 :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).M64 $(CMSFLAGS) $(CMSCOMMENT)
.MMS~.MMS :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).MMS $(CMSFLAGS) $(CMSCOMMENT)
.MSG~.MSG :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).MSG $(CMSFLAGS) $(CMSCOMMENT)
.MSGX~.MSGX :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).MSGX $(CMSFLAGS) $(CMSCOMMENT)
.OPT~.OPT :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).OPT $(CMSFLAGS) $(CMSCOMMENT)
.PAS~.PAS :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).PAS $(CMSFLAGS) $(CMSCOMMENT)
.PLI~.PLI :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).PLI $(CMSFLAGS) $(CMSCOMMENT)
.R32~.R32 :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).R32 $(CMSFLAGS) $(CMSCOMMENT)
.REQ~.REQ :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).REQ $(CMSFLAGS) $(CMSCOMMENT)
.RNH~.RNH :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).RNH $(CMSFLAGS) $(CMSCOMMENT)
.RNO~.RNO :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).RNO $(CMSFLAGS) $(CMSCOMMENT)
.SCN~.SCN :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).SCN $(CMSFLAGS) $(CMSCOMMENT)
.SDML~.SDML :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).SDML $(CMSFLAGS) $(CMSCOMMENT)
.TXT~.TXT :
@ IF "$(MMS$CMS_LIBRARY)" .NES. "" THEN DEFINE/USER CMS$LIB $(MMS$CMS_LIBRARY)
$(CMS) FETCH $(MMS$CMS_ELEMENT) /OUTPUT=$(MMS$TARGET_NAME).TXT $(CMSFLAGS) $(CMSCOMMENT)