📄 os2.mak
字号:
# Copyright (C) 1989, 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
#
# This file is part of Aladdin Ghostscript.
#
# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
# or distributor accepts any responsibility for the consequences of using it,
# or for whether it serves any particular purpose or works at all, unless he
# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
# License (the "License") for full details.
#
# Every copy of Aladdin Ghostscript must include a copy of the License,
# normally in a plain ASCII text file named PUBLIC. The License grants you
# the right to copy, modify and redistribute Aladdin Ghostscript, but only
# under certain conditions described in the License. Among other things, the
# License requires that the copyright notice and this notice be preserved on
# all copies.
# $Id: os2.mak $
# makefile for MS-DOS or OS/2 GCC/EMX platform.
# Uses Borland (MSDOS) MAKER or
# Uses IBM NMAKE.EXE Version 2.000.000 Mar 27 1992
# ------------------------------- Options ------------------------------- #
###### This section is the only part of the file you should need to edit.
# ------ Generic options ------ #
# Define the directory that will hold documentation at runtime.
GS_DOCDIR=c:/gs
# Define the default directory/ies for the runtime
# initialization and font files. Separate multiple directories with ;.
# Use / to indicate directories, not a single \.
GS_LIB_DEFAULT=c:/gs;c:/gs/fonts
# Define whether or not searching for initialization files should always
# look in the current directory first. This leads to well-known security
# and confusion problems, but users insist on it.
# NOTE: this also affects searching for files named on the command line:
# see the "File searching" section of Use.htm for full details.
# Because of this, setting SEARCH_HERE_FIRST to 0 is not recommended.
SEARCH_HERE_FIRST=1
# Define the name of the interpreter initialization file.
# (There is no reason to change this.)
GS_INIT=gs_init.ps
# Choose generic configuration options.
# Setting DEBUG=1 includes debugging features (-Z switch) in the code.
# Code runs substantially slower even if no debugging switches are set,
# and also takes about another 25K of memory.
DEBUG=0
# Setting GDEBUG=1 includes symbol table information for GDB.
# Produces larger .OBJ and .EXE files.
GDEBUG=0
# Setting NOPRIVATE=1 makes private (static) procedures and variables public,
# so they are visible to the debugger and profiler.
# No execution time or space penalty, just larger .OBJ and .EXE files.
NOPRIVATE=0
# Setting MAKEDLL=1 makes the target a DLL instead of an EXE
MAKEDLL=1
# Setting EMX=1 uses GCC/EMX
# Setting IBMCPP=1 uses IBM C++
EMX=1
IBMCPP=0
# Define the name of the executable file.
GS=gsos2
GSDLL=gsdll2
# Define the source, generated intermediate file, and object directories
# for the graphics library (GL) and the PostScript/PDF interpreter (PS).
# This makefile has never been tested with any other values than these,
# and almost certainly won't work with other values.
GLSRCDIR=.
GLGENDIR=.
GLOBJDIR=.
PSSRCDIR=.
PSGENDIR=.
PSOBJDIR=.
# Define the directory where the IJG JPEG library sources are stored,
# and the major version of the library that is stored there.
# You may need to change this if the IJG library version changes.
# See jpeg.mak for more information.
JSRCDIR=jpeg
JVERSION=6
# Define the directory where the PNG library sources are stored,
# and the version of the library that is stored there.
# You may need to change this if the libpng version changes.
# See libpng.mak for more information.
PSRCDIR=libpng
PVERSION=96
# Define the directory where the zlib sources are stored.
# See zlib.mak for more information.
ZSRCDIR=zlib
# Define the configuration ID. Read gs.mak carefully before changing this.
CONFIG=
# ------ Platform-specific options ------ #
# If you don't have an assembler, set USE_ASM=0. Otherwise, set USE_ASM=1,
# and set ASM to the name of the assembler you are using. This can be
# a full path name if you want. Normally it will be masm or tasm.
USE_ASM=0
ASM=
# Define the drive, directory, and compiler name for the EMX files.
# COMP is the compiler name (gcc)
# COMPDIR contains the compiler and linker (normally \emx\bin).
# EMXPATH contains the path to the EMX directory (normally /emx)
# INCDIR contains the include files (normally /emx/include).
# LIBDIR contains the library files (normally /emx/lib).
# Note that these prefixes are always followed by a \,
# so if you want to use the current directory, use an explicit '.'.
!if $(EMX)
COMP=gcc
COMPBASE=\emx
EMXPATH=/emx
COMPDIR=$(COMPBASE)\bin
INCDIR=$(EMXPATH)/include
LIBDIR=$(EMXPATH)/lib
!endif
!if $(IBMCPP)
COMP=icc /Q
COMPBASE=\ibmcpp
TOOLPATH=\toolkit
COMPDIR=$(COMPBASE)\bin
INCDIR=$(TOOLPATH)\h;$(COMPBASE)\include
LIBDIR=$(TOOLPATH)\lib;$(COMPBASE)\lib
!endif
# Choose platform-specific options.
# Define the processor (CPU) type. Options are 86 (8086 or 8088),
# 186, 286, 386, 485 (486SX or Cyrix 486SLC), 486 (486DX), or 586 (Pentium).
# Higher numbers produce code that may be significantly smaller and faster,
# but the executable will bail out with an error message on any processor
# less capable than the designated one.
# EMX requires 386 or higher
CPU_TYPE=386
# Define the math coprocessor (FPU) type.
# Options are -1 (optimize for no FPU), 0 (optimize for FPU present,
# but do not require a FPU), 87, 287, or 387.
# If CPU_TYPE is 486 or above, FPU_TYPE is implicitly set to 387,
# since 486DX and later processors include the equivalent of an 80387 on-chip.
# An xx87 option means that the executable will run only if a FPU
# of that type (or higher) is available: this is NOT currently checked
# at runtime.
FPU_TYPE=0
# ---------------------------- End of options ---------------------------- #
# Note that built-in libpng and zlib aren't available.
SHARE_JPEG=0
SHARE_LIBPNG=0
SHARE_ZLIB=0
# Swapping `make' out of memory makes linking much faster.
# only used by Borland MAKER.EXE
#.swap
# Define the platform name.
PLATFORM=os2_
# Define the name of the makefile -- used in dependencies.
MAKEFILE=os2.mak
# Define the files to be deleted by 'make clean'.
BEGINFILES=gspmdrv.exe gs*.res gs*.ico $(GSDLL).dll
# Define the ANSI-to-K&R dependency.
AK=
#Compiler Optimiser option
!if $(EMX)
CO=-O
!endif
!if $(IBMCPP)
#CO=/O+
CO=/O-
!endif
# Make sure we get the right default target for make.
dosdefault: default gspmdrv.exe
# Define a rule for invoking just the preprocessor.
.c.i:
$(COMPDIR)\cpp $(CCFLAGS) $<
# Define the extensions for command, object, and executable files.
CMD=.cmd
C_=-c
I_=-I
II=-I
_I=
# There should be a <space> at the end of the definition of O_,
# but we have to work around the fact that some `make' programs
# drop trailing spaces in macro definitions.
NULL=
O_=-o $(NULL)
!if $(MAKEDLL)
OBJ=obj
!else
OBJ=o
!endif
XE=.exe
XEAUX=.exe
# Define the current directory prefix, shell quote string, and shell name.
D=\#
EXP=
QQ="
SH=
SHP=
# Define generic commands.
# We use cp.cmd rather than copy /B so that we update the write date.
CP_=cp.cmd
# We use rm.cmd rather than erase because rm.cmd never generates
# a non-zero return code.
RM_=rm.cmd
# OS/2 erase, unlike MS-DOS erase, accepts multiple files or patterns.
RMN_=rm.cmd
# Define the arguments for genconf.
!if $(MAKEDLL)
CONFILES=-p %%s+ -l $(GLGENDIR)\lib.tr
!else
CONFILES=-l $(GLGENDIR)\lib.tr
!endif
CONFLDTR=-o
# Define the generic compilation flags.
!if $(CPU_TYPE) >= 486
ASMCPU=/DFOR80386 /DFOR80486
PLATOPT=-DFOR80386 -DFOR80486
!else
!if $(CPU_TYPE) >= 386
ASMCPU=/DFOR80386
PLATOPT=-DFOR80386
!endif
!endif
!if $(FPU_TYPE) > 0
ASMFPU=/DFORFPU
!else
ASMFPU=
!endif
!if $(USE_ASM)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -