~ubuntu-branches/ubuntu/jaunty/ghostscript/jaunty-updates

« back to all changes in this revision

Viewing changes to base/openvms.mak

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2009-01-20 16:40:45 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090120164045-lnfhi0n30o5lwhwa
Tags: 8.64.dfsg.1~svn9377-0ubuntu1
* New upstream release (SVN rev 9377)
   o Fixes many bugs concerning PDF rendering, to make the PDF printing
     workflow correctly working.
   o Fixes long-standing bugs in many drivers, like input paper tray and
     duplex options not working for the built-in PCL 4, 5, 5c, 5e, and
     6/XL drivers, PDF input not working for bjc600, bjc800, and cups
     output devices, several options not working and uninitialized
     memory with cups output device.
   o Merged nearly all patches of the Ubuntu and Debian packages upstream.
   o Fixes LP: #317810, LP: #314439, LP: #314018.
* debian/patches/03_libpaper_support.dpatch,
  debian/patches/11_gs-cjk_font_glyph_handling_fix.dpatch,
  debian/patches/12_gs-cjk_vertical_writing_metrics_fix.dpatch,
  debian/patches/13_gs-cjk_cjkps_examples.dpatch,
  debian/patches/20_bbox_segv_fix.dpatch,
  debian/patches/21_brother_7x0_gdi_fix.dpatch,
  debian/patches/22_epsn_margin_workaround.dpatch,
  debian/patches/24_gs_man_fix.dpatch,
  debian/patches/25_toolbin_insecure_tmp_usage_fix.dpatch,
  debian/patches/26_assorted_script_fixes.dpatch,
  debian/patches/29_gs_css_fix.dpatch,
  debian/patches/30_ps2pdf_man_improvement.dpatch,
  debian/patches/31_fix-gc-sigbus.dpatch,
  debian/patches/34_ftbfs-on-hurd-fix.dpatch,
  debian/patches/35_disable_libcairo.dpatch,
  debian/patches/38_pxl-duplex.dpatch,
  debian/patches/39_pxl-resolution.dpatch,
  debian/patches/42_gs-init-ps-delaybind-fix.dpatch,
  debian/patches/45_bjc600-bjc800-pdf-input.dpatch,
  debian/patches/48_cups-output-device-pdf-duplex-uninitialized-memory-fix.dpatch,
  debian/patches/50_lips4-floating-point-exception.dpatch,
  debian/patches/52_cups-device-logging.dpatch,
  debian/patches/55_pcl-input-slot-fix.dpatch,
  debian/patches/57_pxl-input-slot-fix.dpatch,
  debian/patches/60_pxl-cups-driver-pdf.dpatch,
  debian/patches/62_onebitcmyk-pdf.dpatch,
  debian/patches/65_too-big-temp-files-1.dpatch,
  debian/patches/67_too-big-temp-files-2.dpatch,
  debian/patches/70_take-into-account-data-in-stream-buffer-before-refill.dpatch:
  Removed, applied upstream.
* debian/patches/01_docdir_fix_for_debian.dpatch,
  debian/patches/02_gs_man_fix_debian.dpatch,
  debian/patches/01_docdir-fix-for-debian.dpatch,
  debian/patches/02_docdir-fix-for-debian.dpatch: Renamed patches to
  make merging with Debian easier.
* debian/patches/32_improve-handling-of-media-size-changes-from-gv.dpatch, 
  debian/patches/33_bad-params-to-xinitimage-on-large-bitmaps.dpatch:
  regenerated for new source directory structure.
* debian/rules: Corrected paths to remove cidfmap (it is in Resource/Init/
  in GS 8.64) and to install headers (source paths are psi/ and base/ now).
* debian/rules: Remove all fontmaps, as DeFoMa replaces them.
* debian/local/pdftoraster/pdftoraster.c,
  debian/local/pdftoraster/pdftoraster.convs, debian/rules: Removed
  added pdftoraster filter and use the one which comes with Ghostscript.
* debian/ghostscript.links: s/8.63/8.64/

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#  Copyright (C) 2001-2007 Artifex Software, Inc.
 
2
#  All Rights Reserved.
 
3
#
 
4
#  This software is provided AS-IS with no warranty, either express or
 
5
#  implied.
 
6
#
 
7
#  This software is distributed under license and may not be copied, modified
 
8
#  or distributed except as expressly authorized under the terms of that
 
9
#  license.  Refer to licensing information at http://www.artifex.com/
 
10
#  or contact Artifex Software, Inc.,  7 Mt. Lassen Drive - Suite A-134,
 
11
#  San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
 
12
#
 
13
# $Id: openvms.mak 9334 2009-01-08 09:17:18Z ghostgum $
 
14
# makefile for OpenVMS VAX and Alpha
 
15
#
 
16
# Please contact Jim Dunham (dunham@omtool.com) if you have questions.
 
17
# Support for VAX C on OpenVMS was removed in release 6.01 by Aladdin:
 
18
# DEC C is now used on both VAX and Alpha platforms.
 
19
#
 
20
# ------------------------------- Options ------------------------------- #
 
21
 
 
22
###### This section is the only part of the file you should need to edit.
 
23
 
 
24
# on the make command line specify:
 
25
#       make -fopenvms.mak "OPENVMS={VAX,ALPHA}" "DECWINDOWS={1.2,<blank>}"
 
26
 
 
27
# Define the directory for the final executable, and the
 
28
# source, generated intermediate file, and object directories
 
29
# for the graphics library (GL) and the PostScript/PDF interpreter (PS).
 
30
# NOTE: If you use GNU make, GLGENDIR and PSGENDIR must not be the
 
31
# current directory ([]).
 
32
 
 
33
BINDIR=[.bin]
 
34
GLSRCDIR=[.base]
 
35
GLGENDIR=[.obj]
 
36
GLOBJDIR=[.obj]
 
37
PSSRCDIR=[.psi]
 
38
PSLIBDIR=[.lib]
 
39
PSGENDIR=[.obj]
 
40
PSOBJDIR=[.obj]
 
41
# Because of OpenVMS syntactic problems, the following redundant definitions
 
42
# are necessary.  If you are using more than one GENDIR and/or OBJDIR,
 
43
# you will have to edit the code below that creates these directories.
 
44
BIN_DIR=BIN.DIR
 
45
OBJ_DIR=OBJ.DIR
 
46
 
 
47
# Do not edit the next group of lines.
 
48
 
 
49
#include $(COMMONDIR)/vmscdefs.mak
 
50
#include $(COMMONDIR)/vmsdefs.mak
 
51
#include $(COMMONDIR)/generic.mak
 
52
include $(GLSRCDIR)version.mak
 
53
DD=$(GLGENDIR)
 
54
GLD=$(GLGENDIR)
 
55
PSD=$(PSGENDIR)
 
56
 
 
57
# ------ Generic options ------ #
 
58
 
 
59
# Define the directory that will hold documentation at runtime.
 
60
 
 
61
GS_DOCDIR=GS_DOC
 
62
#GS_DOCDIR=SYS$COMMON:[GS]
 
63
 
 
64
# Define the default directory/ies for the runtime
 
65
# initialization and font files.  Separate multiple directories with ,.
 
66
 
 
67
GS_LIB_DEFAULT=GS_ROOT:[RESOURCE.INIT],GS_ROOT:[LIB],GS_ROOT:[RESOURCE.FONT],GS_ROOT:[FONT]
 
68
 
 
69
# Define whether or not searching for initialization files should always
 
70
# look in the current directory first.  This leads to well-known security
 
71
# and confusion problems, but users insist on it.
 
72
# NOTE: this also affects searching for files named on the command line:
 
73
# see the "File searching" section of Use.htm for full details.
 
74
# Because of this, setting SEARCH_HERE_FIRST to 0 is not recommended.
 
75
 
 
76
SEARCH_HERE_FIRST=1
 
77
 
 
78
# Define the name of the interpreter initialization file.
 
79
# (There is no reason to change this.)
 
80
 
 
81
GS_INIT=GS_INIT.PS
 
82
 
 
83
# Choose generic configuration options.
 
84
 
 
85
# Setting DEBUG=1 includes debugging features in the code
 
86
 
 
87
DEBUG=
 
88
 
 
89
# Setting TDEBUG=1 includes symbol table information for the debugger,
 
90
# and also enables stack tracing on failure.
 
91
 
 
92
TDEBUG=
 
93
 
 
94
# Setting CDEBUG=1 enables 'C' compiler debugging and turns off optimization
 
95
# Code is substantially slower and larger.
 
96
 
 
97
CDEBUG=
 
98
 
 
99
# Define the name of the executable file.
 
100
 
 
101
GS=GS
 
102
 
 
103
# Define the directory where the IJG JPEG library sources are stored,
 
104
# and the major version of the library that is stored there.
 
105
# You may need to change this if the IJG library version changes.
 
106
# See jpeg.mak for more information.
 
107
 
 
108
JSRCDIR=[.jpeg]
 
109
 
 
110
# Define the directory where the PNG library sources are stored,
 
111
# and the version of the library that is stored there.
 
112
# You may need to change this if the libpng version changes.
 
113
# See libpng.mak for more information.
 
114
 
 
115
PNGSRCDIR=[.libpng]
 
116
 
 
117
# Define the directory where the zlib sources are stored.
 
118
# See zlib.mak for more information.
 
119
 
 
120
ZSRCDIR=[.zlib]
 
121
 
 
122
# Define the jbig2 library and source location.
 
123
# See jbig2.mak for more information.
 
124
 
 
125
JBIG2_LIB=jbig2dec
 
126
JBIG2SRCDIR=[.jbig2dec]
 
127
 
 
128
# Define the jpeg2k library and source location.
 
129
 
 
130
JPX_LIB=jasper
 
131
JPXSRCDIR=jasper
 
132
 
 
133
# Define the directory where the icclib source are stored.
 
134
# See icclib.mak for more information
 
135
 
 
136
ICCSRCDIR=[.icclib]
 
137
 
 
138
# IJS has not been ported to OpenVMS. If you do the port,
 
139
# you'll need to set these values. You'll also need to
 
140
# include the ijs.mak makefile (right after icclib.mak).
 
141
#
 
142
# Define the directory where the ijs source is stored,
 
143
# and the process forking method to use for the server.
 
144
# See ijs.mak for more information.
 
145
 
 
146
#IJSSRCDIR=[.ijs]
 
147
#IJSEXECTYPE=unix
 
148
 
 
149
# Define the directory where the imdi source are stored.
 
150
# See imdi.mak for more information
 
151
 
 
152
IMDISRCDIR=[.imdi]
 
153
 
 
154
# Note that built-in third-party libraries aren't available.
 
155
 
 
156
SHARE_JPEG=0
 
157
SHARE_LIBPNG=0
 
158
SHARE_ZLIB=0
 
159
SHARE_JBIG2=0
 
160
SHARE_JPX=0
 
161
 
 
162
# Define the path to X11 include files
 
163
 
 
164
X_INCLUDE=DECW$$INCLUDE
 
165
 
 
166
# ------ Platform-specific options ------ #
 
167
 
 
168
# Define the drive, directory, and compiler name for the 'C' compiler.
 
169
# COMP is the full compiler path name.
 
170
 
 
171
COMP=CC
 
172
 
 
173
ifdef DEBUG
 
174
COMP:=$(COMP)/DEBUG/NOOPTIMIZE
 
175
else
 
176
# This should include /OPTIMIZE, but some OpenVMS compilers have an
 
177
# optimizer bug that causes them to generate incorrect code for gdevpsfx.c,
 
178
# so we must disable optimization.  (Eventually we will check for the bug
 
179
# in genarch and enable optimization if it is safe.)
 
180
#COMP:=$(COMP)/NODEBUG/OPTIMIZE
 
181
COMP:=$(COMP)/NODEBUG/NOOPTIMIZE
 
182
endif
 
183
 
 
184
COMP:=$(COMP)/DECC/PREFIX=ALL/NESTED_INCLUDE=PRIMARY/NAMES=SHORTENED
 
185
 
 
186
# Define any other compilation flags. 
 
187
# Including defines for A4 paper size
 
188
 
 
189
ifdef A4_PAPER
 
190
COMP:=$(COMP)/DEFINE=("A4")
 
191
endif
 
192
 
 
193
# LINK is the full linker path name
 
194
 
 
195
ifdef TDEBUG
 
196
LINKER=LINK/DEBUG/TRACEBACK
 
197
else
 
198
LINKER=LINK/NODEBUG/NOTRACEBACK
 
199
endif
 
200
 
 
201
# INCDIR contains the include files
 
202
INCDIR=
 
203
 
 
204
# LIBDIR contains the library files
 
205
LIBDIR=
 
206
 
 
207
# Define the .dev module that implements thread and synchronization
 
208
# primitives for this platform.  Don't change this unless you really know
 
209
# what you're doing.
 
210
 
 
211
SYNC=posync
 
212
 
 
213
# ------ Devices and features ------ #
 
214
 
 
215
# Choose the device(s) to include.  See devs.mak for details,
 
216
# devs.mak and contrib.mak for the list of available devices.
 
217
 
 
218
DEVICE_DEVS=$(DD)x11.dev $(DD)x11alpha.dev $(DD)x11cmyk.dev $(DD)x11gray2.dev $(DD)x11gray4.dev $(DD)x11mono.dev
 
219
DEVICE_DEVS1=
 
220
DEVICE_DEVS2=
 
221
DEVICE_DEVS3=$(DD)deskjet.dev $(DD)djet500.dev $(DD)laserjet.dev $(DD)ljetplus.dev $(DD)ljet2p.dev $(DD)ljet3.dev $(DD)ljet3d.dev $(DD)ljet4.dev $(DD)ljet4d.dev
 
222
DEVICE_DEVS4=$(DD)cdeskjet.dev $(DD)cdjcolor.dev $(DD)cdjmono.dev $(DD)cdj550.dev $(DD)pj.dev $(DD)pjxl.dev $(DD)pjxl300.dev
 
223
DEVICE_DEVS5=$(DD)uniprint.dev
 
224
DEVICE_DEVS6=$(DD)bj10e.dev $(DD)bj200.dev $(DD)bjc600.dev $(DD)bjc800.dev
 
225
DEVICE_DEVS7=$(DD)faxg3.dev $(DD)faxg32d.dev $(DD)faxg4.dev
 
226
DEVICE_DEVS8=$(DD)pcxmono.dev $(DD)pcxgray.dev $(DD)pcx16.dev $(DD)pcx256.dev $(DD)pcx24b.dev $(DD)pcxcmyk.dev
 
227
DEVICE_DEVS9=$(DD)pbm.dev $(DD)pbmraw.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm.dev $(DD)pgnmraw.dev
 
228
DEVICE_DEVS10=$(DD)tiffcrle.dev $(DD)tiffg3.dev $(DD)tiffg32d.dev $(DD)tiffg4.dev $(DD)tifflzw.dev $(DD)tiffpack.dev
 
229
DEVICE_DEVS11=$(DD)tiff12nc.dev $(DD)tiff24nc.dev $(DD)tiffgray.dev $(DD)tiff32nc.dev $(DD)tiffsep.dev
 
230
DEVICE_DEVS12=$(DD)psmono.dev $(DD)psgray.dev $(DD)psrgb.dev $(DD)bit.dev $(DD)bitrgb.dev $(DD)bitcmyk.dev
 
231
DEVICE_DEVS13=$(DD)pngmono.dev $(DD)pnggray.dev $(DD)png16.dev $(DD)png256.dev $(DD)png16m.dev $(DD)pngalpha.dev
 
232
DEVICE_DEVS14=$(DD)jpeg.dev $(DD)jpeggray.dev $(DD)jpegcmyk.dev
 
233
DEVICE_DEVS15=$(DD)pdfwrite.dev $(DD)pswrite.dev $(DD)ps2write.dev $(DD)epswrite.dev $(DD)txtwrite.dev $(DD)pxlmono.dev $(DD)pxlcolor.dev
 
234
DEVICE_DEVS16=$(DD)bbox.dev
 
235
# Overflow from DEVS9
 
236
DEVICE_DEVS17=$(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev $(DD)pkm.dev $(DD)pkmraw.dev $(DD)pksm.dev $(DD)pksmraw.dev $(DD)pamcmyk32.dev
 
237
DEVICE_DEVS18=
 
238
DEVICE_DEVS19=
 
239
DEVICE_DEVS20=
 
240
DEVICE_DEVS21=
 
241
 
 
242
# Choose the language feature(s) to include.  See gs.mak for details.
 
243
 
 
244
FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)epsf.dev $(PSD)fapi.dev
 
245
 
 
246
# Choose whether to compile the .ps initialization files into the executable.
 
247
# See gs.mak for details.
 
248
 
 
249
COMPILE_INITS=0
 
250
 
 
251
# Choose whether to store band lists on files or in memory.
 
252
# The choices are 'file' or 'memory'.
 
253
 
 
254
BAND_LIST_STORAGE=file
 
255
 
 
256
# Choose which compression method to use when storing band lists in memory.
 
257
# The choices are 'lzw' or 'zlib'.
 
258
 
 
259
BAND_LIST_COMPRESSOR=zlib
 
260
 
 
261
# Choose the implementation of file I/O: 'stdio', 'fd', or 'both'.
 
262
# See gs.mak and sfxfd.c for more details.
 
263
 
 
264
FILE_IMPLEMENTATION=stdio
 
265
 
 
266
# Choose the implementation of stdio: '' for file I/O and 'c' for callouts
 
267
# See gs.mak and ziodevs.c/ziodevsc.c for more details.
 
268
 
 
269
STDIO_IMPLEMENTATION=c
 
270
 
 
271
# Define the platform name.
 
272
 
 
273
PLATFORM=openvms_
 
274
 
 
275
# Define the name of the makefile -- used in dependencies.
 
276
 
 
277
MAKEFILE=$(GLSRCDIR)openvms.mak
 
278
TOP_MAKEFILES=$(MAKEFILE)
 
279
 
 
280
# Define the platform options
 
281
 
 
282
PLATOPT=
 
283
 
 
284
# It is very unlikely that anyone would want to edit the remaining
 
285
#   symbols, but we describe them here for completeness:
 
286
 
 
287
# Define the suffix for command files (e.g., null or .bat).
 
288
 
 
289
CMD=
 
290
 
 
291
# Define the directory separator character (\ for MS-DOS, / for Unix,
 
292
# nothing for OpenVMS).
 
293
 
 
294
D=
 
295
 
 
296
# Define the brackets for passing preprocessor definitions to the C compiler.
 
297
 
 
298
NULL=
 
299
 
 
300
D_=/DEFINE="
 
301
_D_=$(NULL)=
 
302
_D="
 
303
 
 
304
# Define the syntax of search paths for the C compiler.
 
305
# The OpenVMS compilers uses /INCLUDE=(dir1, dir2, ...dirn),
 
306
# and only a single /INCLUDE switch is allowed in the command line.
 
307
 
 
308
I_=/INCLUDE=(
 
309
II=,
 
310
_I=)
 
311
 
 
312
# Define the string for specifying the output file from the C compiler.
 
313
 
 
314
O_=/OBJECT=
 
315
 
 
316
# Define the quoting string for mixed-case arguments.
 
317
# (OpenVMS is the only platform where this isn't an empty string.)
 
318
 
 
319
Q="
 
320
 
 
321
# Define the extension for executable files (e.g., null or .exe).
 
322
 
 
323
XE=.exe
 
324
 
 
325
# Define the extension for executable files for the auxiliary programs
 
326
# (e.g., null or .exe).
 
327
 
 
328
XEAUX=.exe
 
329
 
 
330
# Define the list of files that `make clean' removes.
 
331
 
 
332
BEGINFILES=$(GLGENDIR)OPENVMS.OPT $(GLGENDIR)OPENVMS.COM
 
333
 
 
334
# Define the C invocation for auxiliary programs (echogs, genarch).
 
335
 
 
336
CCAUX=CC/DECC
 
337
 
 
338
# Define the C invocation for normal compilation.
 
339
 
 
340
CC=$(COMP)
 
341
 
 
342
# Define the Link invocation.
 
343
 
 
344
LINK=$(LINKER)/EXE=$@ $^,$(GLGENDIR)OPENVMS.OPT/OPTION
 
345
 
 
346
# Define the auxiliary program dependency. We don't need this.
 
347
 
 
348
AK=
 
349
 
 
350
# Define the syntax for command, object, and executable files.
 
351
 
 
352
OBJ=obj
 
353
 
 
354
# Define the prefix for image invocations.
 
355
 
 
356
EXP=MCR $(NULL)
 
357
 
 
358
# Define the prefix for shell invocations.
 
359
 
 
360
SH=
 
361
 
 
362
# Define generic commands.
 
363
 
 
364
CP_=$$ @$(GLSRCDIR)COPY_ONE
 
365
 
 
366
# Define the command for deleting (a) file(s) (including wild cards)
 
367
 
 
368
RM_=$$ @$(GLSRCDIR)RM_ONE
 
369
 
 
370
# Define the command for deleting multiple files / patterns.
 
371
 
 
372
RMN_=$$ @$(GLSRCDIR)RM_ALL
 
373
 
 
374
# Define the arguments for genconf.
 
375
 
 
376
CONFILES=-p %s
 
377
CONFLDTR=-o
 
378
 
 
379
# Define the generic compilation rules.
 
380
 
 
381
..suffixes: .c .obj .exe
 
382
 
 
383
..obj.exe:
 
384
        $(LINK)
 
385
 
 
386
# ---------------------------- End of options ---------------------------- #
 
387
 
 
388
# Define the default build rule, so the object directories get created
 
389
# automatically.
 
390
 
 
391
# I wasn't able to find a "do nothing" command in the DCL manual!
 
392
std: STDDIRS default
 
393
        WRITE SYS$$OUTPUT "Done."
 
394
 
 
395
STDDIRS:
 
396
        $$ If F$$Search("$(BIN_DIR)") .EQS. "" Then Create/Directory/Log $(BINDIR)
 
397
        $$ If F$$Search("$(OBJ_DIR)") .EQS. "" Then Create/Directory/Log $(GLOBJDIR)
 
398
 
 
399
# ------------------- Include the generic makefiles ---------------------- #
 
400
 
 
401
#include $(COMMONDIR)/ansidefs.mak
 
402
#include $(COMMONDIR)/vmsdefs.mak
 
403
#include $(COMMONDIR)/generic.mak
 
404
include $(GLSRCDIR)gs.mak
 
405
 
 
406
# ***********************************************************************************
 
407
#
 
408
#    The following should be kept up to date with src/psromfs.mak -- we can't
 
409
#    use the shared one because of VMS directory syntax strangeness.
 
410
#
 
411
#    This enumeration of the Resource/* directories probably won't work without
 
412
#    code changes to src/mkromfs.c to change the VMS style of directory references
 
413
#    to PostScript style, but we will need this when (if) mkromfs is changed for VMS
 
414
#
 
415
# ***********************************************************************************
 
416
# The list of resources to be included in the %rom% file system.
 
417
# This is in the top makefile since the file descriptors are platform specific
 
418
RESOURCE_LIST=[Resource.CMap] [Resource.ColorSpace] [Resource.Decoding] [Resource.Fonts] [Resource.ProcSet] [Resource.IdiomSet] [Resource.CIDFont]
 
419
 
 
420
PS_ROMFS_ARGS=-c -d Resource/ $(RESOURCE_LIST) -d lib/ -P $(PSLIBDIR) $(EXTRA_INIT_FILES)
 
421
 
 
422
include $(GLSRCDIR)lib.mak
 
423
include $(PSSRCDIR)int.mak
 
424
include $(GLSRCDIR)jpeg.mak
 
425
# zlib.mak must precede libpng.mak
 
426
include $(GLSRCDIR)zlib.mak
 
427
include $(GLSRCDIR)libpng.mak
 
428
include $(GLSRCDIR)jbig2.mak
 
429
include $(GLSRCDIR)icclib.mak
 
430
include $(GLSRCDIR)devs.mak
 
431
include $(GLSRCDIR)contrib.mak
 
432
 
 
433
# Define various incantations of the 'c' compiler.
 
434
 
 
435
CC_=$(COMP)
 
436
CC_INT=$(CC_)
 
437
CC_NO_WARN=$(CC_)
 
438
CC_SHARED=$(CC_)
 
439
 
 
440
# ----------------------------- Main program ------------------------------ #
 
441
 
 
442
$(GS_XE) : openvms $(GLOBJDIR)gs.$(OBJ) $(INT_ALL) $(LIB_ALL)
 
443
        $(LINKER)/EXE=$@ $(GLOBJ)gs.$(OBJ),$(ld_tr)/OPTIONS,$(GLGENDIR)OPENVMS.OPT/OPTION
 
444
 
 
445
# OpenVMS.dev
 
446
 
 
447
openvms__=$(GLOBJ)gp_getnv.$(OBJ) $(GLOBJ)gp_paper.$(OBJ) $(GLOBJ)gp_vms.$(OBJ) $(GLOBJ)gp_stdia.$(OBJ)
 
448
$(GLGEN)openvms_.dev : $(openvms__) $(GLGEN)nosync.dev
 
449
        $(SETMOD) $(GLGEN)openvms_ $(openvms__) -include $(GLGEN)nosync
 
450
 
 
451
$(GLOBJ)gp_vms.$(OBJ) : $(GLSRC)gp_vms.c $(string__h) $(memory__h) $(gx_h) $(gp_h) $(gpmisc_h) $(gsstruct_h)
 
452
        $(CC_)/include=($(GLGENDIR),$(GLSRCDIR))/obj=$(GLOBJ)gp_vms.$(OBJ) $(GLSRC)gp_vms.c
 
453
 
 
454
$(GLOBJ)gp_stdia.$(OBJ): $(GLSRC)gp_stdia.c $(AK) $(stdio__h) $(time__h) $(unistd__h) $(gx_h) $(gp_h)
 
455
        $(CC_)/obj=$(GLOBJ)gp_stdia.$(OBJ) $(GLSRC)gp_stdia.c
 
456
 
 
457
# Interpreter AUX programs
 
458
 
 
459
$(ECHOGS_XE) :  $(GLOBJ)echogs.$(OBJ) 
 
460
        LINK/EXE=$@ $(GLOBJ)echogs.$(OBJ)
 
461
 
 
462
$(GLOBJ)echogs.$(OBJ) :  $(GLSRC)echogs.c
 
463
        $(CCAUX)/obj=$(GLOBJ)echogs.$(OBJ)  $(GLSRC)echogs.c
 
464
 
 
465
$(GENARCH_XE) : $(GLOBJ)genarch.$(OBJ)
 
466
        LINK/EXE=$@ $(GLOBJ)genarch.$(OBJ)
 
467
 
 
468
$(GLOBJ)genarch.$(OBJ) :  $(GLSRC)genarch.c $(GENARCH_DEPS)
 
469
        $(CCAUX)/obj=$(GLOBJ)genarch.$(OBJ)  $(GLSRC)genarch.c
 
470
 
 
471
$(GENCONF_XE) : $(GLOBJDIR)genconf.$(OBJ)
 
472
        LINK/EXE=$@ $(GLOBJ)genconf.$(OBJ)
 
473
 
 
474
$(GLOBJ)genconf.$(OBJ) :  $(GLSRC)genconf.c $(GENCONF_DEPS)
 
475
        $(CCAUX)/obj=$(GLOBJ)genconf.$(OBJ)  $(GLSRC)genconf.c
 
476
 
 
477
$(GENDEV_XE) : $(GLOBJDIR)gendev.$(OBJ)
 
478
        LINK/EXE=$@ $(GLOBJ)gendev.$(OBJ)
 
479
 
 
480
$(GLOBJ)gendev.$(OBJ) :  $(GLSRC)gendev.c $(GENDEV_DEPS)
 
481
        $(CCAUX)/obj=$(GLOBJ)gendev.$(OBJ)  $(GLSRC)gendev.c
 
482
 
 
483
$(GENHT_XE) : $(GLOBJDIR)genht.$(OBJ)
 
484
        LINK/EXE=$@ $(GLOBJ)genht.$(OBJ)
 
485
 
 
486
$(GLOBJ)genht.$(OBJ) :  $(GLSRC)genht.c $(GENHT_DEPS)
 
487
        $(CCAUX)/obj=$(GLOBJ)genht.$(OBJ) $(GENHT_CFLAGS) $(GLSRC)genht.c
 
488
 
 
489
$(GENINIT_XE) : $(GLOBJDIR)geninit.$(OBJ)
 
490
        LINK/EXE=$@ $(GLOBJ)geninit.$(OBJ)
 
491
 
 
492
$(GLOBJ)geninit.$(OBJ) :  $(GLSRC)geninit.c $(GENINIT_DEPS)
 
493
        $(CCAUX)/obj=$(GLOBJ)geninit.$(OBJ)  $(GLSRC)geninit.c
 
494
 
 
495
$(GLOBJ)mkromfs.$(OBJ) :  $(GLSRC)mkromfs.c $(MKROMFS_COMMON_DEPS)
 
496
        $(CCAUX)/obj=$(GLOBJ)mkromfs.$(OBJ) $(I_)$(GLI_) $(II)$(ZI_)$(_I) $(GLSRC)mkromfs.c
 
497
 
 
498
MKROMFS_OBJS=$(MKROMFS_ZLIB_OBJS) $(GLOBJ)gp_vms.$(OBJ)
 
499
$(MKROMFS_XE): $(GLSRC)mkromfs.c $(MKROMFS_OBJS)
 
500
        LINK/EXE=$@ $(GLOBJ)mkromfs.$(OBJ) $(MKROMFS_OBJS)
 
501
 
 
502
# Preliminary definitions
 
503
 
 
504
openvms : $(GLGENDIR)openvms.com $(GLGENDIR)openvms.opt
 
505
        $$ @$(GLGENDIR)OPENVMS
 
506
 
 
507
$(GLGENDIR)openvms.com : $(GLSRCDIR)append_l.com $(GLOBJDIR)gsromfs$(COMPILE_INITS).$(OBJ)
 
508
        $$ @$(GLSRCDIR)APPEND_L $@ "$$ DEFINE/JOB X11 $(X_INCLUDE)"
 
509
        $$ @$(GLSRCDIR)APPEND_L $@ "$$ DEFINE/JOB GS_LIB ''F$$ENVIRONMENT(""DEFAULT"")'"
 
510
        $$ @$(GLSRCDIR)APPEND_L $@ "$$ DEFINE/JOB GS_DOC ''F$$ENVIRONMENT(""DEFAULT"")'"
 
511
        $$ @$(GLSRCDIR)APPEND_L $@ "$$ DEFINE/JOB DECC$$USER_INCLUDE ''F$$ENVIRONMENT(""DEFAULT"")', DECW$$INCLUDE, DECC$$LIBRARY_INCLUDE, SYS$$LIBRARY"
 
512
        $$ @$(GLSRCDIR)APPEND_L $@ "$$ DEFINE/JOB DECC$$SYSTEM_INCLUDE ''F$$ENVIRONMENT(""DEFAULT"")', DECW$$INCLUDE, DECC$$LIBRARY_INCLUDE, SYS$$LIBRARY"
 
513
        $$ @$(GLSRCDIR)APPEND_L $@ "$$ DEFINE/JOB SYS "DECC$$LIBRARY_INCLUDE,SYS$$LIBRARY"
 
514
 
 
515
$(GLGENDIR)openvms.opt:
 
516
ifeq "$(DECWINDOWS)" "1.2"
 
517
        $$ @$(GLSRCDIR)APPEND_L $@ "SYS$$SHARE:DECW$$XMLIBSHR12.EXE/SHARE"
 
518
        $$ @$(GLSRCDIR)APPEND_L $@ "SYS$$SHARE:DECW$$XTLIBSHRR5.EXE/SHARE"
 
519
        $$ @$(GLSRCDIR)APPEND_L $@ "SYS$$SHARE:DECW$$XLIBSHR.EXE/SHARE"
 
520
else
 
521
        $$ @$(GLSRCDIR)APPEND_L $@ "SYS$$SHARE:DECW$$XMLIBSHR.EXE/SHARE"
 
522
        $$ @$(GLSRCDIR)APPEND_L $@ "SYS$$SHARE:DECW$$XTSHR.EXE/SHARE"
 
523
        $$ @$(GLSRCDIR)APPEND_L $@ "SYS$$SHARE:DECW$$XLIBSHR.EXE/SHARE"
 
524
endif
 
525
        $$ @$(GLSRCDIR)APPEND_L $@ ""Ident="""""GS $(GS_DOT_VERSION)"""""
 
526
 
 
527
# The platform-specific makefiles must also include rules for creating
 
528
# certain dynamically generated files:
 
529
#       gconfig_.h - this indicates the presence or absence of
 
530
#           certain system header files that are located in different
 
531
#           places on different systems.  (It could be generated by
 
532
#           the GNU `configure' program.)
 
533
 
 
534
$(gconfig__h) : $(TOP_MAKEFILES) $(ECHOGS_XE)
 
535
        $(EXP)$(ECHOGS_XE) -w $(gconfig__h) -x 23 define "HAVE_SYS_TIME_H"