source: trunk/third/nmh/uip/Makefile.in @ 13551

Revision 13551, 10.1 KB checked in by ghudson, 25 years ago (diff)
Create install directory for symlinks. Make sure /usr/athena/bin is created if dependencies are run out of order.
Line 
1#
2# Makefile for uip subdirectory
3#
4# $Id: Makefile.in,v 1.6 1999-09-02 14:42:21 ghudson Exp $
5#
6
7SHELL = /bin/sh
8
9top_srcdir = @top_srcdir@
10srcdir     = @srcdir@
11VPATH      = @srcdir@
12
13prefix      = @prefix@
14exec_prefix = @exec_prefix@
15bindir      = @bindir@
16libdir      = @libdir@
17etcdir      = @sysconfdir@
18
19CC       = @CC@
20CFLAGS   = @CFLAGS@
21DEFS     = @DEFS@
22HESIOD_INCLUDES = @HESIOD_INCLUDES@
23INCLUDES = -I.. -I$(srcdir) -I$(top_srcdir) $(HESIOD_INCLUDES)
24LDFLAGS  = @LDFLAGS@
25
26LIBS     = @LIBS@
27MTSLIB   = @MTSLIB@
28KRB4_LIBS = @KRB4_LIBS@
29HESIOD_LIBS = @HESIOD_LIBS@
30LOCALLIBS = ../config/version.o ../config/config.o ../sbr/libmh.a ../$(MTSLIB) ../zotnet/libzot.a
31LINKLIBS = $(LOCALLIBS) $(KRB4_LIBS) $(HESIOD_LIBS) $(LIBS)
32
33TERMLIB = @TERMLIB@
34LEXLIB  = @LEXLIB@
35POPLIB  = @POPLIB@
36
37COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES) $(CFLAGS)
38LINK    = $(CC) $(LDFLAGS) -o $@
39LN = ln
40
41INSTALL         = @INSTALL@
42INSTALL_PROGRAM = @INSTALL_PROGRAM@
43
44.SUFFIXES:
45.SUFFIXES: .c .o
46
47.c.o:
48        $(COMPILE) $<
49
50# commands to build
51CMDS = 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
60LCMDS = flists folders next prev
61
62# misc support binaries
63MISC = ap conflict dp fmtdump install-mh mhl post rcvdist rcvpack \
64       rcvstore rcvtty slocal spost
65
66# source files
67SRCS = 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
80AUX = Makefile.in
81
82# all files in this directory included in the distribution
83DIST = $(SRCS) $(AUX)
84
85# ========== DEFAULT TARGET ==========
86
87all: $(CMDS) $(MISC)
88
89# ========= DEPENDENCIES FOR BUILDING ==========
90
91ali: ali.o aliasbr.o $(LOCALLIBS)
92        $(LINK) ali.o aliasbr.o $(LINKLIBS)
93
94ap: ap.o termsbr.o $(LOCALLIBS)
95        $(LINK) ap.o termsbr.o $(LINKLIBS) $(TERMLIB)
96
97anno: anno.o annosbr.o $(LOCALLIBS)
98        $(LINK) anno.o annosbr.o $(LINKLIBS)
99
100burst: burst.o $(LOCALLIBS)
101        $(LINK) burst.o $(LINKLIBS)
102
103comp: 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
106conflict: conflict.o aliasbr.o $(LOCALLIBS)
107        $(LINK) conflict.o aliasbr.o $(LINKLIBS)
108
109dist: 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
112dp: dp.o termsbr.o $(LOCALLIBS)
113        $(LINK) dp.o termsbr.o $(LINKLIBS) $(TERMLIB)
114
115flist: flist.o $(LOCALLIBS)
116        $(LINK) flist.o $(LINKLIBS)
117
118fmtdump: fmtdump.o $(LOCALLIBS)
119        $(LINK) fmtdump.o $(LINKLIBS)
120
121folder: folder.o $(LOCALLIBS)
122        $(LINK) folder.o $(LINKLIBS)
123
124forw: 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
127inc: inc.o scansbr.o dropsbr.o termsbr.o $(POPLIB) $(LOCALLIBS)
128        $(LINK) inc.o scansbr.o dropsbr.o termsbr.o $(POPLIB) $(LINKLIBS) $(TERMLIB)
129
130install-mh: install-mh.o $(LOCALLIBS)
131        $(LINK) install-mh.o $(LINKLIBS)
132
133mark: mark.o $(LOCALLIBS)
134        $(LINK) mark.o $(LINKLIBS)
135
136mhbuild: 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
139mhl: mhl.o mhlsbr.o termsbr.o $(LOCALLIBS)
140        $(LINK) mhl.o mhlsbr.o termsbr.o $(LINKLIBS) $(TERMLIB)
141
142mhlist: 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
145mhmail: mhmail.o $(LOCALLIBS)
146        $(LINK) mhmail.o $(LINKLIBS)
147
148mhn: 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
151mhparam: mhparam.o $(LOCALLIBS)
152        $(LINK) mhparam.o $(LINKLIBS)
153
154mhpath: mhpath.o $(LOCALLIBS)
155        $(LINK) mhpath.o $(LINKLIBS)
156
157mhshow: 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
160mhstore: 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
163mhtest: 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
166msgchk: msgchk.o $(POPLIB) $(LOCALLIBS)
167        $(LINK) msgchk.o $(POPLIB) $(LINKLIBS)
168
169msh: 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
172packf: packf.o dropsbr.o $(LOCALLIBS)
173        $(LINK) packf.o dropsbr.o $(LINKLIBS)
174
175pick: pick.o picksbr.o $(LOCALLIBS)
176        $(LINK) pick.o picksbr.o $(LINKLIBS)
177
178post: post.o aliasbr.o $(LOCALLIBS)
179        $(LINK) post.o aliasbr.o $(LINKLIBS)
180
181prompter: prompter.o $(LOCALLIBS)
182        $(LINK) prompter.o $(LINKLIBS)
183
184rcvdist: rcvdist.o distsbr.o $(LOCALLIBS)
185        $(LINK) rcvdist.o distsbr.o $(LINKLIBS)
186
187rcvpack: rcvpack.o dropsbr.o $(LOCALLIBS)
188        $(LINK) rcvpack.o dropsbr.o $(LINKLIBS)
189
190rcvstore: rcvstore.o $(LOCALLIBS)
191        $(LINK) rcvstore.o $(LINKLIBS)
192
193rcvtty: rcvtty.o scansbr.o termsbr.o $(LOCALLIBS)
194        $(LINK) rcvtty.o scansbr.o termsbr.o $(LINKLIBS) $(TERMLIB)
195
196refile: refile.o $(LOCALLIBS)
197        $(LINK) refile.o $(LINKLIBS)
198
199repl: 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
202rmf: rmf.o $(LOCALLIBS)
203        $(LINK) rmf.o $(LINKLIBS)
204
205rmm: rmm.o $(LOCALLIBS)
206        $(LINK) rmm.o $(LINKLIBS)
207
208scan: scan.o scansbr.o termsbr.o $(LOCALLIBS)
209        $(LINK) scan.o scansbr.o termsbr.o $(LINKLIBS) $(TERMLIB)
210
211send: send.o sendsbr.o annosbr.o distsbr.o $(LOCALLIBS)
212        $(LINK) send.o sendsbr.o annosbr.o distsbr.o $(LINKLIBS)
213
214show: show.o mhlsbr.o termsbr.o $(LOCALLIBS)
215        $(LINK) show.o mhlsbr.o termsbr.o $(LINKLIBS) $(TERMLIB)
216
217slocal: slocal.o aliasbr.o dropsbr.o $(LOCALLIBS)
218        $(LINK) slocal.o aliasbr.o dropsbr.o $(LINKLIBS)
219
220sortm: sortm.o $(LOCALLIBS)
221        $(LINK) sortm.o $(LINKLIBS)
222
223spost: spost.o aliasbr.o $(LOCALLIBS)
224        $(LINK) spost.o aliasbr.o $(LINKLIBS)
225
226viamail: 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
229vmh: vmh.o vmhsbr.o $(LOCALLIBS)
230        $(LINK) vmh.o vmhsbr.o $(LINKLIBS) $(TERMLIB)
231
232whatnow: 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
235whom: whom.o distsbr.o $(LOCALLIBS)
236        $(LINK) whom.o distsbr.o $(LINKLIBS)
237
238# ========== DEPENDENCIES FOR INSTALLING ==========
239
240# install everything
241install: install-cmds install-lcmds install-misc
242
243# install commands
244install-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
251install-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
274install-misc:
275        $(top_srcdir)/mkinstalldirs $(DESTDIR)$(libdir)
276        for misc in $(MISC); do \
277          $(INSTALL_PROGRAM) $$misc $(DESTDIR)$(libdir)/$$misc; \
278        done
279
280uninstall:
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
293mostlyclean:
294        rm -f *.o *~
295
296clean: mostlyclean
297        rm -f $(CMDS) $(MISC)
298
299distclean: clean
300        rm -f Makefile
301
302realclean: distclean
303
304superclean: realclean
305
306# ========== DEPENDENCIES FOR MAINTENANCE ==========
307
308subdir = uip
309
310Makefile: Makefile.in ../config.status
311        cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
312
313distdir = ../`cat ../distname`/$(subdir)
314nmhdist: $(DIST)
315        @echo "Copying distribution files in $(subdir)"
316        @for file in $(DIST); do \
317          cp -p $(srcdir)/$$file $(distdir); \
318        done
319
Note: See TracBrowser for help on using the repository browser.