|
|
1.1 root 1: case $CONFIG in
2: '') . config.sh ;;
3: esac
4: echo "Extracting Makefile (with variable substitutions)"
5: cat >Makefile <<!GROK!THIS!
6: # $Header: Makefile.SH,v 4.4 85/05/13 17:21:18 lwall Exp $
7: #
8: # $Log: Makefile.SH,v $
9: # Revision 4.3.1.2 85/05/13 17:21:18 lwall
10: # System V make needs space before line-continuing backslash.
11: #
12: # Revision 4.3.1.1 85/05/10 11:30:15 lwall
13: # Branch for patches.
14: #
15: # Revision 4.3 85/05/01 11:33:26 lwall
16: # Baseline for release with 4.3bsd.
17: #
18:
19: CC = $cc
20: rnbin = \${DESTDIR}$rnbin
21: rnlib = \${DESTDIR}$rnlib
22: mansrc = \${DESTDIR}$mansrc
23: manext = $manext
24: CFLAGS = $iandd -O
25: LDFLAGS = $iandd
26: NDIRC = $ndirc
27: NDIRO = $ndiro
28:
29: libs = $ndirlib $termlib $jobslib
30: !GROK!THIS!
31: cat >>Makefile <<'!NO!SUBS!'
32:
33: public = rn newsetup newsgroups Pnews Rnmail
34: private = norm.saver mbox.saver ng.help art.help pager.help subs.help makedir filexp Pnews.header
35: manpages = rn.1 Pnews.1 Rnmail.1 newsetup.1 newsgroups.1
36: util = Makefile makedepend newsnews
37:
38: h1 = addng.h art.h artio.h artsrch.h backpage.h bits.h cheat.h common.h
39: h2 = final.h head.h help.h init.h intrp.h kfile.h last.h ndir.h ng.h
40: h3 = ngdata.h ngsrch.h ngstuff.h only.h rcln.h rcstuff.h
41: h4 = respond.h rn.h search.h sw.h term.h util.h
42:
43: h = $(h1) $(h2) $(h3) $(h4)
44:
45: c1 = addng.c art.c artio.c artsrch.c backpage.c bits.c cheat.c
46: c2 = final.c head.c help.c init.c intrp.c kfile.c last.c $(NDIRC) ng.c
47: c3 = ngdata.c ngsrch.c ngstuff.c only.c rcln.c rcstuff.c
48: c4 = respond.c rn.c search.c sw.c term.c util.c
49:
50: c = $(c1) $(c2) $(c3) $(c4)
51:
52: obj1 = addng.o art.o artio.o artsrch.o backpage.o bits.o cheat.o
53: obj2 = final.o head.o help.o init.o intrp.o kfile.o last.o $(NDIRO) ng.o
54: obj3 = ngdata.o ngsrch.o ngstuff.o only.o rcln.o rcstuff.o
55: obj4 = respond.o rn.o search.o sw.o term.o util.o
56:
57: obj = $(obj1) $(obj2) $(obj3) $(obj4)
58:
59: lintflags = -phbvxac
60:
61: add1 = Makefile.old Pnews Rnmail art.help
62: add2 = bsd config.h config.sh eunice filexp
63: add3 = loc makedepend makedir mbox.saver newsetup
64: add4 = newsgroups newsnews ng.help norm.saver pager.help
65: add5 = pdp11 rn subs.help usg v7
66:
67: addedbyconf = $(add1) $(add2) $(add3) $(add4) $(add5)
68:
69: # grrr
70: SHELL = /bin/sh
71:
72: .c.o:
73: $(CC) -c $(CFLAGS) $*.c
74:
75: all: $(public) $(private) $(util)
76: touch all
77:
78: rn: $(obj)
79: $(CC) $(LDFLAGS) $(obj) $(libs) -o rn
80:
81: # if a .h file depends on another .h file...
82: $(h):
83: touch $@
84:
85: install: rn
86: # won't work with csh
87: export PATH || exit 1
88: - mv $(rnbin)/rn $(rnbin)/rn.old
89: - if test `pwd` != $(rnbin); then cp $(public) $(rnbin); fi
90: cd $(rnbin); chmod 755 $(public)
91: chmod 755 makedir
92: - ./makedir `./filexp $(rnlib)`
93: - if test `pwd` != `./filexp $(rnlib)`; then cp INIT $(private) `./filexp $(rnlib)`; fi
94: cd `./filexp $(rnlib)`; chmod 755 $(private)
95: - if test ! -f `./filexp $(rnlib)/newsnews`; then cp newsnews `./filexp $(rnlib)`; fi
96: - if test `pwd` != $(mansrc); then \
97: for page in $(manpages); do \
98: cp $$page $(mansrc)/`basename $$page .1`.$(manext); \
99: done; \
100: fi
101:
102: clean:
103: rm -f *.o
104:
105: realclean:
106: rm -f rn *.o core $(addedbyconf)
107:
108: # The following lint has practically everything turned on. Unfortunately,
109: # you have to wade through a lot of mumbo jumbo that can't be suppressed.
110: # If the source file has a /*NOSTRICT*/ somewhere, ignore the lint message
111: # for that spot.
112:
113: lint:
114: lint $(lintflags) $(defs) $(c) > rn.fuzz
115:
116: depend:
117: makedepend
118:
119: # AUTOMATICALLY GENERATED MAKE DEPENDENCIES--PUT NOTHING BELOW THIS LINE
120: $(obj):
121: @ echo "You haven't done a "'"make depend" yet!'; exit 1
122: !NO!SUBS!
123: $eunicefix Makefile
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.