home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / zip / gnu / gawk213s.lzh / GAWK213S / VMSBUILD.COM < prev    next >
Text File  |  1993-07-29  |  2KB  |  71 lines

  1. $! vmsbuild.com -- Commands to build GAWK        Pat Rankin, Dec'89
  2. $!                               revised, Mar'90
  3. $!                        gawk 2.13  revised, Jun'91
  4. $!
  5. $ REL = "2.13"    !release version number
  6. $ PATCHLVL = "2"
  7. $!
  8. $!    [ remove "/optimize=noinline" for VAX C V2.x ]
  9. $ if f$type(cc)  .nes."STRING" then  cc   := cc/nolist/optimize=noinline
  10. $ if f$type(link).nes."STRING" then  link := link/nomap
  11. $!
  12. $ cc := 'cc'/include=[]
  13. $ libs = "sys$share:vaxcrtl.exe/Shareable"
  14. $
  15. $! uncomment the next two lines for VAX C V2.x
  16. $ ! define vaxc$library sys$library:,sys$disk:[.vms]
  17. $ ! define c$library [],[.vms]
  18. $!
  19. $! uncomment next two lines for GNU C
  20. $ ! cc := gcc/include=([],[.vms])    !use GNU C rather than VAX C
  21. $ ! libs = "gnu_cc:[000000]gcclib.olb/Library,sys$library:vaxcrtl.olb/Library"
  22. $!
  23. $ if f$search("config.h") .eqs."" then  copy [.config]vms-conf.h []config.h
  24. $ if f$search("awk_tab.c").nes."" then  goto awk_tab_ok
  25. $    write sys$output " You must process `awk.y' with ""yacc"" or ""bison"""
  26. $    if f$search("awk.tab_c").nes."" then -    !unpacked with poor 'tar' reader
  27.         write sys$output " or else rename `awk.tab_c' to `awk_tab.c'."
  28. $    if f$search("y_tab.c").nes."" then -    !yacc was run manually
  29.         write sys$output " or else rename `y_tab.c' to `awk_tab.c'."
  30. $    exit
  31. $awk_tab_ok:
  32. $ cc main.c
  33. $ cc eval.c
  34. $ cc builtin.c
  35. $ cc msg.c
  36. $ cc iop.c
  37. $ cc io.c
  38. $ cc field.c
  39. $ cc array.c
  40. $ cc node.c
  41. $ cc version.c
  42. $ cc missing.c
  43. $ cc awk_tab.c
  44. $ cc regex.c
  45. $ cc re.c
  46. $ cc dfa.c
  47. $ cc/define=("STACK_DIRECTION=(-1)","exit=vms_exit") alloca
  48. $ cc [.vms]vms_misc.c
  49. $ cc [.vms]vms_popen.c
  50. $ cc [.vms]vms_fwrite.c
  51. $ cc [.vms]vms_args.c
  52. $ cc [.vms]vms_gawk.c
  53. $ cc [.vms]vms_cli.c
  54. $ set command/object=[]gawk_cmd.obj [.vms]gawk.cld
  55. $!
  56. $ create gawk.opt
  57. ! GAWK -- Gnu AWK
  58. main.obj,eval.obj,builtin.obj,msg.obj,iop.obj,io.obj
  59. field.obj,array.obj,node.obj,version.obj,missing.obj,awk_tab.obj
  60. regex.obj,re.obj,dfa.obj,[]alloca.obj
  61. []vms_misc.obj,vms_popen.obj,vms_fwrite.obj
  62. []vms_args.obj,vms_gawk.obj,vms_cli.obj,gawk_cmd.obj
  63. psect_attr=environ,noshr    !extern [noshare] char **
  64. stack=50    !preallocate more pages (default is 20)
  65. $ open/append Fopt gawk.opt
  66. $ write Fopt libs
  67. $ write Fopt "identification=""V''REL'.''PATCHLVL'"""
  68. $ close Fopt
  69. $!
  70. $ link/exe=gawk.exe gawk.opt/options
  71.