home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / PAMAKE18.ZIP / MAKEFILE.VMS < prev    next >
Text File  |  1989-10-04  |  2KB  |  76 lines

  1. #   PAMAKE makefile by Roundhill Computer Systems Limited   March 1989
  2. #
  3. #   This PAMAKE makefile builds the PAMAKE program for VMS, which is
  4. #   named PAMAKE.EXE.  It also builds a debug version called PAMAKED.EXE.
  5. #   The debug verion uses a different technique to invoke LINK, simply
  6. #   as an illustration.
  7. #
  8. #   Of course, you will need one of these programs to run this makefile
  9. #   to build them.  This phenomenon is known as `self-reference'.
  10. #
  11. #   For information on the PAMAKE make utility, see PAMAKE.DOC
  12. #
  13. #   This makefile is invoked from the directory which contains the C 
  14. #   and H files for PAMAKE.
  15. #
  16. #   --------------------------------------------------------------------
  17.  
  18. target: pamake.exe pamaked.exe
  19.     @write SYS$$OUTPUT "make complete - target is up-to-date"
  20.  
  21. #   --------------------------------------------------------------------
  22. #
  23. #   PAMAKE has a built-in command of $(CC) $(CFLAGS) $(CFILES) for C 
  24. #   compilations.  Here we set these macros for the VAX C compiler.
  25. #
  26. #   --------------------------------------------------------------------
  27.  
  28. CC=cc
  29. CFLAGS=/DEBUG
  30. CFILES=$<
  31.  
  32. .SUFFIXES:                              # clear suffixes list
  33. .SUFFIXES: .c                           # not .asm and .pnl as built-in
  34.  
  35. #   --------------------------------------------------------------------
  36. #
  37. #   Here are the programs to build
  38. #
  39. #   --------------------------------------------------------------------
  40.  
  41. OBJS=  main.obj check.obj input.obj macro.obj \
  42.        make.obj reader.obj rules.obj ifproc.obj mtime.obj
  43.  
  44. pamake.exe: $(OBJS) 
  45.     link/exe=$@ $-/opt
  46. main,macro,make,reader,rules,input,ifproc,check,mtime,sys$$share:vaxcrtl.exe/share
  47. <
  48.  
  49. pamaked.exe: $(OBJS)
  50.     \@$-
  51. $$link/debug/exe=$@ -
  52. main,macro,make,reader,rules,input,ifproc,check,mtime
  53. <
  54.  
  55. #   --------------------------------------------------------------------
  56. #
  57. #   Note the "\@" in the command above.  It is necessary to escape the
  58. #   "@", which would otherwise be taken as a special command prefix.
  59. #
  60. #   --------------------------------------------------------------------
  61.  
  62. #   --------------------------------------------------------------------
  63. #
  64. #   Commands to build objects.
  65. #
  66. #   --------------------------------------------------------------------
  67.  
  68. $(OBJS): h.h
  69.  
  70. #   --------------------------------------------------------------------
  71. #
  72. #   end of makefile
  73. #
  74. #   --------------------------------------------------------------------
  75.  
  76.