home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / printing / ghostscrip / source / specific / mak / vms_gcc < prev   
Encoding:
Text File  |  1991-10-26  |  5.1 KB  |  211 lines

  1. $ !    Copyright (C) 1989, 1990 Aladdin Enterprises.  All rights reserved.
  2. $ !    Distributed by Free Software Foundation, Inc.
  3. $ !
  4. $ ! This file is part of Ghostscript.
  5. $ !
  6. $ ! Ghostscript is distributed in the hope that it will be useful, but
  7. $ ! WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. $ ! to anyone for the consequences of using it or for whether it serves any
  9. $ ! particular purpose or works at all, unless he says so in writing.  Refer
  10. $ ! to the Ghostscript General Public License for full details.
  11. $ !
  12. $ ! Everyone is granted permission to copy, modify and redistribute
  13. $ ! Ghostscript, but only under the conditions described in the Ghostscript
  14. $ ! General Public License.  A copy of this license is supposed to have been
  15. $ ! given to you along with Ghostscript so you can know your rights and
  16. $ ! responsibilities.  It should be in a file named COPYING.  Among other
  17. $ ! things, the copyright notice and this notice must be preserved on all
  18. $ ! copies.
  19. $ !
  20. $ !
  21. $ ! "makefile" for Ghostscript, VMS / GNU C / DECwindows (X11) configuration.
  22. $ !
  23. $ !
  24. $ ! Execute this command file while in the GhostScript directory!
  25. $ !
  26. $ !
  27. $ ! To build a debugging configuration, issue the command:
  28. $ !
  29. $ !          $ @VMS-CC.MAK DEBUG
  30. $ !
  31. $ ! Do not  abbreviate "DEBUG".  To specify an alternate directory for
  32. $ ! GS_LIB_DEFAULT, issue the command:
  33. $ !
  34. $ !          $ @VMS-CC.MAK directory
  35. $ !
  36. $ ! with "directory" a fully qualified directory name.  "directory" cannot
  37. $ ! be DEBUG (otherwise it will be confused with the DEBUG switch).  Both
  38. $ ! the DEBUG switch and a directory name may be specified on the same
  39. $ ! command line and in either order.
  40. $ !
  41. $ !
  42. $ CDEF = ""
  43. $ LDEF = ""
  44. $ !
  45. $ GS_INIT = "GS_INIT.PS"
  46. $ GS_LIB_DEFAULT = F$ENVIRONMENT("DEFAULT")
  47. $ IF P1 .NES. "" .AND. P1 .NES. "DEBUG" THEN GS_LIB_DEFAULT = P1
  48. $ IF P2 .NES. "" .AND. P2 .NES. "DEBUG" THEN GS_LIB_DEFAULT = P2
  49. $ !
  50. $ IF P1 .NES. "DEBUG" .AND. P2 .NES. "DEBUG" THEN GOTO NODEBUG
  51. $ CDEF = "/DEFINE=(""DEBUG"")/NOOPTIMIZE/DEBUG"
  52. $ LDEF = "/DEBUG"
  53. $ !
  54. $ NODEBUG:
  55. $ !
  56. $ ! Is GNU C about and defined?
  57. $ !
  58. $ IF F$TRNLNM("GNU_CC") .NES. "" THEN GOTO GNU_CC_OKAY
  59. $ WRITE SYS$OUTPUT "GNU_CC logical is undefined.  You must execute the command"
  60. $ WRITE SYS$OUTPUT "file GCC_INSTALL.COM in the GNU CC directory before using"
  61. $ WRITE SYS$OUTPUT "this command file."
  62. $ EXIT
  63. $ !
  64. $ !
  65. $ GNU_CC_OKAY:
  66. $ SET COMMAND GNU_CC:[000000]GCC.CLD
  67. $ !
  68. $ !
  69. $ ! Compile genarch.c and then run it to create the arch.h header file
  70. $ !
  71. $ GCC/NOLIST/OBJECT=GENARCH.OBJ GENARCH.C
  72. $ LINK/NOMAP/EXE=GENARCH.EXE GENARCH,GNU_CC:[000000]GCCLIB/LIB,SYS$INPUT/OPT
  73. SYS$SHARE:VAXCRTL/SHARE
  74. $ GENARCH = "$" + F$ENVIRONMENT("DEFAULT") + "GENARCH.EXE"
  75. $ GENARCH ARCH.H
  76. $ DELETE GENARCH.EXE.*,GENARCH.OBJ.*
  77. $ PURGE ARCH.H
  78. $ !
  79. $ !
  80. $ ! Create an empty object library
  81. $ !
  82. $ LIBRARY/CREATE GS.OLB
  83. $ !
  84. $ !
  85. $ ! Create a list of modules to compile and store in the object library
  86. $ !
  87. $ CREATE MODULES.LIS
  88. GDEVMEM
  89. GP_VMS
  90. GSCHAR
  91. GSCHAR0
  92. GSCOLOR
  93. GSCOORD
  94. GSDEVICE
  95. GSFILE
  96. GSFONT
  97. GSIM2OUT
  98. GSIMAGE
  99. GSLINE
  100. GSMATRIX
  101. GSMISC
  102. GSPAINT
  103. GSPATH
  104. GSPATH2
  105. GSSTATE
  106. GSTDEV
  107. GSTYPE1
  108. GXCACHE
  109. GXCOLOR
  110. GXDITHER
  111. GXDRAW
  112. GXFILL
  113. GXHT
  114. GXPATH
  115. GXPATH2
  116. GXSTROKE
  117. IALLOC
  118. IDEBUG
  119. IDICT
  120. IINIT
  121. INAME
  122. INTERP
  123. ISAVE
  124. ISCAN
  125. IUTIL
  126. STREAM
  127. ZARITH
  128. ZARRAY
  129. ZCHAR
  130. ZCOLOR
  131. ZCONTROL
  132. ZDEVICE
  133. ZDICT
  134. ZFILE
  135. ZFILEIO
  136. ZFONT
  137. ZFONT0
  138. ZFONT2
  139. ZGENERIC
  140. ZGSTATE
  141. ZHT
  142. ZMATH
  143. ZMATRIX
  144. ZMISC
  145. ZPACKED
  146. ZPAINT
  147. ZPATH
  148. ZPATH2
  149. ZRELBIT
  150. ZSTACK
  151. ZSTRING
  152. ZTYPE
  153. ZVMEM
  154. $ !
  155. $ !
  156. $ ! NOW COMPILE AWAY!
  157. $ !
  158. $ OPEN/READ MODULE_LIST MODULES.LIS
  159. $ !
  160. $ COMPILE_LOOP:
  161. $ READ/END=END_COMPILE MODULE_LIST MODULE
  162. $ GCC'CDEF/NOLIST/OBJECT='MODULE'.OBJ 'MODULE'.C
  163. $ LIBRARY/INSERT GS.OLB 'MODULE'.OBJ
  164. $ DELETE 'MODULE'.OBJ.*
  165. $ GOTO COMPILE_LOOP
  166. $ !
  167. $ END_COMPILE:
  168. $ DELETE MODULES.LIS.*
  169. $ !
  170. $ !
  171. $ ! Is the DECwindows environment about?  Must be installed in order to
  172. $ ! build the executable programs gs.exe, gt.exe, and xlib.exe.
  173. $ !
  174. $ IF F$SEARCH("SYS$SHARE:DECW$XLIBSHR.EXE") .NES. "" THEN GOTO CHECK2
  175. $ WRITE SYS$OUTPUT "DECwindows user environment not installed;"
  176. $ WRITE SYS$OUTPUT "unable to build executable programs."
  177. $ GOTO DONE
  178. $ !
  179. $ CHECK2:
  180. $ IF F$TRNLNM("DECW$INCLUDE") .NES. "" THEN GOTO BUILD_EXES
  181. $ WRITE SYS$OUTPUT "You must invoke @DECW$STARTUP before using this"
  182. $ WRITE SYS$OUTPUT "command procedure to build the executable programs."
  183. $ GOTO DONE
  184. $ !
  185. $ !
  186. $ BUILD_EXES:
  187. $ !
  188. $ CREATE GCONFIG.H
  189. d(gs_x11_device)
  190. $ !
  191. $ LIBDEF = """GS_LIB_DEFAULT=""""" + ''GS_LIB_DEFAULT' + """"""""
  192. $ INIDEF = """GS_INIT=""""" + ''GS_INIT' + """"""""
  193. $ GCC'CDEF/NOLIST/DEFINE=('LIBDEF','INIDEF')/OBJECT=GCONFIG.OBJ GCONFIG.C
  194. $ GCC'CDEF/NOLIST/INCLUDE_DIRECTORY='F$TRNLNM("SYS$COMMON")/OBJECT=GDEVX.OBJ -
  195.   GDEVX.C
  196. $ GCC'CDEF/NOLIST/OBJECT=GSMAIN.OBJ GSMAIN.C
  197. $ GCC'CDEF/NOLIST/OBJECT=UTRACE.OBJ UTRACE.C
  198. $ !
  199. $ GCC'CDEF/NOLIST/OBJECT=GS.OBJ GS.C
  200. $ LINK'LDEF/NOMAP/EXE=GS.EXE GS,GSMAIN,UTRACE,GDEVX,GCONFIG,-
  201.   GS/LIB/INCLUDE=(GDEVMEM,ZARITH,ZARRAY,ZCHAR,ZCOLOR,ZCONTROL,ZDEVICE,-
  202.   ZDICT,ZFILE,ZFILEIO,ZFONT,ZFONT0,ZFONT2,ZGENERIC,ZGSTATE,ZHT,ZMATH,-
  203.   ZMATRIX,ZMISC,ZPACKED,ZPAINT,ZPATH,ZPATH2,ZRELBIT,ZSTACK,ZSTRING,-
  204.   ZTYPE,ZVMEM),GNU_CC:[000000]GCCLIB/LIB,SYS$INPUT/OPT
  205. SYS$SHARE:DECW$XLIBSHR/SHARE
  206. $ !
  207. $ DELETE GDEVX.OBJ.*,GSMAIN.OBJ.*,UTRACE.OBJ.*,GT.OBJ.*,GS.OBJ.*,GCONFIG.OBJ.*
  208. $ !
  209. $ DONE:
  210. $ ! ALL DONE
  211.