]> sjero.net Git - wget/blob - vms/DESCRIP.MMS
Steven Schweda's VMS patch.
[wget] / vms / DESCRIP.MMS
1 #                                               29 January 2008.  SMS.
2 #
3 #    MMS or MMK description file for Wget 1.11.
4 #
5 # The default target, EXE, builds the architecture-specific Wget
6 # executable (and the DECC_VER.EXE diagnostic executable).
7 #
8 # Other targets:
9 #
10 #    HELP       [.VMS]WGET.HLB help library.
11 #
12 #    CLEAN      deletes architecture-specific files, but leaves any
13 #               individual source dependency files and the help library.
14 #
15 #    CLEAN_ALL  deletes all generated files, except the main (collected)
16 #               source dependency file.
17 #
18 #    CLEAN_EXE  deletes only the architecture-specific executable. 
19 #               Handy if all you wish to do is re-link the executable.
20 #
21
22 # Include the source file lists (among other data).
23
24 INCL_DESCRIP_SRC = 1
25 .INCLUDE [-.VMS]descrip_src.mms
26
27 # DECC_VER diagnostic program.
28 DECC_VER_OBJ = [.$(DEST)]DECC_VER.OBJ
29
30 # Executables.
31
32 WGET_EXE = [.$(DEST)]WGET.EXE
33 DECC_VER_EXE = [.$(DEST)]DECC_VER.EXE
34
35 EXE = $(WGET_EXE) $(DECC_VER_EXE)
36
37 # HELP library and source file.
38
39 HLB = [-.VMS]WGET.HLB
40 HLP = [-.VMS]WGET.HLP
41
42 # Link the executables (default target).
43
44 EXE : $(EXE)
45         @ write sys$output ""
46         @ write sys$output "   ""$<"" is ready."
47         @ write sys$output ""
48
49 $(WGET_EXE) : $(OBJS) $(MAIN_OPT) $(IP_OPT)
50         define /user_mode odir [.$(DEST)]
51         $(LINK) $(LINKFLAGS) $(MAIN_OPT) /options $(IP_LINK_OPT) -
52          $(SSL_LINK_OPT)
53
54 $(DECC_VER_OBJ) : [-.VMS]DECC_VER.C
55
56 $(DECC_VER_EXE) : $(DECC_VER_OBJ)
57         $(LINK) $(LINKFLAGS) $(MMS$SOURCE)
58
59 # Create the HELP library (HELP target).
60
61 HELP : $(HLB)
62         @ write sys$output ""
63         @ write sys$output "   ""$<"" is ready."
64         @ write sys$output ""
65
66 $(HLB) : $(HLP)
67         LIBRARY /CREATE /HELP $@ $<
68
69 # CLEAN target.  Delete the [.$(DEST)] directory and everything in it.
70
71 CLEAN :
72         if (f$search( "[.$(DEST)]*.*") .nes. "") then -
73          delete [.$(DEST)]*.*;*
74         if (f$search( "$(DEST).dir") .nes. "") then -
75          set protection = w:d $(DEST).dir;*
76         if (f$search( "$(DEST).dir") .nes. "") then -
77          delete $(DEST).dir;*
78
79 # CLEAN_ALL target.  Delete:
80 #    The [.$(DEST)] directories and everything in them.
81 #    All help-related derived files,
82 #    CONFIG.H.
83 #    All individual C dependency files.
84 # Also mention:
85 #    Comprehensive dependency file.
86
87 CLEAN_ALL :
88         if (f$search( "[.ALPHA*]*.*") .nes. "") then -
89          delete [.ALPHA*]*.*;*
90         if (f$search( "ALPHA*.dir", 1) .nes. "") then -
91          set protection = w:d ALPHA*.dir;*
92         if (f$search( "ALPHA*.dir", 2) .nes. "") then -
93          delete ALPHA*.dir;*
94         if (f$search( "[.IA64*]*.*") .nes. "") then -
95          delete [.IA64*]*.*;*
96         if (f$search( "IA64*.dir", 1) .nes. "") then -
97          set protection = w:d IA64*.dir;*
98         if (f$search( "IA64*.dir", 2) .nes. "") then -
99          delete IA64*.dir;*
100         if (f$search( "[.VAX*]*.*") .nes. "") then -
101          delete [.VAX*]*.*;*
102         if (f$search( "VAX*.dir", 1) .nes. "") then -
103          set protection = w:d VAX*.dir;*
104         if (f$search( "VAX*.dir", 2) .nes. "") then -
105          delete VAX*.dir;*
106         if (f$search( "$(CONFIG_H)") .nes. "") then -
107          delete /log /noconfirm $(CONFIG_H);*
108         if (f$search( "$(HLB)") .nes. "") then -
109          delete /log /noconfirm $(HLB);*
110         if (f$search( "*.MMSD") .nes. "") then -
111          delete *.MMSD;*
112         @ write sys$output ""
113         @ write sys$output "Note:  This procedure will not"
114         @ write sys$output "   DELETE [.VMS]DESCRIP_DEPS.MMS;*"
115         @ write sys$output -
116  "You may choose to, but a recent version of MMS (V3.5 or newer?) is"
117         @ write sys$output -
118  "needed to regenerate it.  (It may also be recovered from the original"
119         @ write sys$output -
120  "distribution kit.)  See [.VMS]DESCRIP_MKDEPS.MMS for instructions on"
121         @ write sys$output -
122  "generating [.VMS]DESCRIP_DEPS.MMS."
123         @ write sys$output ""
124
125 # CLEAN_EXE target.  Delete the executable in [.$(DEST)].
126
127 CLEAN_EXE :
128         if (f$search( "[.$(DEST)]*.exe") .nes. "") then -
129          delete [.$(DEST)]*.exe;*
130
131 # Include CONFIG.H dependency and rule.
132
133 INCL_CONFIG_SRC = 1
134 .INCLUDE [-.VMS]descrip_config.mms
135
136 # Include generated source dependencies.
137
138 INCL_DESCRIP_DEPS = 1
139 .INCLUDE [-.VMS]descrip_deps.mms
140