home *** CD-ROM | disk | FTP | other *** search
- $ ! Copyright (C) 1989, 1990 Aladdin Enterprises. All rights reserved.
- $ ! Distributed by Free Software Foundation, Inc.
- $ !
- $ ! This file is part of Ghostscript.
- $ !
- $ ! Ghostscript is distributed in the hope that it will be useful, but
- $ ! WITHOUT ANY WARRANTY. No author or distributor accepts responsibility
- $ ! to anyone for the consequences of using it or for whether it serves any
- $ ! particular purpose or works at all, unless he says so in writing. Refer
- $ ! to the Ghostscript General Public License for full details.
- $ !
- $ ! Everyone is granted permission to copy, modify and redistribute
- $ ! Ghostscript, but only under the conditions described in the Ghostscript
- $ ! General Public License. A copy of this license is supposed to have been
- $ ! given to you along with Ghostscript so you can know your rights and
- $ ! responsibilities. It should be in a file named COPYING. Among other
- $ ! things, the copyright notice and this notice must be preserved on all
- $ ! copies.
- $ !
- $ !
- $ ! "makefile" for Ghostscript, VMS / GNU C / DECwindows (X11) configuration.
- $ !
- $ !
- $ ! Execute this command file while in the GhostScript directory!
- $ !
- $ !
- $ ! To build a debugging configuration, issue the command:
- $ !
- $ ! $ @VMS-CC.MAK DEBUG
- $ !
- $ ! Do not abbreviate "DEBUG". To specify an alternate directory for
- $ ! GS_LIB_DEFAULT, issue the command:
- $ !
- $ ! $ @VMS-CC.MAK directory
- $ !
- $ ! with "directory" a fully qualified directory name. "directory" cannot
- $ ! be DEBUG (otherwise it will be confused with the DEBUG switch). Both
- $ ! the DEBUG switch and a directory name may be specified on the same
- $ ! command line and in either order.
- $ !
- $ !
- $ CDEF = ""
- $ LDEF = ""
- $ !
- $ GS_INIT = "GS_INIT.PS"
- $ GS_LIB_DEFAULT = F$ENVIRONMENT("DEFAULT")
- $ IF P1 .NES. "" .AND. P1 .NES. "DEBUG" THEN GS_LIB_DEFAULT = P1
- $ IF P2 .NES. "" .AND. P2 .NES. "DEBUG" THEN GS_LIB_DEFAULT = P2
- $ !
- $ IF P1 .NES. "DEBUG" .AND. P2 .NES. "DEBUG" THEN GOTO NODEBUG
- $ CDEF = "/DEFINE=(""DEBUG"")/NOOPTIMIZE/DEBUG"
- $ LDEF = "/DEBUG"
- $ !
- $ NODEBUG:
- $ !
- $ ! Is GNU C about and defined?
- $ !
- $ IF F$TRNLNM("GNU_CC") .NES. "" THEN GOTO GNU_CC_OKAY
- $ WRITE SYS$OUTPUT "GNU_CC logical is undefined. You must execute the command"
- $ WRITE SYS$OUTPUT "file GCC_INSTALL.COM in the GNU CC directory before using"
- $ WRITE SYS$OUTPUT "this command file."
- $ EXIT
- $ !
- $ !
- $ GNU_CC_OKAY:
- $ SET COMMAND GNU_CC:[000000]GCC.CLD
- $ !
- $ !
- $ ! Compile genarch.c and then run it to create the arch.h header file
- $ !
- $ GCC/NOLIST/OBJECT=GENARCH.OBJ GENARCH.C
- $ LINK/NOMAP/EXE=GENARCH.EXE GENARCH,GNU_CC:[000000]GCCLIB/LIB,SYS$INPUT/OPT
- SYS$SHARE:VAXCRTL/SHARE
- $ GENARCH = "$" + F$ENVIRONMENT("DEFAULT") + "GENARCH.EXE"
- $ GENARCH ARCH.H
- $ DELETE GENARCH.EXE.*,GENARCH.OBJ.*
- $ PURGE ARCH.H
- $ !
- $ !
- $ ! Create an empty object library
- $ !
- $ LIBRARY/CREATE GS.OLB
- $ !
- $ !
- $ ! Create a list of modules to compile and store in the object library
- $ !
- $ CREATE MODULES.LIS
- GDEVMEM
- GP_VMS
- GSCHAR
- GSCHAR0
- GSCOLOR
- GSCOORD
- GSDEVICE
- GSFILE
- GSFONT
- GSIM2OUT
- GSIMAGE
- GSLINE
- GSMATRIX
- GSMISC
- GSPAINT
- GSPATH
- GSPATH2
- GSSTATE
- GSTDEV
- GSTYPE1
- GXCACHE
- GXCOLOR
- GXDITHER
- GXDRAW
- GXFILL
- GXHT
- GXPATH
- GXPATH2
- GXSTROKE
- IALLOC
- IDEBUG
- IDICT
- IINIT
- INAME
- INTERP
- ISAVE
- ISCAN
- IUTIL
- STREAM
- ZARITH
- ZARRAY
- ZCHAR
- ZCOLOR
- ZCONTROL
- ZDEVICE
- ZDICT
- ZFILE
- ZFILEIO
- ZFONT
- ZFONT0
- ZFONT2
- ZGENERIC
- ZGSTATE
- ZHT
- ZMATH
- ZMATRIX
- ZMISC
- ZPACKED
- ZPAINT
- ZPATH
- ZPATH2
- ZRELBIT
- ZSTACK
- ZSTRING
- ZTYPE
- ZVMEM
- $ !
- $ !
- $ ! NOW COMPILE AWAY!
- $ !
- $ OPEN/READ MODULE_LIST MODULES.LIS
- $ !
- $ COMPILE_LOOP:
- $ READ/END=END_COMPILE MODULE_LIST MODULE
- $ GCC'CDEF/NOLIST/OBJECT='MODULE'.OBJ 'MODULE'.C
- $ LIBRARY/INSERT GS.OLB 'MODULE'.OBJ
- $ DELETE 'MODULE'.OBJ.*
- $ GOTO COMPILE_LOOP
- $ !
- $ END_COMPILE:
- $ DELETE MODULES.LIS.*
- $ !
- $ !
- $ ! Is the DECwindows environment about? Must be installed in order to
- $ ! build the executable programs gs.exe, gt.exe, and xlib.exe.
- $ !
- $ IF F$SEARCH("SYS$SHARE:DECW$XLIBSHR.EXE") .NES. "" THEN GOTO CHECK2
- $ WRITE SYS$OUTPUT "DECwindows user environment not installed;"
- $ WRITE SYS$OUTPUT "unable to build executable programs."
- $ GOTO DONE
- $ !
- $ CHECK2:
- $ IF F$TRNLNM("DECW$INCLUDE") .NES. "" THEN GOTO BUILD_EXES
- $ WRITE SYS$OUTPUT "You must invoke @DECW$STARTUP before using this"
- $ WRITE SYS$OUTPUT "command procedure to build the executable programs."
- $ GOTO DONE
- $ !
- $ !
- $ BUILD_EXES:
- $ !
- $ CREATE GCONFIG.H
- d(gs_x11_device)
- $ !
- $ LIBDEF = """GS_LIB_DEFAULT=""""" + ''GS_LIB_DEFAULT' + """"""""
- $ INIDEF = """GS_INIT=""""" + ''GS_INIT' + """"""""
- $ GCC'CDEF/NOLIST/DEFINE=('LIBDEF','INIDEF')/OBJECT=GCONFIG.OBJ GCONFIG.C
- $ GCC'CDEF/NOLIST/INCLUDE_DIRECTORY='F$TRNLNM("SYS$COMMON")/OBJECT=GDEVX.OBJ -
- GDEVX.C
- $ GCC'CDEF/NOLIST/OBJECT=GSMAIN.OBJ GSMAIN.C
- $ GCC'CDEF/NOLIST/OBJECT=UTRACE.OBJ UTRACE.C
- $ !
- $ GCC'CDEF/NOLIST/OBJECT=GS.OBJ GS.C
- $ LINK'LDEF/NOMAP/EXE=GS.EXE GS,GSMAIN,UTRACE,GDEVX,GCONFIG,-
- GS/LIB/INCLUDE=(GDEVMEM,ZARITH,ZARRAY,ZCHAR,ZCOLOR,ZCONTROL,ZDEVICE,-
- ZDICT,ZFILE,ZFILEIO,ZFONT,ZFONT0,ZFONT2,ZGENERIC,ZGSTATE,ZHT,ZMATH,-
- ZMATRIX,ZMISC,ZPACKED,ZPAINT,ZPATH,ZPATH2,ZRELBIT,ZSTACK,ZSTRING,-
- ZTYPE,ZVMEM),GNU_CC:[000000]GCCLIB/LIB,SYS$INPUT/OPT
- SYS$SHARE:DECW$XLIBSHR/SHARE
- $ !
- $ DELETE GDEVX.OBJ.*,GSMAIN.OBJ.*,UTRACE.OBJ.*,GT.OBJ.*,GS.OBJ.*,GCONFIG.OBJ.*
- $ !
- $ DONE:
- $ ! ALL DONE
-