home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 2 / FFMCD02.bin / new / comm / net / amitcp / amitcp-2.2 / src / util / gnumakefile < prev    next >
Encoding:
Makefile  |  1993-12-21  |  2.8 KB  |  104 lines

  1. # $Id: GNUmakefile,v 1.17 1993/11/12 06:14:57 jraja Exp $
  2. #
  3. # GNUmakefile for AmiTCP/IP network utilities
  4. #
  5. # Copyright © 1993 AmiTCP/IP Group, <amitcp-group@hut.fi>
  6. #                  Helsinki University of Technology, Finland.
  7. #
  8. # Created      : Fri May 14 17:43:05 1993 ppessi
  9. # Last modified: Fri Nov 12 08:14:48 1993 jraja
  10. #
  11. # $Log: GNUmakefile,v $
  12. # Revision 1.17  1993/11/12  06:14:57  jraja
  13. # Added SCOPTIONS for the minimalistic utilities.
  14. #
  15. # Revision 1.16  1993/11/12  00:35:51  ppessi
  16. # Added RELEASE
  17. #
  18. # Revision 1.15  1993/10/14  00:20:06  ppessi
  19. # Moved some utilities to appl and devs directories.
  20. #
  21. # Revision 1.14  1993/08/12  09:26:08  jraja
  22. # Removed unnecessary files from route.
  23. #
  24. # Revision 1.13  1993/08/11  00:28:41  ppessi
  25. # Added netutil.doc into the distribution.
  26. #
  27. # Revision 1.12  1993/08/10  20:49:48  jraja
  28. # Added agnet/SCOPTIONS.
  29. #
  30. # Revision 1.11  1993/08/09  15:47:50  jraja
  31. # Moved agnet configuration files to ../env/sana2.
  32. #
  33. # Revision 1.10  1993/08/09  15:45:10  jraja
  34. # Updated agnet distribution (ppessi).
  35. #
  36. # Revision 1.9  1993/08/02  14:00:25  jraja
  37. # Fixed errors in Agnet file list.
  38. #
  39. # Revision 1.8  1993/08/02  13:39:11  jraja
  40. # Added EmacsTcp binaries to the distribution.
  41. #
  42. # Revision 1.7  1993/08/02  01:21:06  ppessi
  43. # Added Log. Fixed Agnet source typos.
  44. #
  45. #
  46.  
  47. #DIST = ../DIST
  48. DIST_UTIL = $(DIST)/util
  49. DIST_DOC = $(DIST)/doc
  50.  
  51. GENERIC = GNUmakefile Smakefile AMITCP.GNUmk AMITCP.SCmk SCOPTIONS
  52.  
  53. # Minimalistic utilites: (these still need the SCOPTIONS)
  54. ARP = arp/arp.c arp/Smake.def 
  55.  
  56. IFCONFIG = ifconfig/ifconfig.c ifconfig/Smake.def 
  57.  
  58. PING = ping/ping.c ping/Smake.def 
  59.  
  60. # not minimalistic
  61. INETD = inetd/inetd.c inetd/Smakefile inetd/inetd_rev.rev
  62.  
  63. LETNET = letnet/Smakefile letnet/letnet.h letnet/letnet.c letnet/sender.c 
  64.  
  65. NETSTAT = netstat/netstat.rexx
  66.  
  67. ONLINE = online/Smakefile online/online.c
  68.  
  69. ROUTE = route/Smakefile route/keywords.h route/route.c
  70.  
  71. UTILSRC = $(GENERIC) $(ARP) $(IFCONFIG) $(PING) \
  72.     $(ROUTE) $(ONLINE) $(NETSTAT) $(INETD) $(LETNET)
  73.  
  74. AUTODOCSRC = arp/arp.c ifconfig/ifconfig.c inetd/inetd.c \
  75.     letnet/letnet.c online/online.c ping/ping.c route/route.c 
  76.  
  77. AUTODOCER = /p/projects/ohtatcp/bin/autodoc
  78.  
  79. DIST: $(DIST_UTIL) # $(DIST_DOC)
  80.  
  81. $(DIST_UTIL): $(UTILSRC)
  82.     test -d $(DIST) || mkdir $(DIST) 
  83.     test -d $(DIST_UTIL) || mkdir $(DIST_UTIL)
  84.     tar cf - $(UTILSRC) | (cd $(DIST_UTIL); tar xf -)
  85.  
  86. RELEASE: $(UTILSRC)
  87.     for F in $(UTILSRC) ; do \
  88.       rlog -R $$F && { \
  89.         if ident -q $$F | egrep -v '\$$Log' | fgrep '$$' >/dev/null ; \
  90.           then rcs -q '-N$(RELEASE):$$' $$F ; \
  91.           else rcs -q '-N$(RELEASE):' $$F ;\
  92.         fi ; \
  93.           } ;\
  94.     done
  95.  
  96. $(DIST_DOC): $(AUTODOCSRC)
  97.     test -d $(DIST) || mkdir $(DIST) 
  98.     test -d $(DIST_DOC) || mkdir $(DIST_DOC)
  99.     $(AUTODOCER) $(AUTODOCSRC) > $(DIST_DOC)/netutil.doc
  100.  
  101. util.lha: $(UTILSRC)
  102.     rm -f ../$@
  103.     lha a ../$@ $(UTILSRC)
  104.