case $CONFIG in '') . config.sh ;; esac echo "Extracting Makefile (with variable substitutions)" cat >Makefile <>Makefile <<'!NO!SUBS!' public = rn newsetup newsgroups Pnews Rnmail private = norm.saver mbox.saver ng.help art.help pager.help subs.help makedir filexp Pnews.header getactive manpages = rn.1 Pnews.1 Rnmail.1 newsetup.1 newsgroups.1 util = Makefile makedepend newsnews h1 = addng.h art.h artio.h artsrch.h backpage.h bits.h cheat.h common.h h2 = final.h head.h help.h init.h intrp.h kfile.h last.h ndir.h ng.h h3 = ngdata.h ngsrch.h ngstuff.h only.h rcln.h rcstuff.h h4 = respond.h rn.h search.h sw.h term.h util.h h = $(h1) $(h2) $(h3) $(h4) c1 = addng.c art.c artio.c artsrch.c backpage.c bits.c cheat.c c2 = final.c head.c help.c init.c intrp.c kfile.c last.c $(NDIRC) ng.c c3 = ngdata.c ngsrch.c ngstuff.c only.c rcln.c rcstuff.c c4 = respond.c rn.c search.c sw.c term.c util.c $(NNTPSRC)/common/clientlib.c c = $(c1) $(c2) $(c3) $(c4) obj1 = addng.o art.o artio.o artsrch.o backpage.o bits.o cheat.o obj2 = final.o head.o help.o init.o intrp.o kfile.o last.o $(NDIRO) ng.o obj3 = ngdata.o ngsrch.o ngstuff.o only.o rcln.o rcstuff.o obj4 = respond.o rn.o search.o sw.o term.o util.o $(NNTPSRC)/common/clientlib.o obj = $(obj1) $(obj2) $(obj3) $(obj4) base = addng.o art.o artio.o artsrch.o backpage.o bits.o cheat.o final.o \ head.o intrp.o ng.o rn.o $(NNTPSRC)/common/clientlib.o ov1 = help.o init.o kfile.o last.o $(NDIRO) ngdata.o ngsrch.o \ ngstuff.o only.o rcln.o rcstuff.o ov2 = respond.o search.o sw.o term.o util.o lintflags = -phbvxac add1 = Makefile.old Pnews Rnmail art.help add2 = bsd config.h config.sh eunice filexp add3 = loc makedepend makedir mbox.saver newsetup add4 = newsgroups newsnews ng.help norm.saver pager.help add5 = pdp11 rn subs.help usg v7 addedbyconf = $(add1) $(add2) $(add3) $(add4) $(add5) # grrr SHELL = /bin/sh .c.o: $(CC) -c $(CFLAGS) $*.c all: $(public) $(private) $(util) touch all rn: $(obj) # $(CC) $(LDFLAGS) $(obj) $(libs) -o rn $(CC) $(LDFLAGS) $(base) -Z $(ov1) -Z $(ov2) -Y $(libs) -o rn getactive: getactive.o $(NNTPSRC)/common/clientlib.o $(CC) $(LDFLAGS) getactive.o $(NNTPSRC)/common/clientlib.o -o getactive # Eek! This is gross. $(NNTPSRC)/common/clientlib.o: $(CC) -c $(CFLAGS) $(NNTPSRC)/common/clientlib.c mv clientlib.o $(NNTPSRC)/common/clientlib.o # if a .h file depends on another .h file... $(h): touch $@ install: rn # won't work with csh export PATH || exit 1 - mv $(rnbin)/rn $(rnbin)/rn.old - ln -s $(rnbin)/rn $(rnbin)/rrn - if test `pwd` != $(rnbin); then cp $(public) $(rnbin); fi cd $(rnbin); chmod 755 $(public) chmod 755 makedir - ./makedir `./filexp $(rnlib)` - if test `pwd` != `./filexp $(rnlib)`; then cp INIT $(private) `./filexp $(rnlib)`; fi cd `./filexp $(rnlib)`; chmod 755 $(private) - if test ! -f `./filexp $(rnlib)/newsnews`; then cp newsnews `./filexp $(rnlib)`; fi - if test `pwd` != $(mansrc); then \ for page in $(manpages); do \ cp $$page $(mansrc)/`basename $$page .1`.$(manext); \ done; \ fi clean: rm -f *.o rn core getactive realclean: rm -f rn *.o core $(addedbyconf) $(NNTPSRC)/common/clientlib.o # The following lint has practically everything turned on. Unfortunately, # you have to wade through a lot of mumbo jumbo that can't be suppressed. # If the source file has a /*NOSTRICT*/ somewhere, ignore the lint message # for that spot. lint: lint $(lintflags) $(defs) $(c) > rn.fuzz depend: makedepend # AUTOMATICALLY GENERATED MAKE DEPENDENCIES--PUT NOTHING BELOW THIS LINE $(obj): @ echo "You haven't done a "'"make depend" yet!'; exit 1 !NO!SUBS! $eunicefix Makefile