-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdescrip.mms
executable file
·327 lines (287 loc) · 12.2 KB
/
descrip.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
314
315
316
317
318
319
320
321
322
323
324
325
326
327
!++
! DESCRIP.MMS
!
! MMS (MMK) description file for building NETLIB.
!
! N.B.: If you are using DEC/MMS to build NETLIB, you
! must define the macro __AXP__ or __I64__,
! as needed for your target architecture, on the
! MMS command line.
!
! 21-SEP-1994 V1.0 Madison Initial commenting.
! 31-OCT-1994 V2.0 Madison Rewrite for NETLIB V2.
! 30-SEP-1996 V2.1 Madison Fixups for non-MadGoat builds.
! 27-NOV-1997 V2.2 Madison Separate out version info.
! 12-MAR-1998 V2.2A Madison CMSized, TCPware build change.
! 23-APR-1998 V2.2B Madison Version check on install.
! 02-AUG-1998 V2.2C Madison CMU name-to-address lookup fix.
! 15-NOV-1998 V2.2D Madison MXLOOK fix.
! 12-DEC-1998 V2.2E Madison Another TCPware fix.
! 26-DEC-2000 V2.3 Madison Kit installs .EXEs now.
! 18-JAN-2001 V2.3A Madison DNS query fixes.
! 03-MAR-2001 V2.3B Madison Linemode returned length fix.
! 10-JAN-2002 V2.3C Madison strtoaddr fix.
! 04-FEB-2002 V2.3D Madison Correct strtoaddr fix.
! 21-SEP-2003 V2.3E Madison Fix for dns_skipname.
! 07-NOV-2004 V2.4 Madison IA64 support. Removed VAX.
! 19-NOV-2012 V3.0 Sneddon VAX support.
!--
!+
! The following three lines control all the version information
! embedded throughout the code, linker options files, and documentation.
!-
NUM_VERSION = 030
TEXT_VERSION = V3.0
GSMATCH = LEQUAL,1,7
.IFDEF __MADGOAT_BUILD__
.IFDEF MG_FACILITY
.ELSE
MG_FACILITY = NETLIB
.ENDIF
.IFDEF __VAX__
MG_VMSVER = V53
.ENDIF
.IFDEF __AXP__
MG_VMSVER = V6
.ENDIF
.IFDEF __I64__
MG_VMSVER = V82
.ENDIF
.INCLUDE MG_TOOLS:HEADER.MMS
.IFDEF LIS
MFLAGS = $(MFLAGS)/LIST=MG_ETC:$(MMS$TARGET_FNAME)
CFLAGS = $(CFLAGS)/LIST=MG_ETC:$(MMS$TARGET_FNAME)
LINKFLAGS = $(LINKFLAGS)/MAP=MG_ETC:$(MMS$TARGET_FNAME)/CROSS/FULL
.ENDIF
.ELSE
ETCDIR = SYS$DISK:[]
KITDIR =
SRCDIR = SYS$DISK:[]
BINDIR =
.ENDIF
.IFDEF __MMK_V32__
.IFDEF __VAX__
ARCH = VAX
VEC = ,$(BINDIR)NETLIB_VECTOR.OBJ
OPTFILE = $(SRCDIR)NETLIB.OPT
VERFILE = $(ETCDIR)NETLIB_VERSION.OPT
.ELSE
ARCH = $(MMS$ARCH_NAME)
VEC =
OPTFILE = $(SRCDIR)NETLIB.$(ARCH)_OPT
VERFILE = $(ETCDIR)NETLIB_VERSION.OPT
.ENDIF
.IFDEF __MADGOAT_BUILD__
.ELSE
BINDIR = [.BIN-$(ARCH)]
.FIRST
@ IF F$PARSE("[.BIN-$(ARCH)]") .EQS. "" THEN CREATE/DIR [.BIN-$(ARCH)]
@ DEFINE BIN_DIR SYS$DISK:[.BIN-$(ARCH)]
{}.C{$(BINDIR)}.OBJ :
{}.B32{$(BINDIR)}.OBJ :
{}.MAR{$(BINDIR)}.OBJ :
{$(SRCDIR)}.C{$(BINDIR)}.OBJ :
{$(SRCDIR)}.B32{$(BINDIR)}.OBJ :
{$(SRCDIR)}.MAR{$(BINDIR)}.OBJ :
.IFDEF DBG
CFLAGS = $(CFLAGS)$(DBG)/NOOPT
LINKFLAGS = $(LINKFLAGS)$(DBG)
MFLAGS = $(MFLAGS)$(DBG)
BFLAGS = $(BFLAGS)$(DBG)
.ELSE
LINKFLAGS = $(LINKFLAGS)/NOTRACE
.ENDIF
.ENDIF
.ELSE ! MMK pre-V3.2, or MMS
.IFDEF __AXP__
ARCH = ALPHA
VEC =
.ENDIF
.IFDEF __I64__
ARCH = IA64
VEC =
.ENDIF
.IFDEF __VAX__
ARCH = VAX
VEC = ,$(BINDIR)NETLIB_VECTOR.OBJ
.ENDIF
OPT = $(ARCH)_OPT
OPTFILE = NETLIB$(OPT)
VERFILE = NETLIB_VERSION.OPT
.ENDIF
.SUFFIXES : .PS .PDF
.PS.PDF :
< DEFINE/USER GS_LIB SYS$SYSDEVICE:[GS.LIB],SYS$SYSDEVICE:[GS.FONTS]
< GS == "$SYS$SYSDEVICE:[GS.BIN]GS.EXE_$(MMSARCH_NAME)"
- PIPE GS "-sDEVICE=pdfwrite" "-dBATCH" "-dNOPAUSE" "-sOutputFile=$(MMS$TARGET)" $(MMS$SOURCE) > $(MMS$TARGET:.pdf=.gs_out)
> TYPE $(MMS$TARGET:.pdf=.gs_out)
> IF F$SEARCH("$(MMS$TARGET:.pdf=.gs_out)") .NES. "" THEN DELETE/NOLOG $(MMS$TARGET:.pdf=.gs_out);*
> DELETE/SYMBOL/GLOBAL GS
> IF F$SEARCH("_TEMP_*.*") .NES. "" THEN DELETE/NOLOG _TEMP_*.*;*
UCX_MODULES = NETLIB_UCX
COMMON_MODULES = MEM, LINEMODE, MISC, CONNECT, COMPATIBILITY, -
DNS, DNS_QUERY, DNS_MXLOOK
.FIRST
@ DID_VERSION_CHECK == 0
@ IF F$SEARCH("$(SRCDIR)CHECK_VERSION.COM") THEN @$(SRCDIR)CHECK_VERSION $(VERFILE) "$(TEXT_VERSION)" "$(GSMATCH)"
@ IF F$SEARCH("$(SRCDIR)CHECK_VERSION.COM") THEN DID_VERSION_CHECK == 1
ALL : CHECK_VERSION,-
$(BINDIR)NETLIB_GET_VERSION.EXE,$(BINDIR)NETLIB_SHR.EXE
@ !
PREFETCH : $(SRCDIR)CHECK_VERSION.COM
CHECK_VERSION : $(SRCDIR)CHECK_VERSION.COM
@ IF .NOT. DID_VERSION_CHECK THEN @$(SRCDIR)CHECK_VERSION $(VERFILE) "$(TEXT_VERSION)" "$(GSMATCH)"
@ DID_VERSION_CHECK == 1
$(BINDIR)NETLIB_SHR.EXE -
: $(BINDIR)NETLIB_UCX.OLB($(UCX_MODULES)),-
$(BINDIR)NETLIB_COMMON.OLB($(COMMON_MODULES)) $(VEC), $(OPTFILE), $(VERFILE)
$(LIBR)/COMPRESS/OUTPUT=$(BINDIR)NETLIB_UCX.OLB $(BINDIR)NETLIB_UCX.OLB
$(LIBR)/COMPRESS/OUTPUT=$(BINDIR)NETLIB_COMMON.OLB $(BINDIR)NETLIB_COMMON.OLB
$(LINK) $(LINKFLAGS)/SHARE $(VERFILE)/OPT, $(OPTFILE)/OPT, $(BINDIR)NETLIB_UCX.OLB/LIB
$(BINDIR)NETLIB_UCX.OBJ : $(SRCDIR)NETLIB.H, $(SRCDIR)NETLIBDEF.H, $(SRCDIR)NETLIB_UCX.H, $(SRCDIR)UCX_INETDEF.H
$(BINDIR)MEM.OBJ, -
$(BINDIR)LINEMODE.OBJ, -
$(BINDIR)DNS.OBJ, -
$(BINDIR)DNS_QUERY.OBJ, -
$(BINDIR)DNS_MXLOOK.OBJ, -
$(BINDIR)CONNECT.OBJ, -
$(BINDIR)NAMEADDR.OBJ : $(SRCDIR)NETLIB.H, $(SRCDIR)NETLIBDEF.H
$(BINDIR)COMPATIBILITY.OBJ : $(SRCDIR)NETLIBDEF.H
$(BINDIR)MISC.OBJ : $(SRCDIR)MISC.C, $(SRCDIR)NETLIB.H, $(SRCDIR)NETLIBDEF.H, $(ETCDIR)NETLIB_VERSION.H
@ DEFINE/USER ETC_DIR $(ETCDIR)
$(CC) $(CFLAGS) $(SRCDIR)MISC.C
$(ETCDIR)NETLIB_VERSION.H : $(VERFILE)
@ open/read x $(VERFILE)
@ read x __cmd
@ close x
@ '__cmd
@ define/user sys$input nl:
@ create $(MMS$TARGET)
@ open/append x $(MMS$TARGET)
@ WRITE x "#ifndef __NETLIB_VERSION_H__"
@ WRITE x "#define __NETLIB_VERSION_H__"
@ WRITE x "#define NETLIB_T_VERSION """, ident, """"
@ WRITE x "#endif /* __NETLIB_VERSION_H__ */"
@ CLOSE x
$(KITDIR)NETLIB_INSTALLING_VERSION.DAT : $(VERFILE)
@ open/read x $(VERFILE)
@ read x __cmd
@ close x
@ '__cmd
@ define/user sys$input nl:
@ create $(MMS$TARGET)
@ open/append x $(MMS$TARGET)
@ write x ident
@ close x
$(BINDIR)NETLIB_GET_VERSION.EXE : $(BINDIR)NETLIB_GET_VERSION.OBJ
$(LINK) $(LINKFLAGS) $(BINDIR)NETLIB_GET_VERSION.OBJ
$(KITDIR)NETLIB_GET_VERSION.VAX_EXE : $(BINVAX)NETLIB_GET_VERSION.EXE
COPY $(MMS$SOURCE) $(MMS$TARGET)
$(KITDIR)NETLIB_GET_VERSION.AXP_EXE : $(BINAXP)NETLIB_GET_VERSION.EXE
COPY $(MMS$SOURCE) $(MMS$TARGET)
$(KITDIR)NETLIB_GET_VERSION.I64_EXE : $(BINI64)NETLIB_GET_VERSION.EXE
COPY $(MMS$SOURCE) $(MMS$TARGET)
$(KITDIR)NETLIB_SHR.AXP_EXE : $(BINAXP)NETLIB_SHR.EXE
COPY $(MMS$SOURCE) $(MMS$TARGET)
$(KITDIR)NETLIB_SHR.I64_EXE : $(BINI64)NETLIB_SHR.EXE
COPY $(MMS$SOURCE) $(MMS$TARGET)
!++
! End of dependencies for binaries. Kit dependencies follow.
!--
DOC = DOCUMENT
DOCFLAGS = /CONTENTS/NOPRINT/OUTPUT=$(MMS$TARGET)/DEVICE=BLANK_PAGES/SYMBOLS=$(ETCDIR)DYNAMIC_SYMBOLS.SDML
BRFLAGS = /CONTENTS/NOPRINT/OUTPUT=$(MMS$TARGET)/SYMBOLS=$(ETCDIR)DYNAMIC_SYMBOLS.SDML
$(KITDIR)NETLIB_DOC.PS : $(SRCDIR)NETLIB_DOC.SDML, $(ETCDIR)DYNAMIC_SYMBOLS.SDML
@ IF F$TRNLNM("DECC$SHR") .NES. "" THEN DEFINE/USER DECC$SHR SYS$SYSROOT:[SYSLIB]DECC$SHR
$(DOC) $(DOCFLAGS) $(MMS$SOURCE) SOFTWARE.REFERENCE PS
$(KITDIR)NETLIB_DOC.PDF : $(KITDIR)NETLIB_DOC.PS
$(KITDIR)NETLIB_DOC.TXT : $(SRCDIR)NETLIB_DOC.SDML, $(ETCDIR)DYNAMIC_SYMBOLS.SDML
@ IF F$TRNLNM("DECC$SHR") .NES. "" THEN DEFINE/USER DECC$SHR SYS$SYSROOT:[SYSLIB]DECC$SHR
$(DOC) $(DOCFLAGS) $(MMS$SOURCE) SOFTWARE.REFERENCE MAIL
$(KITDIR)NETLIB_DOC.HTML : $(SRCDIR)NETLIB_DOC.SDML, $(ETCDIR)DYNAMIC_SYMBOLS.SDML
@ IF F$TRNLNM("DECC$SHR") .NES. "" THEN DEFINE/USER DECC$SHR SYS$SYSROOT:[SYSLIB]DECC$SHR
$(DOC) $(BRFLAGS) $(MMS$SOURCE) SOFTWARE.REFERENCE HTML /INDEX
$(KITDIR)NETLIB_INST.PS : $(SRCDIR)NETLIB_INST.SDML, $(ETCDIR)DYNAMIC_SYMBOLS.SDML
@ IF F$TRNLNM("DECC$SHR") .NES. "" THEN DEFINE/USER DECC$SHR SYS$SYSROOT:[SYSLIB]DECC$SHR
$(DOC) $(DOCFLAGS) $(MMS$SOURCE) SOFTWARE.REFERENCE PS
$(KITDIR)NETLIB_INST.PDF : $(KITDIR)NETLIB_INST.PS
$(KITDIR)NETLIB_INST.TXT : $(SRCDIR)NETLIB_INST.SDML, $(ETCDIR)DYNAMIC_SYMBOLS.SDML
@ IF F$TRNLNM("DECC$SHR") .NES. "" THEN DEFINE/USER DECC$SHR SYS$SYSROOT:[SYSLIB]DECC$SHR
$(DOC) $(DOCFLAGS) $(MMS$SOURCE) SOFTWARE.REFERENCE MAIL
$(KITDIR)NETLIB_INST.HTML : $(SRCDIR)NETLIB_INST.SDML, $(ETCDIR)DYNAMIC_SYMBOLS.SDML
@ IF F$TRNLNM("DECC$SHR") .NES. "" THEN DEFINE/USER DECC$SHR SYS$SYSROOT:[SYSLIB]DECC$SHR
$(DOC) $(BRFLAGS) $(MMS$SOURCE) SOFTWARE.REFERENCE HTML /INDEX
$(ETCDIR)DYNAMIC_SYMBOLS.SDML : $(SRCDIR)GENERATE_SYMBOLS.COM, $(VERFILE)
@GENERATE_SYMBOLS $(VERFILE) $(MMS$TARGET)
CLEAN :
- DELETE $(ETCDIR)*.*;*
- DELETE $(BINDIR)*.*;*
DOCS : $(KITDIR)NETLIB_DOC.PS,-
$(KITDIR)NETLIB_DOC.PDF,-
$(KITDIR)NETLIB_DOC.TXT,-
$(KITDIR)NETLIB_INST.PS,-
$(KITDIR)NETLIB_INST.PDF,-
$(KITDIR)NETLIB_INST.TXT
@ !
KIT : $(KITDIR)NETLIB$(NUM_VERSION).ZIP
@ !
KITFILES = $(SRCDIR)AAAREADME.DOC,-
$(KITDIR)NETLIB$(NUM_VERSION).A,-
$(KITDIR)NETLIB$(NUM_VERSION).B,-
$(KITDIR)NETLIB_SRC.BCK
$(KITDIR)NETLIB$(NUM_VERSION).ZIP : $(KITFILES)
IF F$SEARCH("$(MMS$TARGET)") .NES. "" THEN DELETE $(MMS$TARGET);*
$(ZIP)/VMS $(MMS$TARGET) $(KITFILES)
$(KITDIR)NETLIB$(NUM_VERSION).RELEASE_NOTES -
: $(SRCDIR)NETLIB$(NUM_VERSION).SDML, $(ETCDIR)DYNAMIC_SYMBOLS.SDML
@ IF F$TRNLNM("DECC$SHR") .NES. "" THEN DEFINE/USER DECC$SHR SYS$SYSROOT:[SYSLIB]DECC$SHR
$(DOC) $(DOCFLAGS) $(MMS$SOURCE) SOFTWARE.REFERENCE MAIL
$(KITDIR)NETLIB$(NUM_VERSION).A : $(SRCDIR)KITINSTAL.COM,-
$(SRCDIR)NETLIB_INSTALL.COM,-
$(SRCDIR)NETLIB_USER_INSTALL.COM,-
$(SRCDIR)NETLIB_STARTUP_TEMPLATE.COM,-
$(SRCDIR)NETLIB_LOGIN_TEMPLATE.COM,-
$(KITDIR)NETLIB_INSTALLING_VERSION.DAT,-
$(KITDIR)NETLIB$(NUM_VERSION).RELEASE_NOTES,-
$(KITDIR)NETLIB_GET_VERSION.VAX_EXE,-
$(KITDIR)NETLIB_GET_VERSION.AXP_EXE,-
$(KITDIR)NETLIB_GET_VERSION.I64_EXE,-
$(KITDIR)NETLIB_SHR.VAX_EXE,-
$(KITDIR)NETLIB_SHR.AXP_EXE,-
$(KITDIR)NETLIB_SHR.I64_EXE
PURGE/NOLOG $(MMS$SOURCE_LIST)
BACKUP $(MMS$SOURCE_LIST) $(MMS$TARGET)/SAVE/INTERCHANGE/BLOCK=8192/NOCRC/GROU=0
$(KITDIR)NETLIB$(NUM_VERSION).B : $(SRCDIR)NETLIBDEF.H, $(SRCDIR)NETLIBDEF.R32,-
$(SRCDIR)ECHOCLIENT.C, $(SRCDIR)ECHOSERVER.C,-
$(SRCDIR)ECHOSERVER_STANDALONE.C,-
$(KITDIR)NETLIB_DOC.PS,-
$(KITDIR)NETLIB_DOC.TXT,-
$(KITDIR)NETLIB_INST.PS,-
$(KITDIR)NETLIB_INST.TXT
PURGE/NOLOG $(MMS$SOURCE_LIST)
BACKUP $(MMS$SOURCE_LIST) $(MMS$TARGET)/SAVE/INTERCHANGE/BLOCK=8192/NOCRC/GROU=0
SOURCE_LIST_A = $(SRCDIR)DESCRIP.MMS,-
$(SRCDIR)COMPATIBILITY.C, $(SRCDIR)CONNECT.C, $(SRCDIR)DNS.C, -
$(SRCDIR)DNS_MXLOOK.C, $(SRCDIR)DNS_QUERY.C, $(SRCDIR)LINEMODE.C, -
$(SRCDIR)MEM.C, $(SRCDIR)MISC.C, $(SRCDIR)NAMEADDR.C, -
$(SRCDIR)NETLIB_UCX.C, -
$(SRCDIR)NETLIB_UCX.H, $(SRCDIR)UCX_INETDEF.H
SOURCE_LIST_B = $(SRCDIR)NETLIB.H, $(SRCDIR)NETLIBDEF.H, $(SRCDIR)NETLIBDEF.R32, -
$(SRCDIR)NETLIB.ALPHA_OPT, $(SRCDIR)NETLIB.IA64_OPT,-
$(SRCDIR)NETLIB_DOC.SDML, $(SRCDIR)NETLIB_INST.SDML,-
$(SRCDIR)GENERATE_SYMBOLS.COM, $(SRCDIR)CHECK_VERSION.COM,-
$(ETCDIR)NETLIB_VERSION.H, $(VERFILE),-
$(SRCDIR)NETLIB$(NUM_VERSION).SDML, $(SRCDIR)NETLIB_GET_VERSION.B32
$(KITDIR)NETLIB_SRC.BCK : $(SOURCE_LIST_A),$(SOURCE_LIST_B)
PURGE/NOLOG $(SOURCE_LIST_A)
PURGE/NOLOG $(SOURCE_LIST_B)
@ IF F$SEARCH("$(KITDIR)SRC.DIR") .NES. "" THEN TREDEL $(KITDIR)SRC.DIR
@ olddef = F$ENV("DEFAULT")
@ IF "$(KITDIR)" .NES. "" THEN SET DEFAULT $(KITDIR)
@ CREATE/DIRECTORY [.SRC]
BACKUP $(SOURCE_LIST_A) [.SRC]*.*
BACKUP $(SOURCE_LIST_B) [.SRC]*.*
SET PROTECTION=W:RE [.SRC]*.*
BACKUP [.SRC]*.*; $(MMS$TARGET)/SAVE/INTERCHANGE/BLOCK=8192/NOCRC/GROU=0
@ TREDEL $(KITDIR)SRC.DIR
@ SET DEFAULT 'olddef'