1 | # |
---|
2 | # Makefile for uip subdirectory |
---|
3 | # |
---|
4 | # $Id: Makefile.in,v 1.6 1999-09-02 14:42:21 ghudson Exp $ |
---|
5 | # |
---|
6 | |
---|
7 | SHELL = /bin/sh |
---|
8 | |
---|
9 | top_srcdir = @top_srcdir@ |
---|
10 | srcdir = @srcdir@ |
---|
11 | VPATH = @srcdir@ |
---|
12 | |
---|
13 | prefix = @prefix@ |
---|
14 | exec_prefix = @exec_prefix@ |
---|
15 | bindir = @bindir@ |
---|
16 | libdir = @libdir@ |
---|
17 | etcdir = @sysconfdir@ |
---|
18 | |
---|
19 | CC = @CC@ |
---|
20 | CFLAGS = @CFLAGS@ |
---|
21 | DEFS = @DEFS@ |
---|
22 | HESIOD_INCLUDES = @HESIOD_INCLUDES@ |
---|
23 | INCLUDES = -I.. -I$(srcdir) -I$(top_srcdir) $(HESIOD_INCLUDES) |
---|
24 | LDFLAGS = @LDFLAGS@ |
---|
25 | |
---|
26 | LIBS = @LIBS@ |
---|
27 | MTSLIB = @MTSLIB@ |
---|
28 | KRB4_LIBS = @KRB4_LIBS@ |
---|
29 | HESIOD_LIBS = @HESIOD_LIBS@ |
---|
30 | LOCALLIBS = ../config/version.o ../config/config.o ../sbr/libmh.a ../$(MTSLIB) ../zotnet/libzot.a |
---|
31 | LINKLIBS = $(LOCALLIBS) $(KRB4_LIBS) $(HESIOD_LIBS) $(LIBS) |
---|
32 | |
---|
33 | TERMLIB = @TERMLIB@ |
---|
34 | LEXLIB = @LEXLIB@ |
---|
35 | POPLIB = @POPLIB@ |
---|
36 | |
---|
37 | COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES) $(CFLAGS) |
---|
38 | LINK = $(CC) $(LDFLAGS) -o $@ |
---|
39 | LN = ln |
---|
40 | |
---|
41 | INSTALL = @INSTALL@ |
---|
42 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
---|
43 | |
---|
44 | .SUFFIXES: |
---|
45 | .SUFFIXES: .c .o |
---|
46 | |
---|
47 | .c.o: |
---|
48 | $(COMPILE) $< |
---|
49 | |
---|
50 | # commands to build |
---|
51 | CMDS = ali anno burst comp dist flist folder forw inc mark mhbuild \ |
---|
52 | mhlist mhmail mhn mhparam mhpath mhshow mhstore mhtest msgchk \ |
---|
53 | msh packf pick prompter refile repl rmf rmm scan send show \ |
---|
54 | sortm viamail whatnow whom |
---|
55 | |
---|
56 | ## removed this from CMDS until I can fix it |
---|
57 | ## OTHERCMDS = vmh |
---|
58 | |
---|
59 | # commands that are links to other commands |
---|
60 | LCMDS = flists folders next prev |
---|
61 | |
---|
62 | # misc support binaries |
---|
63 | MISC = ap conflict dp fmtdump install-mh mhl post rcvdist rcvpack \ |
---|
64 | rcvstore rcvtty slocal spost |
---|
65 | |
---|
66 | # source files |
---|
67 | SRCS = ali.c aliasbr.c anno.c annosbr.c ap.c burst.c comp.c \ |
---|
68 | conflict.c dist.c distsbr.c dp.c dropsbr.c flist.c fmtdump.c \ |
---|
69 | folder.c forw.c ftpsbr.c inc.c install-mh.c mark.c md5.c mhbuild.c \ |
---|
70 | mhbuildsbr.c mhcachesbr.c mhfree.c mhl.c mhlist.c mhlistsbr.c mhlsbr.c \ |
---|
71 | mhmail.c mhmisc.c mhn.c mhoutsbr.c mhparam.c mhparse.c mhpath.c mhshow.c \ |
---|
72 | mhshowsbr.c mhstore.c mhstoresbr.c mhtest.c msgchk.c msh.c mshcmds.c packf.c \ |
---|
73 | pick.c picksbr.c popi.c popsbr.c post.c prompter.c rcvdist.c rcvpack.c \ |
---|
74 | rcvstore.c rcvtty.c refile.c repl.c replsbr.c rmf.c rmm.c scan.c \ |
---|
75 | scansbr.c send.c sendsbr.c show.c slocal.c sortm.c spost.c \ |
---|
76 | termsbr.c viamail.c vmh.c vmhsbr.c vmhtest.c whatnow.c whatnowproc.c \ |
---|
77 | whatnowsbr.c whom.c wmh.c |
---|
78 | |
---|
79 | # auxiliary files |
---|
80 | AUX = Makefile.in |
---|
81 | |
---|
82 | # all files in this directory included in the distribution |
---|
83 | DIST = $(SRCS) $(AUX) |
---|
84 | |
---|
85 | # ========== DEFAULT TARGET ========== |
---|
86 | |
---|
87 | all: $(CMDS) $(MISC) |
---|
88 | |
---|
89 | # ========= DEPENDENCIES FOR BUILDING ========== |
---|
90 | |
---|
91 | ali: ali.o aliasbr.o $(LOCALLIBS) |
---|
92 | $(LINK) ali.o aliasbr.o $(LINKLIBS) |
---|
93 | |
---|
94 | ap: ap.o termsbr.o $(LOCALLIBS) |
---|
95 | $(LINK) ap.o termsbr.o $(LINKLIBS) $(TERMLIB) |
---|
96 | |
---|
97 | anno: anno.o annosbr.o $(LOCALLIBS) |
---|
98 | $(LINK) anno.o annosbr.o $(LINKLIBS) |
---|
99 | |
---|
100 | burst: burst.o $(LOCALLIBS) |
---|
101 | $(LINK) burst.o $(LINKLIBS) |
---|
102 | |
---|
103 | comp: comp.o whatnowproc.o whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LOCALLIBS) |
---|
104 | $(LINK) comp.o whatnowproc.o whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LINKLIBS) |
---|
105 | |
---|
106 | conflict: conflict.o aliasbr.o $(LOCALLIBS) |
---|
107 | $(LINK) conflict.o aliasbr.o $(LINKLIBS) |
---|
108 | |
---|
109 | dist: dist.o whatnowproc.o whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LOCALLIBS) |
---|
110 | $(LINK) dist.o whatnowproc.o whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LINKLIBS) |
---|
111 | |
---|
112 | dp: dp.o termsbr.o $(LOCALLIBS) |
---|
113 | $(LINK) dp.o termsbr.o $(LINKLIBS) $(TERMLIB) |
---|
114 | |
---|
115 | flist: flist.o $(LOCALLIBS) |
---|
116 | $(LINK) flist.o $(LINKLIBS) |
---|
117 | |
---|
118 | fmtdump: fmtdump.o $(LOCALLIBS) |
---|
119 | $(LINK) fmtdump.o $(LINKLIBS) |
---|
120 | |
---|
121 | folder: folder.o $(LOCALLIBS) |
---|
122 | $(LINK) folder.o $(LINKLIBS) |
---|
123 | |
---|
124 | forw: forw.o whatnowproc.o whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LOCALLIBS) |
---|
125 | $(LINK) forw.o whatnowproc.o whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LINKLIBS) |
---|
126 | |
---|
127 | inc: inc.o scansbr.o dropsbr.o termsbr.o $(POPLIB) $(LOCALLIBS) |
---|
128 | $(LINK) inc.o scansbr.o dropsbr.o termsbr.o $(POPLIB) $(LINKLIBS) $(TERMLIB) |
---|
129 | |
---|
130 | install-mh: install-mh.o $(LOCALLIBS) |
---|
131 | $(LINK) install-mh.o $(LINKLIBS) |
---|
132 | |
---|
133 | mark: mark.o $(LOCALLIBS) |
---|
134 | $(LINK) mark.o $(LINKLIBS) |
---|
135 | |
---|
136 | mhbuild: mhbuild.o mhbuildsbr.o mhcachesbr.o mhlistsbr.o mhoutsbr.o mhmisc.o mhfree.o ftpsbr.o termsbr.o md5.o $(LOCALLIBS) |
---|
137 | $(LINK) mhbuild.o mhbuildsbr.o mhcachesbr.o mhlistsbr.o mhoutsbr.o mhmisc.o mhfree.o ftpsbr.o md5.o $(LINKLIBS) $(TERMLIB) |
---|
138 | |
---|
139 | mhl: mhl.o mhlsbr.o termsbr.o $(LOCALLIBS) |
---|
140 | $(LINK) mhl.o mhlsbr.o termsbr.o $(LINKLIBS) $(TERMLIB) |
---|
141 | |
---|
142 | mhlist: mhlist.o mhparse.o mhcachesbr.o mhlistsbr.o mhmisc.o mhfree.o ftpsbr.o termsbr.o md5.o $(LOCALLIBS) |
---|
143 | $(LINK) mhlist.o mhparse.o mhcachesbr.o mhlistsbr.o mhmisc.o mhfree.o ftpsbr.o termsbr.o md5.o $(LINKLIBS) $(TERMLIB) |
---|
144 | |
---|
145 | mhmail: mhmail.o $(LOCALLIBS) |
---|
146 | $(LINK) mhmail.o $(LINKLIBS) |
---|
147 | |
---|
148 | mhn: mhn.o mhparse.o mhcachesbr.o mhshowsbr.o mhlistsbr.o mhstoresbr.o mhmisc.o mhfree.o ftpsbr.o termsbr.o md5.o $(LOCALLIBS) |
---|
149 | $(LINK) mhn.o mhparse.o mhcachesbr.o mhshowsbr.o mhlistsbr.o mhstoresbr.o mhmisc.o mhfree.o ftpsbr.o termsbr.o md5.o $(LINKLIBS) $(TERMLIB) |
---|
150 | |
---|
151 | mhparam: mhparam.o $(LOCALLIBS) |
---|
152 | $(LINK) mhparam.o $(LINKLIBS) |
---|
153 | |
---|
154 | mhpath: mhpath.o $(LOCALLIBS) |
---|
155 | $(LINK) mhpath.o $(LINKLIBS) |
---|
156 | |
---|
157 | mhshow: mhshow.o mhparse.o mhcachesbr.o mhshowsbr.o mhlistsbr.o mhmisc.o mhfree.o ftpsbr.o termsbr.o md5.o $(LOCALLIBS) |
---|
158 | $(LINK) mhshow.o mhparse.o mhcachesbr.o mhshowsbr.o mhlistsbr.o mhmisc.o mhfree.o ftpsbr.o termsbr.o md5.o $(LINKLIBS) $(TERMLIB) |
---|
159 | |
---|
160 | mhstore: mhstore.o mhparse.o mhcachesbr.o mhshowsbr.o mhlistsbr.o mhstoresbr.o mhmisc.o mhfree.o ftpsbr.o termsbr.o md5.o $(LOCALLIBS) |
---|
161 | $(LINK) mhstore.o mhparse.o mhcachesbr.o mhshowsbr.o mhlistsbr.o mhstoresbr.o mhmisc.o mhfree.o ftpsbr.o termsbr.o md5.o $(LINKLIBS) $(TERMLIB) |
---|
162 | |
---|
163 | mhtest: mhtest.o mhparse.o mhcachesbr.o mhoutsbr.o mhmisc.o mhfree.o ftpsbr.o termsbr.o md5.o $(LOCALLIBS) |
---|
164 | $(LINK) mhtest.o mhparse.o mhcachesbr.o mhoutsbr.o mhmisc.o mhfree.o ftpsbr.o termsbr.o md5.o $(LINKLIBS) $(TERMLIB) |
---|
165 | |
---|
166 | msgchk: msgchk.o $(POPLIB) $(LOCALLIBS) |
---|
167 | $(LINK) msgchk.o $(POPLIB) $(LINKLIBS) |
---|
168 | |
---|
169 | msh: msh.o mshcmds.o vmhsbr.o picksbr.o scansbr.o dropsbr.o mhlsbr.o termsbr.o $(LOCALLIBS) |
---|
170 | $(LINK) msh.o mshcmds.o vmhsbr.o picksbr.o scansbr.o dropsbr.o mhlsbr.o termsbr.o $(LINKLIBS) $(TERMLIB) |
---|
171 | |
---|
172 | packf: packf.o dropsbr.o $(LOCALLIBS) |
---|
173 | $(LINK) packf.o dropsbr.o $(LINKLIBS) |
---|
174 | |
---|
175 | pick: pick.o picksbr.o $(LOCALLIBS) |
---|
176 | $(LINK) pick.o picksbr.o $(LINKLIBS) |
---|
177 | |
---|
178 | post: post.o aliasbr.o $(LOCALLIBS) |
---|
179 | $(LINK) post.o aliasbr.o $(LINKLIBS) |
---|
180 | |
---|
181 | prompter: prompter.o $(LOCALLIBS) |
---|
182 | $(LINK) prompter.o $(LINKLIBS) |
---|
183 | |
---|
184 | rcvdist: rcvdist.o distsbr.o $(LOCALLIBS) |
---|
185 | $(LINK) rcvdist.o distsbr.o $(LINKLIBS) |
---|
186 | |
---|
187 | rcvpack: rcvpack.o dropsbr.o $(LOCALLIBS) |
---|
188 | $(LINK) rcvpack.o dropsbr.o $(LINKLIBS) |
---|
189 | |
---|
190 | rcvstore: rcvstore.o $(LOCALLIBS) |
---|
191 | $(LINK) rcvstore.o $(LINKLIBS) |
---|
192 | |
---|
193 | rcvtty: rcvtty.o scansbr.o termsbr.o $(LOCALLIBS) |
---|
194 | $(LINK) rcvtty.o scansbr.o termsbr.o $(LINKLIBS) $(TERMLIB) |
---|
195 | |
---|
196 | refile: refile.o $(LOCALLIBS) |
---|
197 | $(LINK) refile.o $(LINKLIBS) |
---|
198 | |
---|
199 | repl: repl.o replsbr.o whatnowproc.o whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LOCALLIBS) |
---|
200 | $(LINK) repl.o replsbr.o whatnowproc.o whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LINKLIBS) |
---|
201 | |
---|
202 | rmf: rmf.o $(LOCALLIBS) |
---|
203 | $(LINK) rmf.o $(LINKLIBS) |
---|
204 | |
---|
205 | rmm: rmm.o $(LOCALLIBS) |
---|
206 | $(LINK) rmm.o $(LINKLIBS) |
---|
207 | |
---|
208 | scan: scan.o scansbr.o termsbr.o $(LOCALLIBS) |
---|
209 | $(LINK) scan.o scansbr.o termsbr.o $(LINKLIBS) $(TERMLIB) |
---|
210 | |
---|
211 | send: send.o sendsbr.o annosbr.o distsbr.o $(LOCALLIBS) |
---|
212 | $(LINK) send.o sendsbr.o annosbr.o distsbr.o $(LINKLIBS) |
---|
213 | |
---|
214 | show: show.o mhlsbr.o termsbr.o $(LOCALLIBS) |
---|
215 | $(LINK) show.o mhlsbr.o termsbr.o $(LINKLIBS) $(TERMLIB) |
---|
216 | |
---|
217 | slocal: slocal.o aliasbr.o dropsbr.o $(LOCALLIBS) |
---|
218 | $(LINK) slocal.o aliasbr.o dropsbr.o $(LINKLIBS) |
---|
219 | |
---|
220 | sortm: sortm.o $(LOCALLIBS) |
---|
221 | $(LINK) sortm.o $(LINKLIBS) |
---|
222 | |
---|
223 | spost: spost.o aliasbr.o $(LOCALLIBS) |
---|
224 | $(LINK) spost.o aliasbr.o $(LINKLIBS) |
---|
225 | |
---|
226 | viamail: viamail.o mhmisc.o mhoutsbr.o sendsbr.o annosbr.o distsbr.o $(LOCALLIBS) |
---|
227 | $(LINK) viamail.o mhmisc.o mhoutsbr.o sendsbr.o annosbr.o distsbr.o $(LINKLIBS) $(TERMLIB) |
---|
228 | |
---|
229 | vmh: vmh.o vmhsbr.o $(LOCALLIBS) |
---|
230 | $(LINK) vmh.o vmhsbr.o $(LINKLIBS) $(TERMLIB) |
---|
231 | |
---|
232 | whatnow: whatnow.o whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LOCALLIBS) |
---|
233 | $(LINK) whatnow.o whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LINKLIBS) |
---|
234 | |
---|
235 | whom: whom.o distsbr.o $(LOCALLIBS) |
---|
236 | $(LINK) whom.o distsbr.o $(LINKLIBS) |
---|
237 | |
---|
238 | # ========== DEPENDENCIES FOR INSTALLING ========== |
---|
239 | |
---|
240 | # install everything |
---|
241 | install: install-cmds install-lcmds install-misc |
---|
242 | |
---|
243 | # install commands |
---|
244 | install-cmds: |
---|
245 | $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir) |
---|
246 | for cmd in $(CMDS); do \ |
---|
247 | $(INSTALL_PROGRAM) $$cmd $(DESTDIR)$(bindir)/$$cmd; \ |
---|
248 | done |
---|
249 | |
---|
250 | # install links |
---|
251 | install-lcmds: |
---|
252 | $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir) |
---|
253 | $(top_srcdir)/mkinstalldirs $(DESTDIR)/usr/athena/etc |
---|
254 | rm -f $(DESTDIR)$(bindir)/flists |
---|
255 | rm -f $(DESTDIR)$(bindir)/folders |
---|
256 | rm -f $(DESTDIR)$(bindir)/prev |
---|
257 | rm -f $(DESTDIR)$(bindir)/next |
---|
258 | $(LN) $(DESTDIR)$(bindir)/flist $(DESTDIR)$(bindir)/flists |
---|
259 | $(LN) $(DESTDIR)$(bindir)/folder $(DESTDIR)$(bindir)/folders |
---|
260 | $(LN) $(DESTDIR)$(bindir)/show $(DESTDIR)$(bindir)/prev |
---|
261 | $(LN) $(DESTDIR)$(bindir)/show $(DESTDIR)$(bindir)/next |
---|
262 | rm -f $(DESTDIR)/usr/athena/etc/rcvdist |
---|
263 | rm -f $(DESTDIR)/usr/athena/etc/rcvpack |
---|
264 | rm -f $(DESTDIR)/usr/athena/etc/rcvstore |
---|
265 | rm -f $(DESTDIR)/usr/athena/etc/rcvtty |
---|
266 | rm -f $(DESTDIR)/usr/athena/etc/slocal |
---|
267 | ln -s ../libexec/rcvdist $(DESTDIR)/usr/athena/etc/rcvdist |
---|
268 | ln -s ../libexec/rcvpack $(DESTDIR)/usr/athena/etc/rcvpack |
---|
269 | ln -s ../libexec/rcvstore $(DESTDIR)/usr/athena/etc/rcvstore |
---|
270 | ln -s ../libexec/rcvtty $(DESTDIR)/usr/athena/etc/rcvtty |
---|
271 | ln -s ../libexec/slocal $(DESTDIR)/usr/athena/etc/slocal |
---|
272 | |
---|
273 | # install misc support binaries |
---|
274 | install-misc: |
---|
275 | $(top_srcdir)/mkinstalldirs $(DESTDIR)$(libdir) |
---|
276 | for misc in $(MISC); do \ |
---|
277 | $(INSTALL_PROGRAM) $$misc $(DESTDIR)$(libdir)/$$misc; \ |
---|
278 | done |
---|
279 | |
---|
280 | uninstall: |
---|
281 | for cmd in $(CMDS); do \ |
---|
282 | rm -f $(DESTDIR)$(bindir)/$$cmd; \ |
---|
283 | done |
---|
284 | for lcmd in $(LCMDS); do \ |
---|
285 | rm -f $(DESTDIR)$(bindir)/$$lcmd; \ |
---|
286 | done |
---|
287 | for misc in $(MISC); do \ |
---|
288 | rm -f $(DESTDIR)$(libdir)/$$misc; \ |
---|
289 | done |
---|
290 | |
---|
291 | # ========== DEPENDENCIES FOR CLEANUP ========== |
---|
292 | |
---|
293 | mostlyclean: |
---|
294 | rm -f *.o *~ |
---|
295 | |
---|
296 | clean: mostlyclean |
---|
297 | rm -f $(CMDS) $(MISC) |
---|
298 | |
---|
299 | distclean: clean |
---|
300 | rm -f Makefile |
---|
301 | |
---|
302 | realclean: distclean |
---|
303 | |
---|
304 | superclean: realclean |
---|
305 | |
---|
306 | # ========== DEPENDENCIES FOR MAINTENANCE ========== |
---|
307 | |
---|
308 | subdir = uip |
---|
309 | |
---|
310 | Makefile: Makefile.in ../config.status |
---|
311 | cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status |
---|
312 | |
---|
313 | distdir = ../`cat ../distname`/$(subdir) |
---|
314 | nmhdist: $(DIST) |
---|
315 | @echo "Copying distribution files in $(subdir)" |
---|
316 | @for file in $(DIST); do \ |
---|
317 | cp -p $(srcdir)/$$file $(distdir); \ |
---|
318 | done |
---|
319 | |
---|