home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / NeXT / GnuSource / cc-61.0.1 / cc / make-cc1.com < prev    next >
Text File  |  1991-05-06  |  5KB  |  182 lines

  1. $! Set the def dir to proper place for use in batch. Works for interactive too.
  2. $flnm = f$enviroment("PROCEDURE")     ! get current procedure name
  3. $set default 'f$parse(flnm,,,"DEVICE")''f$parse(flnm,,,"DIRECTORY")'
  4. $!
  5. $!    Build the GNU "C" compiler on VMS
  6. $!   (To try to build with VAX C, replace `gcc' with `cc/noopt'
  7. $!    and delete `cc1_options="-mpcc-alignment"'.
  8. $!    Also add `/sel' after `gcclib/lib' except in the last link.
  9. $!    You also need to get alloca.mar from Bison
  10. $!    and to make definitions for bzero, bcopy and bcmp.)
  11. $!
  12. $ set verify
  13. $!
  14. $!    C compiler
  15. $!
  16. $ CC    :=    gcc
  17. $!
  18. $!    Compiler options
  19. $!
  20. $ CFLAGS =    "/debug/cc1_options=""-mpcc-alignment""/inc=([],[.config])"
  21. $!
  22. $!    Link options
  23. $!
  24. $ LDFLAGS :=    /nomap
  25. $!
  26. $!    Link libraries
  27. $!
  28. $ LIBS :=    gnu_cc:[000000]gcclib/libr,sys$share:vaxcrtl/libr
  29. $!
  30. $ if "''p1'" .eqs. "LINK" then goto Link
  31. $!
  32. $!    Recompile
  33. $!
  34. $ 'CC 'CFLAGS rtl.c
  35. $ 'CC 'CFLAGS obstack.c
  36. $!    Generate insn-flags.h
  37. $ 'CC 'CFLAGS genflags.c
  38. $ link 'LDFLAGS' genflags,rtl,obstack, 'LIBS'
  39. $ assign/user insn-flags.h sys$output:
  40. $ mcr sys$disk:[]genflags md
  41. $!    Generate insn-codes.h
  42. $ 'CC 'CFLAGS gencodes.c
  43. $ link 'LDFLAGS' gencodes,rtl,obstack, 'LIBS'
  44. $ assign/user insn-codes.h sys$output:
  45. $ mcr sys$disk:[]gencodes md
  46. $!    Generate insn-config.h
  47. $ 'CC 'CFLAGS genconfig.c
  48. $ link 'LDFLAGS' genconfig,rtl,obstack, 'LIBS'
  49. $ assign/user insn-config.h sys$output:
  50. $ mcr sys$disk:[]genconfig md
  51. $!    Generate insn-attr.h
  52. $ 'CC 'CFLAGS genattr.c
  53. $ link 'LDFLAGS' genattr,rtl,obstack, 'LIBS'
  54. $ assign/user insn-attr.h sys$output:
  55. $ mcr sys$disk:[]genattr md
  56. $!
  57. $!
  58. $!
  59. $! C language specific modules
  60. $!
  61. $ t1:='f$search("C-PARSE_TAB.C")'
  62. $ if "''t1'" .eqs. "" then goto 10$
  63. $ t1:='f$file_attributes("C-PARSE.Y","RDT")'
  64. $ t1:='f$cvtime(t1)'
  65. $ t2:='f$file_attributes("C-PARSE_TAB.C","RDT")'
  66. $ t2:='f$cvtime(t2)'
  67. $ if t1 .les. t2 then goto 20$
  68. $ 10$:
  69. $ bison /verbose c-parse.y
  70. $ 20$:
  71. $!
  72. $ 'CC 'CFLAGS c-parse_tab.c
  73. $ 'CC 'CFLAGS c-decl.c
  74. $ 'CC 'CFLAGS c-typeck.c
  75. $ 'CC 'CFLAGS c-convert.c
  76. $ 'CC 'CFLAGS c-aux-info.c
  77. $ 'CC 'CFLAGS c-common.c
  78. $ 'CC 'CFLAGS c-lang.c
  79. $!
  80. $! Language independent object files.
  81. $!
  82. $ 'CC 'CFLAGS toplev.c
  83. $ 'CC 'CFLAGS version.c
  84. $ 'CC 'CFLAGS tree.c
  85. $ 'CC 'CFLAGS print-tree.c
  86. $ 'CC 'CFLAGS stor-layout.c
  87. $ 'CC 'CFLAGS fold-const.c
  88. $ 'CC 'CFLAGS varasm.c
  89. $ 'CC 'CFLAGS expr.c
  90. $ 'CC 'CFLAGS stmt.c
  91. $ 'CC 'CFLAGS expmed.c
  92. $ 'CC 'CFLAGS explow.c
  93. $ 'CC 'CFLAGS optabs.c
  94. $ 'CC 'CFLAGS dbxout.c
  95. $ 'CC 'CFLAGS rtlanal.c
  96. $ 'CC 'CFLAGS emit-rtl.c
  97. $!    Generate insn-emit.c
  98. $ 'CC 'CFLAGS genemit.c
  99. $ link 'LDFLAGS' genemit,rtl,obstack, 'LIBS'
  100. $ assign/user insn-emit.c sys$output:
  101. $ mcr sys$disk:[]genemit md
  102. $!
  103. $ 'CC 'CFLAGS insn-emit.c
  104. $ 'CC 'CFLAGS jump.c
  105. $ 'CC 'CFLAGS cse.c
  106. $ 'CC 'CFLAGS loop.c
  107. $ 'CC 'CFLAGS flow.c
  108. $ 'CC 'CFLAGS stupid.c
  109. $ 'CC 'CFLAGS combine.c
  110. $ 'CC 'CFLAGS regclass.c
  111. $ 'CC 'CFLAGS local-alloc.c
  112. $ 'CC 'CFLAGS global-alloc.c
  113. $ 'CC 'CFLAGS reload.c
  114. $ 'CC 'CFLAGS reload1.c
  115. $!    Generate insn-peep.c
  116. $ 'CC 'CFLAGS genpeep.c
  117. $ link 'LDFLAGS' genpeep,rtl,obstack, 'LIBS'
  118. $ assign/user insn-peep.c sys$output:
  119. $ mcr sys$disk:[]genpeep md
  120. $!
  121. $ 'CC 'CFLAGS insn-peep.c
  122. $ 'CC 'CFLAGS final.c
  123. $ 'CC 'CFLAGS recog.c
  124. $!    Generate insn-recog.c
  125. $ 'CC 'CFLAGS genrecog.c
  126. $ link 'LDFLAGS' genrecog,rtl,obstack, 'LIBS'
  127. $ assign/user insn-recog.c sys$output:
  128. $ mcr sys$disk:[]genrecog md
  129. $!
  130. $ 'CC 'CFLAGS insn-recog.c
  131. $!    Generate insn-extract.c
  132. $ 'CC 'CFLAGS genextract.c
  133. $ link 'LDFLAGS' genextract,rtl,obstack, 'LIBS'
  134. $ assign/user insn-extract.c sys$output:
  135. $ mcr sys$disk:[]genextract md
  136. $!
  137. $ 'CC 'CFLAGS insn-extract.c
  138. $!    Generate insn-output.c
  139. $ 'CC 'CFLAGS genoutput.c
  140. $ link 'LDFLAGS' genoutput,rtl,obstack, 'LIBS'
  141. $ assign/user insn-output.c sys$output:
  142. $ mcr sys$disk:[]genoutput md
  143. $!
  144. $ 'CC 'CFLAGS insn-output.c
  145. $ 'CC 'CFLAGS aux-output.c
  146. $ 'CC 'CFLAGS integrate.c
  147. $ 'CC 'CFLAGS caller-save.c
  148. $ 'CC 'CFLAGS calls.c
  149. $ 'CC 'CFLAGS dwarfout.c
  150. $ 'CC 'CFLAGS function.c
  151. $ 'CC 'CFLAGS reorg.c
  152. $ 'CC 'CFLAGS sched.c
  153. $ 'CC 'CFLAGS sdbout.c
  154. $ 'CC 'CFLAGS unroll.c
  155. $!    Generate insn-attrtab.c
  156. $ 'CC 'CFLAGS genattrtab.c
  157. $ link 'LDFLAGS' genattrtab,rtl,rtlanal,obstack, 'LIBS'
  158. $ assign/user insn-attrtab.c sys$output:
  159. $ mcr sys$disk:[]genattr md
  160. $ 'CC 'CFLAGS insn-attrtab.c
  161. $!
  162. $!
  163. $!    Link it
  164. $!
  165. $ Link:
  166. $ link 'LDFLAGS' /exe=gcc-cc1 sys$input:/opt,'LIBS'
  167. !
  168. !    "CC1" Linker options file
  169. !
  170. toplev,c-parse_tab,tree,print-tree,c-decl,c-typeck,c-convert,stor-layout,fold-const,-
  171. varasm,rtl,rtlanal,expr,stmt,expmed,explow,optabs,dbxout,emit-rtl,insn-emit,-
  172. jump,cse,loop,flow,stupid,combine,regclass,local-alloc,global-alloc,reload,-
  173. reload1,insn-peep,final,recog,insn-recog,insn-extract,insn-output,obstack,-
  174. integrate,caller-save,c-aux-info,c-common,c-lang,calls,dwarfout,function,-
  175. insn-attrtab,reorg,sched,sdbout,unroll,aux-output,version
  176. $!
  177. $! CAUTION: If you want to link gcc-cc1 to the sharable image library
  178. $! VAXCRTL, see the notes in gcc.texinfo (or INSTALL) first.
  179. $!
  180. $!    Done
  181. $!
  182.