Annotation of 43BSD/contrib/nntp/rrn/Makefile, revision 1.1.1.1

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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.