|
|
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.3.1.2 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 = $rnbin
21: rnlib = $rnlib
22: mansrc = $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 getactive
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 server.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 ../common/clientlib.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 ../common/clientlib.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: getactive: getactive.o ../common/clientlib.o
82: $(CC) $(LDFLAGS) getactive.o ../common/clientlib.o -o getactive
83:
84: # Eek! This is gross.
85: ../common/clientlib.o:
86: $(CC) -c ../common/clientlib.c
87: mv clientlib.o ../common/clientlib.o
88:
89: # if a .h file depends on another .h file...
90: $(h):
91: touch $@
92:
93: install: rn
94: # won't work with csh
95: export PATH || exit 1
96: - mv $(rnbin)/rn $(rnbin)/rn.old
97: - ln -s $(rnbin)/rn $(rnbin)/rrn
98: - if test `pwd` != $(rnbin); then cp $(public) $(rnbin); fi
99: cd $(rnbin); chmod 755 $(public)
100: chmod 755 makedir
101: - ./makedir `./filexp $(rnlib)`
102: - if test `pwd` != `./filexp $(rnlib)`; then cp INIT $(private) `./filexp $(rnlib)`; fi
103: cd `./filexp $(rnlib)`; chmod 755 $(private)
104: - if test ! -f `./filexp $(rnlib)/newsnews`; then cp newsnews `./filexp $(rnlib)`; fi
105: - if test `pwd` != $(mansrc); then \
106: for page in $(manpages); do \
107: cp $$page $(mansrc)/`basename $$page .1`.$(manext); \
108: done; \
109: fi
110:
111: clean:
112: rm -f *.o
113:
114: realclean:
115: rm -f rn *.o core $(addedbyconf)
116:
117: # The following lint has practically everything turned on. Unfortunately,
118: # you have to wade through a lot of mumbo jumbo that can't be suppressed.
119: # If the source file has a /*NOSTRICT*/ somewhere, ignore the lint message
120: # for that spot.
121:
122: lint:
123: lint $(lintflags) $(defs) $(c) > rn.fuzz
124:
125: depend:
126: makedepend
127:
128: # AUTOMATICALLY GENERATED MAKE DEPENDENCIES--PUT NOTHING BELOW THIS LINE
129: $(obj):
130: @ echo "You haven't done a "'"make depend" yet!'; exit 1
131: !NO!SUBS!
132: $eunicefix Makefile
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.