Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / conf / makefiles / RCS / config,v
1 head    2.8;
2 access;
3 symbols;
4 locks; strict;
5
6
7 2.8
8 date    92.02.05.21.52.46;      author jromine; state Exp;
9 branches;
10 next    2.7;
11
12 2.7
13 date    90.04.08.22.00.29;      author sources; state Exp;
14 branches;
15 next    2.6;
16
17 2.6
18 date    90.04.08.20.23.04;      author sources; state Exp;
19 branches;
20 next    2.5;
21
22 2.5
23 date    90.04.05.15.17.20;      author sources; state Exp;
24 branches;
25 next    2.4;
26
27 2.4
28 date    90.03.12.11.29.13;      author sources; state Exp;
29 branches;
30 next    2.3;
31
32 2.3
33 date    90.02.23.17.34.23;      author sources; state Exp;
34 branches;
35 next    2.2;
36
37 2.2
38 date    90.02.21.16.59.28;      author sources; state Exp;
39 branches;
40 next    2.1;
41
42 2.1
43 date    90.02.06.12.51.03;      author sources; state Exp;
44 branches;
45 next    2.0;
46
47 2.0
48 date    89.11.17.15.56.36;      author sources; state Exp;
49 branches;
50 next    1.1;
51
52 1.1
53 date    89.11.17.15.44.16;      author sources; state Exp;
54 branches;
55 next    ;
56
57
58 desc
59 @@
60
61
62 2.8
63 log
64 @add "regtest: on/off" to not include hostname and date
65 in version.c
66 @
67 text
68 @##############################################################################
69 #    Instructions to Make, for compilation of MH modules
70 #
71 #       @@(MHWARNING)
72 # @@(#)$Id: config,v 2.7 1990/04/08 22:00:29 sources Exp jromine $
73 ##############################################################################
74
75 OPTIONS =       @@(MHOPTIONS)
76 LDOPTIONS=      @@(LDOPTIONS)
77
78 CC      =       @@(MHCOMPILER)
79 @@BEGIN: OPTIM
80 CFLAGS  =       $(OPTIONS)
81 @@END: OPTIM
82 @@BEGIN: DEBUG
83 CFLAGS  =            $(OPTIONS)
84 @@END: DEBUG
85 LDFLAGS =       $(LDOPTIONS)
86 LIBES   =
87 LINT    =       lint
88 LFLAGS  =       -bhu $(OPTIONS)
89 LLIBS   =
90
91
92 ##############################################################################
93 #       Generate object file for MH configuration
94 ##############################################################################
95
96 CFILES  =       config.c version.c
97 OFILES  =       config.o version.o
98
99 all:            $(OFILES)
100
101 lint:;          $(LINT) $(LFLAGS) $(CFILES) $(LLIBS)
102
103 version version.c:      true
104                 @@/bin/sh version.sh @@(MHHOSTVER) @@(MHRELEASE)
105
106 true:;
107
108 ##############################################################################
109 #       Miscellaneous tasks
110 ##############################################################################
111
112 unconfig:       distribution
113                 -rm -f Makefile
114
115 distribution:   clean
116                 -rm -f config.c version.c version
117
118 clean:          unclean
119                 -rm -f *.o
120
121 unclean:;       -rm -f _* :* core eddep makedep
122
123
124 ##############################################################################
125 #       Dependencies
126 ##############################################################################
127
128 MODULES =       $(CFILES)
129
130 depend:;        for m in $(MODULES); do ( \
131                     i=`basename $$m .c`; \
132                     echo $$i.o: $$i.c >> makedep; \
133                     grep '^#[   ]*include' $$i.c | \
134                         sed -e 's,[^"]*"/\([^"]*\)".*,'$$i'.o: /\1,' \
135                             -e 's,[^"]*"\([^"]*\)".*,'$$i'.o: \1,' \
136                             -e 's,[^<]*<\(.*\)>.*,#'$$i'.o: /usr/include/\1,' \
137                         >> makedep \
138                 ); done
139                 echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
140                 echo '$$r makedep' >> eddep
141                 echo 'w' >> eddep
142                 cp Makefile _Makefile
143                 ed - Makefile < eddep
144                 rm eddep makedep
145                 echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
146                 echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
147
148 # DO NOT DELETE THIS LINE
149 # DEPENDENCIES START HERE
150 config.o: config.c
151 config.o: ../h/mh.h
152 #config.o: /usr/include/pwd.h
153 #config.o: /usr/include/stdio.h
154 # DEPENDENCIES MUST END AT END OF FILE
155 # IF YOU PUT STUFF HERE IT WILL GO AWAY
156 @
157
158
159 2.7
160 log
161 @remove version for "make distribution"
162 @
163 text
164 @d5 1
165 a5 1
166 # @@(#)$Id: config,v 2.6 90/04/08 20:23:04 sources Exp Locker: sources $
167 d37 1
168 a37 1
169                 @@/bin/sh version.sh @@(MHRELEASE)
170 @
171
172
173 2.6
174 log
175 @run version.sh with release
176 @
177 text
178 @d5 1
179 a5 1
180 # @@(#)$Id: config,v 2.5 90/04/05 15:17:20 sources Exp Locker: sources $
181 d49 1
182 a49 1
183                 -rm -f config.c version.c
184 @
185
186
187 2.5
188 log
189 @add ID
190 @
191 text
192 @d5 1
193 a5 1
194 # @@(#)$Id:$
195 d36 2
196 a37 2
197 version.c:      true
198                 @@/bin/sh version.sh
199 @
200
201
202 2.4
203 log
204 @remove -O (put in mhconfig)
205 @
206 text
207 @d5 1
208 @
209
210
211 2.3
212 log
213 @version.sh changes
214 @
215 text
216 @d12 1
217 a12 1
218 CFLAGS  =       -O   $(OPTIONS)
219 @
220
221
222 2.2
223 log
224 @make unconfig changes
225 @
226 text
227 @d28 2
228 a29 2
229 CFILES  =       config.c
230 OFILES  =       config.o
231 d35 2
232 d38 2
233 d48 1
234 a48 1
235                 -rm -f config.c
236 @
237
238
239 2.1
240 log
241 @ANSI Compilance
242 @
243 text
244 @d40 4
245 a43 1
246 unconfig distribution:   clean
247 @
248
249
250 2.0
251 log
252 @changes for SUN40 shared libraries and NNTP under bbc
253 @
254 text
255 @d10 1
256 a10 1
257 CC      =       cc
258 @
259
260
261 1.1
262 log
263 @Initial revision
264 @
265 text
266 @d40 1
267 a40 1
268 distribution:   clean
269 @