home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / useful / comm / tcp / amitcp / src / devtools / smakefile
Makefile  |  1994-03-10  |  3KB  |  110 lines

  1. # $Id: Smakefile,v 1.3 1994/03/10 17:40:49 jraja Exp $
  2. #
  3. # Smakefile for AmiTCP/IP development tools
  4. #
  5. # Copyright © 1993 AmiTCP/IP Group, <amitcp-group@hut.fi>
  6. #               Helsinki University of Technology, Finland.
  7. #                  All rights reserved.
  8. #
  9. # Created      : Fri Feb 25 21:59:47 1994 ppessi
  10. # Last modified: Wed Mar  9 10:06:29 1994 jraja
  11. #
  12. # $Log: Smakefile,v $
  13. # Revision 1.3  1994/03/10  17:40:49  jraja
  14. # Changed rcsrev to be compiled with its own Smakefile, and made its
  15. # compilation to be done first, since other makes depend on it.
  16. #
  17. # Revision 1.2  1994/03/09  08:10:02  jraja
  18. # Added cpp and rpcgen
  19. #
  20. # Revision 1.1  1994/03/07  23:01:00  ppessi
  21. # Initial revision
  22. #
  23. #
  24.  
  25. DEST = AmiTCP:
  26.  
  27. #
  28. # These will be made & moved to the bin directory
  29. # rcsrev is made first
  30. #
  31. CPROGS= rcsrev/rcsrev cpp/cpp rpcgen/rpcgen
  32.     
  33. PROGS= $(CPROGS) 
  34.  
  35. SRC_CPP= cpp/Smake.def cpp/cpp.c cpp/cpp.h cpp/cpp1.c cpp/cpp2.c cpp/cpp3.c \
  36.     cpp/cpp4.c cpp/cpp5.c cpp/cpp6.c cpp/cppdef.h cpp/protos.h cpp/test.c \
  37.     cpp/org/contents cpp/org/cpp.mem cpp/org/cpp.rno cpp/org/make.boot \
  38.     cpp/org/makefile.txt cpp/org/readme cpp/org/readme.txt
  39.  
  40. SRC_RCSREV= rcsrev/Smakefile rcsrev/rcsrev.c
  41.  
  42. SRC_RPCGEN= rpcgen/ChangeLog rpcgen/Smake.def rpcgen/protos.h \
  43.     rpcgen/rpc_clntout.c rpcgen/rpc_cout.c rpcgen/rpc_hout.c \
  44.     rpcgen/rpc_main.c rpcgen/rpc_parse.c rpcgen/rpc_parse.h \
  45.     rpcgen/rpc_sample.c rpcgen/rpc_scan.c rpcgen/rpc_scan.h \
  46.     rpcgen/rpc_svcout.c rpcgen/rpc_tblout.c rpcgen/rpc_util.c \
  47.     rpcgen/rpc_util.h rpcgen/rpcgen.c rpcgen/todo \
  48.     rpcgen/amiga/popen.c rpcgen/amiga/popen.h
  49.  
  50. SRCS= $(SRC_CPP) $(SRC_RCSREV) $(SRC_RPCGEN)
  51.  
  52. DOCSRC= cpp/cpp.c rcsrev/rcsrev.c rpcgen/rpcgen.c
  53.  
  54. DOCS= devtools.doc
  55.  
  56. MAKELINK = makelink
  57. MKDIR = makedir
  58. MAKE = smake
  59. RM   = delete
  60. CP = copy dates
  61. AUTODOC= autodoc -C -I -c -t8
  62.  
  63. all: Smake-in-dir $(PROGS)
  64.  
  65. install: Smake-in-dir $(PROGS) $(DOCS) $(DEST)bin $(DEST)doc
  66.     $(CP) $(PROGS) to $(DEST)bin
  67.     $(CP) $(DOCS) to $(DEST)doc
  68.  
  69. $(DOCS): $(DOCSRC)
  70.     $(AUTODOC) $(DOCSRC) >$@
  71. $(DEST)bin:
  72.     $(MKDIR) $(DEST)bin
  73. $(DEST)doc:
  74.     $(MKDIR) $(DEST)doc
  75.  
  76. Smake-in-dir: Smakefile
  77.     copy to $@ <from < 
  78. .key WHAT/A,DEST/K,INSTALL/S,TARGET/K/F
  79. .bra {
  80. .ket }
  81. echo SMaking {WHAT}
  82. cd {WHAT}
  83. smake -k -f netinclude:Smake.template DEST={DEST} {TARGET}  {INSTALL}
  84. cd /
  85. <
  86.     protect $@ +es
  87.  
  88. cpp/cpp: $(SRC_CPP) 
  89.     Smake-in-dir cpp
  90.  
  91. rcsrev/rcsrev: $(SRC_RCSREV) # this has own makefile
  92.     execute < <
  93.     echo making rcsrev
  94.     cd rcsrev
  95.     $(MAKE) -k  DEST=$(DEST)
  96.     cd /
  97. <
  98. #    Smake-in-dir rcsrev
  99.  
  100. rpcgen/rpcgen: $(SRC_RPCGEN) 
  101.     Smake-in-dir rpcgen
  102.  
  103. clean:
  104.     Smake-in-dir cpp TARGET CLEAN
  105.     Smake-in-dir rcsrev TARGET CLEAN
  106.     Smake-in-dir rpcgen TARGET CLEAN
  107.  
  108. cleaner: clean
  109.     -$(RM) $(CPROGS) Smake-in-dir
  110.