home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / TELECOM / rn_4_3_blars.lzh / Makefile < prev    next >
Makefile  |  1991-09-24  |  6KB  |  158 lines

  1. # rn makefile modified for osk from makefile.sh by blarson
  2.  
  3. CC = cc
  4. RNBIN = /h0/ulib/newsbin/rn
  5. # rnlib = $rnlib
  6. # mansrc = $mansrc
  7. # manext = $manext
  8. #NNTPNNTPDIR = $NNTPSRC
  9. #NNTPNNTPINC = $rrninclude
  10. CFLAGS = -t=/r0 -v=/h0/blarslib/defs
  11. LDFLAGS = -i
  12. RNLDFLAGS = -bg -m=16k
  13. libs = -l=/h0/blarslib/blarslib.l -l=/dd/lib/termlib.l
  14. # NDIRC = $ndirc
  15. # NDIRO = $ndiro
  16. ODIR = /h0/cmds
  17.  
  18. #NNTPnntp=getactive
  19. public = rn newsetup Pnews Rnmail newsgroups
  20. private = $(RNBIN)/norm.saver mbox.saver ng.help art.help pager.help subs.help makedir filexp Pnews.header
  21. util = Makefile makedepend newsnews
  22.  
  23.  
  24. h1 = addng.h art.h artio.h artsrch.h backpage.h bits.h cheat.h common.h
  25. h2 = final.h head.h help.h init.h intrp.h kfile.h last.h ndir.h ng.h
  26. h3 = ngdata.h ngsrch.h ngstuff.h only.h rcln.h rcstuff.h
  27. h4 = respond.h rn.h search.h sw.h term.h util.h
  28.  
  29. h = $(h1) $(h2) $(h3) $(h4)
  30.  
  31. c1 = addng.c art.c artio.c artsrch.c backpage.c bits.c cheat.c
  32. c2 = final.c head.c help.c init.c intrp.c kfile.c last.c ng.c
  33. c3 = ngdata.c ngsrch.c ngstuff.c only.c rcln.c rcstuff.c
  34. c4 = respond.c rn.c search.c sw.c term.c util.c
  35.  
  36. c = $(c1) $(c2) $(c3) $(c4)
  37.  
  38. obj1 = addng.r art.r artio.r artsrch.r backpage.r bits.r cheat.r
  39. obj2 = final.r head.r help.r init.r intrp.r kfile.r last.r ng.r
  40. obj3 = ngdata.r ngsrch.r ngstuff.r only.r rcln.r rcstuff.r
  41. obj4 = respond.r rn.r search.r sw.r term.r util.r
  42.  
  43. obj = $(obj1) $(obj2) $(obj3) $(obj4)
  44.  
  45. all: $(public) $(private) $(util)
  46.   touch all
  47.  
  48. rn: $(obj)
  49.   $(CC) $(LDFLAGS) $(RNLDFLAGS) $(obj) $(libs) -f=$@
  50.   attr -x -e -pe $@
  51.  
  52. $(RNBIN)/norm.saver: norm.saver.r
  53.   $(CC) $(LDFLAGS) norm.saver.r $(libs) -fd=$@
  54.   attr -e -pe $@
  55.  
  56. newsetup: newsetup.r
  57.   $(CC) $(LDFLAGS) newsetup.r $(libs) -f=$@
  58.   attr -x -e -pe $@
  59.  
  60. Pnews: Pnews.r
  61.   $(CC) $(LDFLAGS) Pnews.r $(libs) -f=$@
  62.   attr -x -e -pe $@
  63.  
  64. # install: rn
  65. # won't work with csh
  66. #  export PATH || exit 1
  67. #  - mv $(rnbin)/rn $(rnbin)/rn.old
  68. #  - if test `pwd` != $(rnbin); then cp $(public) $(rnbin); fi
  69. #  cd $(rnbin); chmod 755 $(public)
  70. #  chmod 755 makedir
  71. #  - ./makedir `./filexp $(rnlib)`
  72. #  - if test `pwd` != `./filexp $(rnlib)`; then cp INIT $(private) `./filexp $(rnlib)`; fi
  73. #  cd `./filexp $(rnlib)`; chmod 755 $(private)
  74. #  - if test ! -f `./filexp $(rnlib)/newsnews`; then cp newsnews `./filexp $(rnlib)`; fi
  75. #  - if test `pwd` != $(mansrc); then \
  76. #for page in $(manpages); do \
  77. #cp $$page $(mansrc)/`basename $$page .1`.$(manext); \
  78. #done; \
  79. ##NNTPecho ".so man$(manext)/rn.$(manext)" > $(mansrc)/rrn.$(manext) ; \
  80. #fi
  81.  
  82. clean:
  83.   rm -f *.r
  84.  
  85. # osk dependencies created with grep and mg.  Go ahead and fix it if broke.
  86.  
  87. addng.r: EXTERN.h common.h rn.h ngdata.h last.h util.h intrp.h only.h rcstuff.h INTERN.h addng.h
  88.  
  89. art.r: EXTERN.h common.h rn.h ngstuff.h ngdata.h head.h cheat.h help.h search.h artio.h ng.h bits.h final.h artstate.h rcstuff.h term.h sw.h util.h backpage.h intrp.h INTERN.h art.h
  90.  
  91. artio.r: EXTERN.h common.h INTERN.h artio.h
  92.  
  93. artsrch.r: EXTERN.h common.h search.h term.h util.h intrp.h bits.h kfile.h head.h final.h cheat.h ng.h artio.h INTERN.h artsrch.h
  94.  
  95. backpage.r: EXTERN.h common.h intrp.h final.h INTERN.h backpage.h
  96.  
  97. bits.r: EXTERN.h common.h rcstuff.h head.h util.h final.h rn.h cheat.h ng.h artio.h intrp.h ngdata.h rcln.h kfile.h INTERN.h bits.h
  98.  
  99. cheat.r: EXTERN.h common.h intrp.h search.h ng.h bits.h artio.h term.h artsrch.h head.h INTERN.h cheat.h
  100.  
  101. final.r: EXTERN.h common.h util.h term.h ng.h init.h bits.h last.h rcstuff.h ngdata.h artio.h INTERN.h final.h backpage.r
  102.  
  103. getactive.r: config.h EXTERN.h
  104.  
  105. head.r: EXTERN.h common.h artio.h bits.h util.h INTERN.h head.h
  106.  
  107. help.r: EXTERN.h common.h rn.h term.h INTERN.h help.h
  108.  
  109. init.r: EXTERN.h common.h util.h final.h term.h last.h rn.h rcstuff.h ngdata.h only.h intrp.h addng.h sw.h art.h artsrch.h artio.h backpage.h bits.h cheat.h head.h help.h kfile.h ngsrch.h ngstuff.h rcln.h respond.h ng.h INTERN.h init.h
  110.  
  111. intrp.r: EXTERN.h common.h util.h search.h head.h rn.h artsrch.h ng.h respond.h rcstuff.h bits.h artio.h term.h final.h INTERN.h intrp.h
  112.  
  113. kfile.r: EXTERN.h common.h term.h util.h artsrch.h ng.h bits.h intrp.h ngstuff.h rcstuff.h rn.h INTERN.h kfile.h
  114.  
  115. last.r: EXTERN.h common.h rn.h util.h intrp.h INTERN.h last.h
  116.  
  117. ndir.r: EXTERN.h common.h INTERN.h ndir.h
  118.  
  119. ng.r: EXTERN.h common.h rn.h term.h final.h util.h artsrch.h cheat.h help.h kfile.h rcstuff.h head.h bits.h art.h artio.h ngstuff.h intrp.h respond.h ngdata.h backpage.h rcln.h last.h search.h INTERN.h ng.h artstate.h
  120.  
  121. ngdata.r: EXTERN.h common.h ndir.h rcstuff.h rn.h intrp.h final.h rcln.h util.h INTERN.h ngdata.h
  122.  
  123. ngsrch.r: EXTERN.h common.h rcstuff.h final.h search.h rn.h util.h term.h rcln.h INTERN.h ngsrch.h
  124.  
  125. ngstuff.r: EXTERN.h common.h term.h util.h ng.h bits.h intrp.h cheat.h head.h final.h sw.h INTERN.h ngstuff.h
  126.  
  127. only.r: EXTERN.h common.h search.h util.h final.h ngsrch.h INTERN.h only.h
  128.  
  129. rcln.r: EXTERN.h common.h util.h rcstuff.h ngdata.h INTERN.h rcln.h
  130.  
  131. rcstuff.r: EXTERN.h common.h util.h ngdata.h term.h final.h rn.h intrp.h only.h rcln.h INTERN.h rcstuff.h
  132.  
  133. respond.r: EXTERN.h common.h intrp.h head.h term.h ng.h util.h rn.h artio.h final.h INTERN.h respond.h
  134.  
  135. rn.r: INTERN.h common.h rn.h EXTERN.h rcstuff.h term.h final.h ngdata.h util.h only.h ngsrch.h help.h last.h init.h intrp.h rcln.h sw.h addng.h ng.h
  136.  
  137. search.r: EXTERN.h common.h util.h INTERN.h search.h
  138.  
  139. sw.r: EXTERN.h common.h util.h head.h only.h term.h ng.h intrp.h INTERN.h sw.h
  140.  
  141. term.r: EXTERN.h common.h util.h final.h help.h cheat.h intrp.h INTERN.h term.h
  142.  
  143. util.r: EXTERN.h common.h final.h ndir.h INTERN.h util.h
  144.  
  145. artsrch.h: search.h
  146.  touch $@
  147. common.h: config.h
  148.  touch $@
  149. only.h: search.h
  150.  touch $@
  151.  
  152. norm.saver.r: norm.saver.c
  153.  
  154. newsetup.r: newsetup.c config.h
  155.  
  156. Pnews.r: Pnews.c common.h
  157.  
  158.