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

« back to all changes in this revision

Viewing changes to src/msvccmd.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-2006 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: msvccmd.mak 8824 2008-07-07 13:43:38Z ken $
14
 
# Command definition section for Microsoft Visual C++ 4.x/5.x,
15
 
# Windows NT or Windows 95 platform.
16
 
# Created 1997-05-22 by L. Peter Deutsch from msvc4/5 makefiles.
17
 
# edited 1997-06-xx by JD to factor out interpreter-specific sections
18
 
# edited 2000-03-30 by lpd to make /FPi87 conditional on MSVC version
19
 
# edited 2000-06-05 by lpd to treat empty MSINCDIR and LIBDIR specially.
20
 
 
21
 
# Set up linker differently for MSVC 4 vs. later versions
22
 
 
23
 
!if $(MSVC_VERSION) == 4
24
 
 
25
 
# MSVC version 4.x doesn't recognize the /QI0f switch, which works around
26
 
# an unspecified bug in the Pentium decoding of certain 0F instructions.
27
 
QI0f=
28
 
 
29
 
!else
30
 
#else $(MSVC_VERSION) != 4
31
 
 
32
 
# MSVC 5.x does recognize /QI0f.
33
 
QI0f=/QI0f
34
 
 
35
 
# Define separate CCAUX command-line switch that must be at END of line.
36
 
 
37
 
!if $(MSVC_VERSION) < 7
38
 
CCAUX_TAIL= /link
39
 
!else
40
 
CCAUX_TAIL= /link /LIBPATH:"$(COMPBASE)\lib"
41
 
!endif
42
 
 
43
 
!endif
44
 
#endif #$(MSVC_VERSION) == 4
45
 
 
46
 
 
47
 
# Define the current directory prefix and shell invocations.
48
 
 
49
 
D=\#
50
 
 
51
 
SH=
52
 
 
53
 
# Define switches for the compilers.
54
 
 
55
 
C_=
56
 
O_=-Fo
57
 
RO_=$(O_)
58
 
 
59
 
# Define the arguments for genconf.
60
 
 
61
 
CONFILES=-p %%s
62
 
CONFLDTR=-ol
63
 
 
64
 
# Define the generic compilation flags.
65
 
 
66
 
PLATOPT=
67
 
 
68
 
# Make sure we get the right default target for make.
69
 
 
70
 
dosdefault: default
71
 
        $(NO_OP)
72
 
 
73
 
# Define the compilation flags.
74
 
 
75
 
# MSVC 8 (2005) warns about deprecated unsafe common functions like strcpy.
76
 
!if ($(MSVC_VERSION) > 7) || defined(WIN64)
77
 
VC8WARN=/wd4996 /wd4224
78
 
!else
79
 
VC8WARN=
80
 
!endif
81
 
 
82
 
!if ($(MSVC_VERSION) < 8)
83
 
CDCC=/Gi /Zi
84
 
!else
85
 
!ifdef WIN64
86
 
CDCC=/Zi
87
 
!else
88
 
CDCC=/Zi
89
 
!endif
90
 
!endif
91
 
 
92
 
!if "$(CPU_FAMILY)"=="i386"
93
 
 
94
 
!if ($(MSVC_VERSION) >= 8) || defined(WIN64)
95
 
# MSVC 8 (2005) attempts to produce code good for all processors.
96
 
# and doesn't used /G5 or /GB.
97
 
# MSVC 8 (2005) avoids buggy 0F instructions.
98
 
CPFLAGS=
99
 
!else
100
 
!if $(CPU_TYPE)>500
101
 
CPFLAGS=/G5 $(QI0f)
102
 
!else if $(CPU_TYPE)>400
103
 
CPFLAGS=/GB $(QI0f)
104
 
!else
105
 
CPFLAGS=/GB $(QI0f)
106
 
!endif
107
 
!endif
108
 
 
109
 
!if $(MSVC_VERSION)<5
110
 
FPFLAGS=/FPi87
111
 
!else
112
 
FPFLAGS=
113
 
!endif
114
 
 
115
 
!endif
116
 
 
117
 
!if "$(CPU_FAMILY)"=="ppc"
118
 
 
119
 
!if $(CPU_TYPE)>=620
120
 
CPFLAGS=/QP620
121
 
!else if $(CPU_TYPE)>=604
122
 
CPFLAGS=/QP604
123
 
!else
124
 
CPFLAGS=/QP601
125
 
!endif
126
 
 
127
 
FPFLAGS=
128
 
 
129
 
!endif
130
 
 
131
 
!if "$(CPU_FAMILY)"=="alpha"
132
 
 
133
 
# *** alpha *** This needs fixing
134
 
CPFLAGS=
135
 
FPFLAGS=
136
 
 
137
 
!endif
138
 
 
139
 
!if $(DEBUG)!=0
140
 
CD=/DDEBUG
141
 
!else
142
 
CD=
143
 
!endif
144
 
 
145
 
# Precompiled headers
146
 
!if $(MSVC_VERSION) >= 8
147
 
CPCH=/Fp$(GLOBJDIR)\gs.pch
148
 
!else
149
 
CPCH=/YX /Fp$(GLOBJDIR)\gs.pch
150
 
!endif
151
 
 
152
 
!ifndef DEBUGSYM
153
 
DEBUGSYM=0
154
 
!endif
155
 
 
156
 
!if $(TDEBUG)!=0
157
 
# /Fd designates the directory for the .pdb file.
158
 
# Note that it must be followed by a space.
159
 
CT=/Od /Fd$(GLOBJDIR) $(NULL) $(CDCC) $(CPCH)
160
 
LCT=/DEBUG /INCREMENTAL:YES
161
 
COMPILE_FULL_OPTIMIZED=    # no optimization when debugging
162
 
COMPILE_WITH_FRAMES=    # no optimization when debugging
163
 
COMPILE_WITHOUT_FRAMES=    # no optimization when debugging
164
 
CMT=/MTd
165
 
!else
166
 
!if $(DEBUGSYM)==0
167
 
CT=
168
 
LCT=
169
 
CMT=/MT
170
 
!else
171
 
CT=/Zi /Fd$(GLOBJDIR) $(NULL)
172
 
LCT=/DEBUG
173
 
CMT=/MTd
174
 
!endif
175
 
!if $(MSVC_VERSION) == 5
176
 
# NOTE: With MSVC++ 5.0, /O2 produces a non-working executable.
177
 
# We believe the following list of optimizations works around this bug.
178
 
COMPILE_FULL_OPTIMIZED=/GF /Ot /Oi /Ob2 /Oy /Oa- /Ow-
179
 
!else
180
 
COMPILE_FULL_OPTIMIZED=/GF /O2 /Ob2
181
 
!endif
182
 
COMPILE_WITH_FRAMES=
183
 
COMPILE_WITHOUT_FRAMES=/Oy
184
 
!endif
185
 
 
186
 
!if $(MSVC_VERSION) >= 8
187
 
# MSVC 8 (2005) always does stack probes and checking.
188
 
CS=
189
 
!else
190
 
!if $(DEBUG)!=0 || $(TDEBUG)!=0
191
 
CS=/Ge
192
 
!else
193
 
CS=/Gs
194
 
!endif
195
 
!endif
196
 
 
197
 
!if ($(MSVC_VERSION) == 7) && defined(WIN64)
198
 
# Need to specify DDK include directories before .NET 2003 directories.
199
 
MSINCFLAGS=-I"$(INCDIR64A)" -I"$(INCDIR64B)"
200
 
!else
201
 
MSINCFLAGS=
202
 
!endif
203
 
 
204
 
# Specify output object name
205
 
CCOBJNAME=-Fo
206
 
 
207
 
# Specify function prolog type
208
 
COMPILE_FOR_DLL=
209
 
COMPILE_FOR_EXE=
210
 
COMPILE_FOR_CONSOLE_EXE=
211
 
 
212
 
# The /MT is for multi-threading.  We would like to make this an option,
213
 
# but it's too much work right now.
214
 
GENOPT=$(CP) $(CD) $(CT) $(CS) $(WARNOPT) $(VC8WARN) /nologo $(CMT)
215
 
 
216
 
CCFLAGS=$(PLATOPT) $(FPFLAGS) $(CPFLAGS) $(CFLAGS) $(XCFLAGS) $(MSINCFLAGS)
217
 
CC=$(COMP) /c $(CCFLAGS) @$(GLGENDIR)\ccf32.tr
218
 
CPP=$(COMPCPP) /c $(CCFLAGS) @$(GLGENDIR)\ccf32.tr
219
 
!if $(MAKEDLL)
220
 
WX=$(COMPILE_FOR_DLL)
221
 
!else
222
 
WX=$(COMPILE_FOR_EXE)
223
 
!endif
224
 
 
225
 
!if $(COMPILE_INITS)
226
 
ZM=/Zm1200
227
 
!else
228
 
ZM=
229
 
!endif
230
 
 
231
 
 
232
 
# /Za disables the MS-specific extensions & enables ANSI mode.
233
 
CC_WX=$(CC) $(WX)
234
 
CC_=$(CC_WX) $(COMPILE_FULL_OPTIMIZED) /Za $(ZM)
235
 
CC_D=$(CC_WX) $(COMPILE_WITH_FRAMES)
236
 
CC_INT=$(CC_)
237
 
CC_NO_WARN=$(CC_)
238
 
 
239
 
# Compiler for auxiliary programs
240
 
 
241
 
CCAUX=$(COMPAUX) $(VC8WARN) $(CFLAGS)
242
 
 
243
 
# Compiler for Windows programs.
244
 
CCWINFLAGS=$(COMPILE_FULL_OPTIMIZED)
245
 
 
246
 
#end msvccmd.mak