Commit | Line | Data |
---|---|---|
1ed5b2ee WJ |
1 | $ ! Copyright (C) 1989, 1992 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 a minimal gconfig.h | |
81 | $ ! | |
82 | $ CREATE GCONFIG.H | |
83 | device_(gs_x11_device) | |
84 | $ ! | |
85 | $ ! | |
86 | $ ! Create an empty object library | |
87 | $ ! | |
88 | $ LIBRARY/CREATE GS.OLB | |
89 | $ ! | |
90 | $ ! | |
91 | $ ! Create a list of modules to compile and store in the object library | |
92 | $ ! | |
93 | $ CREATE MODULES.LIS | |
94 | GDEVMEM1 | |
95 | GDEVMEM2 | |
96 | GDEVMEM3 | |
97 | GP_VMS | |
98 | GSCHAR | |
99 | GSCHAR0 | |
100 | GSCOLOR | |
101 | GSCOORD | |
102 | GSDEVICE | |
103 | GSDPS1 | |
104 | GSFILE | |
105 | GSFONT | |
106 | GSIM2OUT | |
107 | GSIMAGE | |
108 | GSLINE | |
109 | GSMATRIX | |
110 | GSMISC | |
111 | GSPAINT | |
112 | GSPATH | |
113 | GSPATH2 | |
114 | GSSTATE | |
115 | GSTDEV | |
116 | GSTYPE1 | |
117 | GSUTIL | |
118 | GXCACHE | |
119 | GXCLIST | |
120 | GXCOLOR | |
121 | GXCPATH | |
122 | GXDITHER | |
123 | GXDRAW | |
124 | GXFILL | |
125 | GXHT | |
126 | GXPATH | |
127 | GXPATH2 | |
128 | GXSTROKE | |
129 | IALLOC | |
130 | IBNUM | |
131 | IBSCAN | |
132 | ICCFONT | |
133 | IDEBUG | |
134 | IDICT | |
135 | IINIT | |
136 | INAME | |
137 | INTERP | |
138 | ISAVE | |
139 | ISCAN | |
140 | IUTIL | |
141 | SFILTER | |
142 | SFILTER2 | |
143 | STREAM | |
144 | ZARITH | |
145 | ZARRAY | |
146 | ZBSEQ | |
147 | ZCHAR | |
148 | ZCOLOR | |
149 | ZCONTROL | |
150 | ZDEVICE | |
151 | ZDICT | |
152 | ZDPS1 | |
153 | ZFILE | |
154 | ZFILEIO | |
155 | ZFILTER | |
156 | ZFILTER2 | |
157 | ZFONT | |
158 | ZFONT0 | |
159 | ZFONT1 | |
160 | ZFONT2 | |
161 | ZGENERIC | |
162 | ZGSTATE | |
163 | ZHT | |
164 | ZMATH | |
165 | ZMATRIX | |
166 | ZMISC | |
167 | ZPACKED | |
168 | ZPAINT | |
169 | ZPATH | |
170 | ZPATH2 | |
171 | ZPROPS | |
172 | ZRELBIT | |
173 | ZSTACK | |
174 | ZSTRING | |
175 | ZTYPE | |
176 | ZUPATH | |
177 | ZVMEM | |
178 | $ ! | |
179 | $ ! | |
180 | $ ! NOW COMPILE AWAY! | |
181 | $ ! | |
182 | $ OPEN/READ MODULE_LIST MODULES.LIS | |
183 | $ ! | |
184 | $ COMPILE_LOOP: | |
185 | $ READ/END=END_COMPILE MODULE_LIST MODULE | |
186 | $ GCC'CDEF/NOLIST/OBJECT='MODULE'.OBJ 'MODULE'.C | |
187 | $ LIBRARY/INSERT GS.OLB 'MODULE'.OBJ | |
188 | $ DELETE 'MODULE'.OBJ.* | |
189 | $ GOTO COMPILE_LOOP | |
190 | $ ! | |
191 | $ END_COMPILE: | |
192 | $ CLOSE MODULE_LIST | |
193 | $ DELETE MODULES.LIS.* | |
194 | $ ! | |
195 | $ ! | |
196 | $ ! Is the DECwindows environment about? Must be installed in order to | |
197 | $ ! build the executable programs gs.exe, gt.exe, and xlib.exe. | |
198 | $ ! | |
199 | $ IF F$SEARCH("SYS$SHARE:DECW$XLIBSHR.EXE") .NES. "" THEN GOTO CHECK2 | |
200 | $ WRITE SYS$OUTPUT "DECwindows user environment not installed;" | |
201 | $ WRITE SYS$OUTPUT "unable to build executable programs." | |
202 | $ GOTO DONE | |
203 | $ ! | |
204 | $ CHECK2: | |
205 | $ IF F$TRNLNM("DECW$INCLUDE") .NES. "" THEN GOTO BUILD_EXES | |
206 | $ WRITE SYS$OUTPUT "You must invoke @DECW$STARTUP before using this" | |
207 | $ WRITE SYS$OUTPUT "command procedure to build the executable programs." | |
208 | $ GOTO DONE | |
209 | $ ! | |
210 | $ ! | |
211 | $ BUILD_EXES: | |
212 | $ ! | |
213 | $ LIBDEF = """GS_LIB_DEFAULT=""""" + ''GS_LIB_DEFAULT' + """""""" | |
214 | $ INIDEF = """GS_INIT=""""" + ''GS_INIT' + """""""" | |
215 | $ GCC'CDEF/NOLIST/DEFINE=('LIBDEF','INIDEF')/OBJECT=GCONFIG.OBJ GCONFIG.C | |
216 | $ GCC'CDEF/NOLIST/INCLUDE_DIRECTORY='F$TRNLNM("SYS$COMMON") - | |
217 | /OBJECT=GDEVXINI.OBJ GDEVXINI.C | |
218 | $ GCC'CDEF/NOLIST/INCLUDE_DIRECTORY='F$TRNLNM("SYS$COMMON")/OBJECT=GDEVX.OBJ - | |
219 | GDEVX.C | |
220 | $ GCC'CDEF/NOLIST/OBJECT=GSMAIN.OBJ GSMAIN.C | |
221 | $ GCC'CDEF/NOLIST/OBJECT=UTRACE.OBJ UTRACE.C | |
222 | $ ! | |
223 | $ GCC'CDEF/NOLIST/OBJECT=GS.OBJ GS.C | |
224 | $ LINK'LDEF/NOMAP/EXE=GS.EXE GS,GSMAIN,UTRACE,GDEVX,GCONFIG,- | |
225 | GS/LIB/INCLUDE=(GDEVMEM1,GDEVMEM2,GDEVMEM3,GXCLIST,- | |
226 | ZARITH,ZARRAY,ZBSEQ,ZCHAR,ZCOLOR,ZCONTROL,ZDEVICE,ZDPS1,- | |
227 | ZDICT,ZFILE,ZFILEIO,ZFILTER,ZFILTER2,ZFONT,ZFONT0,ZFONT1,ZFONT2,- | |
228 | ZGENERIC,ZGSTATE,ZHT,ZMATH,ZMATRIX,ZMISC,ZPACKED,ZPAINT,ZPATH,ZPATH2,- | |
229 | ZPROPS,ZRELBIT,ZSTACK,ZSTRING,ZTYPE,ZUPATH,ZVMEM),SYS$INPUT/OPT | |
230 | SYS$SHARE:DECW$DWTLIBSHR/SHARE | |
231 | $ ! | |
232 | $ DELETE GDEVX.OBJ.*,GDEVXINI.OBJ.*,GSMAIN.OBJ.*,UTRACE.OBJ.*,GS.OBJ.*,- | |
233 | GCONFIG.OBJ.* | |
234 | $ ! | |
235 | $ DONE: | |
236 | $ ! ALL DONE |