home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / n / tcpip / nntp-1.5 / nntp-1 / nntp.1.5.11t / Makefile < prev    next >
Encoding:
Makefile  |  1994-09-04  |  2.3 KB  |  85 lines

  1. #
  2. # Makefile for NNTP intstallation
  3. # $Header: /home/gazette/sob/src/hold/nntp/RCS/Makefile,v 1.3 90/08/04 20:31:45 sob Exp Locker: sob $
  4. # The program that knows how to deal with makefiles. [Uncomment if needed.]
  5. # MAKE=make
  6. # set CFLAGS to be -Ipath/to/special/includes if needed
  7. #CFLAGS= -DLINUX -I/usr/lib/dbz.o -O
  8. CFLAGS    = -O6 -DPR_HACK
  9. # set LIBS to be -lneededlibrary if needed
  10. #LIBS=-ldbm
  11. LIBS=-ldbz
  12. #LIBS=-lsyslog -lresolv
  13.  
  14. DISTFILES = Makefile README CHANGES
  15.  
  16. DISTDIRS = common doc inews server support xfer xmit
  17.  
  18. DIST = $(DISTFILES) $(DISTDIRS)
  19.  
  20. SHELL=/bin/sh
  21.  
  22. # Make this either "server" or "client" depending on whether
  23. # you want this package compiled to be a server or a client
  24. # (You can always say "make server" or "make client" if you want.
  25.  
  26. TYPE = 
  27.  
  28. all: make_$(TYPE)
  29.  
  30. make_:
  31.     @ echo "If you want to make a server version or a client version,"
  32.     @ echo "type \"make server\" or \"make client\" respectively."
  33.     @ echo "See README for details."
  34.  
  35. make_server: /nowhere
  36.     cd server; $(MAKE) $(MFLAGS) "LIBS=${LIBS}" "CFLAGS=${CFLAGS}"
  37.     cd support; $(MAKE) $(MFLAGS) "LIBS=${LIBS}" "CFLAGS=${CFLAGS}"
  38.     cd xmit; $(MAKE) $(MFLAGS) "LIBS=${LIBS}" "CFLAGS=${CFLAGS}"
  39.     cd xfer; $(MAKE) $(MFLAGS) "LIBS=${LIBS}" "CFLAGS=${CFLAGS}"
  40. #    cd doc; $(MAKE) $(MFLAGS) "LIBS=${LIBS}" "CFLAGS=${CFLAGS}"
  41.  
  42. server: make_server
  43.  
  44. make_client: /nowhere
  45.     cd inews; $(MAKE) $(MFLAGS) "LIBS=${LIBS}" "CFLAGS=${CFLAGS}"
  46.     cd doc; $(MAKE) $(MFLAGS) "LIBS=${LIBS}" "CFLAGS=${CFLAGS}"
  47.  
  48. client: make_client
  49.  
  50. install: install_$(TYPE)
  51.  
  52. install_:
  53.     @ echo "If you want to install a server version or"
  54.     @ echo "a client version, type \"make install_server\""
  55.     @ echo "or \"make install_client\" respectively."
  56.     @ echo "See README for more details."
  57.  
  58. install_server:
  59.     cd server; make install
  60.     cd support; make install
  61. #    cd doc; make install
  62.  
  63. install_client:
  64.     cd inews; make install
  65. #    cd doc; make install
  66.  
  67. clean:
  68.     rm  -f .[a-z]* ; for i in $(DISTDIRS); do cd $$i; $(MAKE) $(MFLAGS) clean; cd ..; done
  69.  
  70. check:
  71.     for i in $(DISTDIRS); do cd $$i; $(MAKE) $(MFLAGS) check; cd ..; done
  72.  
  73. distrib: check
  74.     mkdir ../nntp.dist
  75.     cp -rp $(DIST) ../nntp.dist
  76.     cd ../nntp.dist; for i in $(DISTDIRS); do cd $$i; $(MAKE) $(MFLAGS) distrib; cd ..; done
  77.  
  78. rpt: /nowhere
  79.     tar cf rrnpatches.tar rrnpatches; compress rrnpatches.tar
  80.  
  81. server: /nowhere
  82. client: /nowhere
  83.  
  84. /nowhere: ;
  85.