home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_100 / 186_01 / makefile < prev    next >
Makefile  |  1985-08-21  |  2KB  |  83 lines

  1. #
  2. # Sample makefile
  3. #
  4. # This file contains information for making MAKE.COM
  5. #
  6.  
  7.  
  8. #
  9. # Default disk macro:  Default = B:
  10. #
  11.  
  12. $:b
  13.  
  14. #
  15. # Default user macro:  Default = 0
  16. #
  17.  
  18. $/0
  19.  
  20.  
  21. #
  22. # "make.com" is the main target for this file, so it
  23. # is put first (allowing the simple command "MAKE" to
  24. # make this target by default).
  25. #
  26.  
  27. make.com:   make.crl makeio.crl
  28.             l2 b:make b:makeio
  29.  
  30. #
  31. # Here are the two entries for the two CRL objects:
  32. #
  33.  
  34. make.crl:   headers make.c
  35.             cc b:make -e3000 -x
  36.  
  37. makeio.crl: headers makeio.c
  38.             cc b:makeio -e3000 -x
  39.  
  40. #
  41. # Here is the "no-action" object "headers", which stands for
  42. # the two header files used in MAKE.COM.  Note that since
  43. # "bdscio.h" is on the A: drive, a drive spec is put on
  44. # the dependancy.
  45. #
  46.  
  47. headers:    make.h a:bdscio.h
  48.  
  49.  
  50. #
  51. # The target "dmake.com" is for compiling MAKE.COM with the
  52. # debug code.  To do this, the command is "MAKE DMAKE.COM"
  53. #
  54.  
  55. dmake.com:  dmake.crl dmakeio.crl mdebug.crl
  56.             l2 b:make b:makeio b:mdebug
  57.  
  58. #
  59. # The dependancies "make.crl" and "makeio.crl" have already been
  60. # defined as objects.  However, the commands there include the
  61. # -e options, which are not appropriate for compiling with
  62. # debug code.  Hence, we have to create new objects for these
  63. # files with the appropriate actions, along with an object
  64. # for the "mdebug.crl" file.
  65. #
  66.  
  67. dmake.crl:  headers make.c
  68.             cc b:make -x
  69.  
  70. dmakeio.crl: headers makeio.c
  71.              cc b:makeio -x
  72.  
  73. mdebug.crl: headers mdebug.c
  74.             cc b:mdebug.c -x
  75.  
  76. #
  77. # end of sample makefile
  78. #
  79.  
  80. 
  81. -80 system.
  82.  
  83.       MAKE is a utility