# Copyright (C) 2001-2021 Artifex Software, Inc. # All Rights Reserved. # # This software is provided AS-IS with no warranty, either express or # implied. # # This software is distributed under license and may not be copied, # modified or distributed except as expressly authorized under the terms # of the license contained in the file LICENSE in this distribution. # # Refer to licensing information at http://www.artifex.com or contact # Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato, # CA 94945, U.S.A., +1(415)492-9861, for further information. # # makefile template for/from the autoconf build. # Makefile. Generated from Makefile.in by configure. # ------------------------------- Options ------------------------------- # ####### The following are the only parts of the file you should need to edit. # Define the directory for the final executable, and the # source, generated intermediate file, and object directories # for the graphics library (GL) and the PostScript/PDF interpreter (PS). PACKAGE=ghostscript BINDIR=./$(BUILDDIRPREFIX)bin GLSRCDIR=./base DEVSRCDIR=./devices GENORDERED_SRCDIR=./toolbin/halftone/gen_ordered GLGENDIR=./$(BUILDDIRPREFIX)obj GLOBJDIR=./$(BUILDDIRPREFIX)obj DEVGENDIR=./$(BUILDDIRPREFIX)obj DEVOBJDIR=./$(BUILDDIRPREFIX)obj AUXDIR=$(GLGENDIR)/aux PSSRCDIR=./psi PSLIBDIR=./lib PSRESDIR=./Resource PSGENDIR=./$(BUILDDIRPREFIX)obj PSOBJDIR=./$(BUILDDIRPREFIX)obj PCL5SRCDIR=./pcl/pcl PCL5GENDIR=./$(BUILDDIRPREFIX)obj PCL5OBJDIR=./$(BUILDDIRPREFIX)obj PXLSRCDIR=./pcl/pxl PXLGENDIR=./$(BUILDDIRPREFIX)obj PXLOBJDIR=./$(BUILDDIRPREFIX)obj PLSRCDIR=./pcl/pl PLGENDIR=./$(BUILDDIRPREFIX)obj PLOBJDIR=./$(BUILDDIRPREFIX)obj XPSSRCDIR=./xps XPSGENDIR=./$(BUILDDIRPREFIX)obj XPSOBJDIR=./$(BUILDDIRPREFIX)obj GPDLSRCDIR=./gpdl GPDLGENDIR=./$(BUILDDIRPREFIX)obj GPDLOBJDIR=./$(BUILDDIRPREFIX)obj URFSRCDIR=./urf URFGENDIR=./$(BUILDDIRPREFIX)obj URFOBJDIR=./$(BUILDDIRPREFIX)obj CONTRIBDIR=./contrib # Do not edit the next group of lines. include $(GLSRCDIR)/version.mak DD=$(GLGENDIR)/ GLD=$(GLGENDIR)/ PSD=$(PSGENDIR)/ # ------ Generic options ------ # # Define the installation commands and target directories for # executables and files. The commands are only relevant to `make install'; # the directories also define the default search path for the # initialization files (gs_*.ps) and the fonts. INSTALL = $(GLSRCDIR)/instcopy -c INSTALL_PROGRAM = $(INSTALL) -m 755 INSTALL_DATA = $(INSTALL) -m 644 INSTALL_SHARED = prefix = /usr datarootdir = ${prefix}/share exec_prefix = /usr bindir = /usr/bin scriptdir = $(bindir) includedir = /usr/include libdir = /usr/lib64 mandir = /usr/share/man man1ext = 1 man1dir = $(mandir)/man$(man1ext) datadir = /usr/share docdir = ${datarootdir}/doc/${PACKAGE}/$(GS_DOT_VERSION) # The following must be substituted using /usr/share and /usr/lib64 # to avoid adding RPM generation paths (CUPS STR #1112) gsdir = /usr/share/ghostscript gsdatadir = $(gsdir)/$(GS_DOT_VERSION) gssharedir = /usr/lib64/ghostscript/$(GS_DOT_VERSION) gsincludedir = /usr/include/ghostscript/ exdir=$(gsdatadir)/examples GS_DOCDIR=$(docdir) # Choose whether to compile the .ps initialization files into the executable. # See gs.mak for details. COMPILE_INITS=1 # Define the default directory/ies for the runtime # initialization and font files. Separate multiple directories with a :. GS_LIB_DEFAULT=$(gsdatadir)/Resource/Init:$(gsdatadir)/lib:$(gsdatadir)/Resource/Font:$(gsdir)/fonts:/usr/share/fonts/default/ghostscript:/usr/share/fonts/default/Type1:/usr/share/fonts/default/TrueType:/usr/lib/DPS/outline/base:/usr/openwin/lib/X11/fonts/Type1:/usr/openwin/lib/X11/fonts/TrueType:/usr/share/cups/fonts # Define the default search path for Tesseract. Separate multiple directories # with a :. TESSDATA=/usr/share/tessdata # Define the default directory for cached data files # this must be a single path. GS_CACHE_DIR="~/.ghostscript/cache/" # 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 may be convenient sometimes. SEARCH_HERE_FIRST=0 # Define the name of the interpreter initialization file. # (There is no reason to change this.) GS_INIT=gs_init.ps # Choose generic configuration options. TARGET_ARCH_FILE= # -DDEBUG # includes debugging features (-Z switch) in the code. # Code runs substantially slower even if no debugging switches # are set. GENOPT= GENOPTAUX= # Choose capability options. # -DHAVE_BSWAP32 # use bswap32 intrinsic # -DHAVE_BYTESWAP_H # use byteswap.h functions # # -DHAVE_MKSTEMP # uses mkstemp instead of mktemp # This uses the more secure temporary file creation call # Enable this if it is available on your platform. # -DHAVE_FILE64 # use marked versions of the stdio FILE calls, fopen64() et al. # # -DHAVE_MKSTEMP64 # use non-standard function mkstemp64() # # -DHAVE_LIBIDN # use libidn to canonicalize Unicode passwords # # -DHAVE_SETLOCALE # call setlocale(LC_CTYPE) when running as a standalone app # -DHAVE_SSE2 # use sse2 intrinsics CAPOPT= -DHAVE_MKSTEMP -DHAVE_FILE64 -DHAVE_FSEEKO -DHAVE_MKSTEMP64 -DHAVE_FONTCONFIG -DHAVE_LIBIDN -DHAVE_SETLOCALE -DHAVE_SSE2 -DHAVE_DBUS -DHAVE_BSWAP32 -DHAVE_BYTESWAP_H -DHAVE_STRERROR -DHAVE_ISNAN -DHAVE_ISINF -DHAVE_PREAD_PWRITE=1 -DGS_RECURSIVE_MUTEXATTR=PTHREAD_MUTEX_RECURSIVE # Define the name of the executable file. GS=gs GS_SO_BASE=gs GS_SONAME=lib$(GS_SO_BASE)$(GS_SOEXT)$(DLL_EXT) GS_SONAME_MAJOR=lib$(GS_SO_BASE)$(GS_SOEXT)$(SO_LIB_VERSION_SEPARATOR)$(GS_VERSION_MAJOR)$(DLL_EXT) GS_SONAME_MAJOR_MINOR=lib$(GS_SO_BASE)$(GS_SOEXT)$(SO_LIB_VERSION_SEPARATOR)$(GS_VERSION_MAJOR)$(SO_LIB_VERSION_SEPARATOR)$(GS_VERSION_MINOR)$(DLL_EXT) PCL=gpcl6 PCL_SO_BASE=gpcl6 PCL_SONAME=lib$(PCL_SO_BASE)$(GS_SOEXT)$(DLL_EXT) PCL_SONAME_MAJOR=lib$(PCL_SO_BASE)$(GS_SOEXT)$(SO_LIB_VERSION_SEPARATOR)$(GS_VERSION_MAJOR)$(DLL_EXT) PCL_SONAME_MAJOR_MINOR=lib$(PCL_SO_BASE)$(GS_SOEXT)$(SO_LIB_VERSION_SEPARATOR)$(GS_VERSION_MAJOR)$(SO_LIB_VERSION_SEPARATOR)$(GS_VERSION_MINOR)$(DLL_EXT) XPS=gxps XPS_SO_BASE=gxps XPS_SONAME=lib$(XPS_SO_BASE)$(GS_SOEXT)$(DLL_EXT) XPS_SONAME_MAJOR=lib$(XPS_SO_BASE)$(GS_SOEXT)$(SO_LIB_VERSION_SEPARATOR)$(GS_VERSION_MAJOR)$(DLL_EXT) XPS_SONAME_MAJOR_MINOR=lib$(XPS_SO_BASE)$(GS_SOEXT)$(SO_LIB_VERSION_SEPARATOR)$(GS_VERSION_MAJOR)$(SO_LIB_VERSION_SEPARATOR)$(GS_VERSION_MINOR)$(DLL_EXT) GPDL=gpdl GPDL_SO_BASE=gpdl GPDL_SONAME=lib$(GPDL_SO_BASE)$(GS_SOEXT)$(DLL_EXT) GPDL_SONAME_MAJOR=lib$(GPDL_SO_BASE)$(GS_SOEXT)$(SO_LIB_VERSION_SEPARATOR)$(GS_VERSION_MAJOR)$(DLL_EXT) GPDL_SONAME_MAJOR_MINOR=lib$(GPDL_SO_BASE)$(GS_SOEXT)$(SO_LIB_VERSION_SEPARATOR)$(GS_VERSION_MAJOR)$(SO_LIB_VERSION_SEPARATOR)$(GS_VERSION_MINOR)$(DLL_EXT) XE= XEAUX= PCL_TARGET=gpcl6 XPS_TARGET=gxps GPDL_TARGET=gpdl PCL_XPS_PDL_TARGETS=$(PCL_TARGET) $(XPS_TARGET) $(GPDL_TARGET) # Define the directories for debugging and profiling binaries, relative to # the standard binaries. DEBUGDIRPREFIX=debug MEMENTODIRPREFIX=mem SANITIZEDIRPREFIX=san PGDIRPREFIX=pg # Are we include the CAL library? WITH_CAL=0 CALSRCDIR=./cal CAL_CFLAGS= CAL_SSE4_2_CFLAGS= CAL_AVX2_CFLAGS= CAL_NEON_CFLAGS= # Location of extract library (can be empty). EXTRACT_DIR=extract # Define whether to compile in the FreeType library, and if so, where # the source tree is location. Otherwise, what library name to use # in linking to a shared implementation. FT_BRIDGE=1 SHARE_FT=0 FTSRCDIR=./freetype FT_CFLAGS=-I./freetype/include -DSHARE_FT=0 FT_LIBS= FT_LIB_PATH= FT_CONFIG_SYSTEM_ZLIB= # Define whether to compile in UFST. # FAPI/UFST depends on UFST_BRIDGE being undefined - hence the construct below. # (i.e. use "UFST_BRIDGE=1" or *not to define UFST_BRIDGE to anything*) # As UFST is not used for fonts embedded in input files, we should still have # Freetype enabled, above. UFST_ROOT= UFST_LIB_EXT= UFST_ROMFS_ARGS?=-b \ -P $(UFST_ROOT)/fontdata/mtfonts/pcl45/mt3/ -d fontdata/mtfonts/pcl45/mt3/ pcl___xj.fco plug__xi.fco wd____xh.fco \ -P $(UFST_ROOT)/fontdata/mtfonts/pclps2/mt3/ -d fontdata/mtfonts/pclps2/mt3/ pclp2_xj.fco \ -c -P $(PSSRCDIR)/../lib/ -d Resource/Init/ FAPIconfig-FCO UFSTROMFONTDIR=\"%rom%fontdata/\" UFSTDISCFONTDIR?=\"$(UFST_ROOT)/fontdata/\" UFST_CFLAGS= # 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 # Note: if a shared library is used, it may not contain the # D_MAX_BLOCKS_IN_MCU patch, and thus may not be able to read # some older JPEG streams that violate the standard. If the JPEG # library built from local sources, the patch will be applied. SHARE_JPEG=0 JPEG_NAME=jpeg # 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 png.mak for more information. SHARE_LIBPNG=0 PNGSRCDIR=./libpng LIBPNG_NAME=png # libtiff SHARE_LIBTIFF=0 TIFFSRCDIR=./tiff TIFFCONFDIR=tiff-config TIFFPLATFORM=unix TIFFCONFIG_SUFFIX= LIBTIFF_NAME=tiff TIFF_CFLAGS=-Wno-write-strings -Wno-misleading-indentation -Wno-undef -DJPEG_LIB_MK1_OR_12BIT=0 ENABLE_TIFF=$(D_)TIFF_INCLUDED$(_D) # Define the directory where the zlib sources are stored. # See zlib.mak for more information. SHARE_ZLIB=0 ZSRCDIR=./zlib #ZLIB_NAME=gz ZLIB_NAME=z ZLIB_CFLAGS=-Wno-write-strings # Choose shared or compiled in libjbig2dec and source location # JBIG2_LIB=jbig2dec JBIG2_LIB=jbig2dec SHARE_JBIG2=0 JBIG2SRCDIR=./jbig2dec JBIG2_CFLAGS=-DHAVE_STDINT_H=1 # Choose the library to use for (JPXDecode support) # whether to link to an external build or compile in from source # and source location and configuration flags for compiling in JPX_LIB=openjpeg SHARE_JPX=0 JPXSRCDIR=./openjpeg JPX_CFLAGS=-DSHARE_JPX=$(SHARE_JPX) -Wno-attributes -DOPJ_STATIC -DMUTEX_pthread=0 -DUSE_JPIP -DUSE_OPENJPEG_JP2 -DOPJ_HAVE_STDINT_H=1 -DOPJ_HAVE_INTTYPES_H=1 -DOPJ_HAVE_FSEEKO=1 # options for lcms color management library SHARE_LCMS=0 LCMS2SRCDIR=src LCMS2MTSRCDIR=./lcms2mt LCMS2_CFLAGS=-DSHARE_LCMS=$(SHARE_LCMS) # Which CMS are we using? # Options are currently lcms or lcms2 WHICH_CMS=lcms2mt # Do we have URF support? ENABLE_URF= GPDL_URF_TOP_OBJ= URF_INCLUDE= URF_DEV= SURFX_H= EXPATSRCDIR=./expat EXPAT_CFLAGS=-DHAVE_MEMMOVE -DBYTEORDER=1234 EXPATGENDIR=$(GLGENDIR) EXPATOBJDIR=$(GLOBJDIR) EXPATINCDIR = $(EXPATSRCDIR)$(D)lib SHARE_EXPAT=0 JPEGXR_SRCDIR=./jpegxr SHARE_JPEGXR=0 JPEGXR_GENDIR=$(GLGENDIR) JPEGXR_OBJDIR=$(GLOBJDIR) # Define the directory where the ijs source is stored, # and the process forking method to use for the server. # See ijs.mak for more information. SHARE_IJS=0 IJS_NAME= IJSSRCDIR=./ijs IJSEXECTYPE=unix # Define install location for 'cups' device/filter support CUPSLIBS= cups CUPSLIBDIRS= CUPSSERVERBIN=/usr/lib/cups CUPSSERVERROOT=/etc/cups CUPSDATA=/usr/share/cups CUPSPDFTORASTER=1 SHARE_LCUPS=1 LCUPS_NAME=cups LCUPSSRCDIR=./cups LCUPSBUILDTYPE= CUPS_CC=$(CC) SHARE_LCUPSI=1 LCUPSI_NAME=cupsimage LCUPSISRCDIR=./cups CUPS_CC=$(CC) CUPSCFLAGS= -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DHAVE_RESTRICT=1 -DUSE_LIBPAPER -DSHARE_LCUPS=$(SHARE_LCUPS) -DSHARE_LCUPSI=$(SHARE_LCUPSI) # Define how to build the library archives. (These are not used in any # standard configuration.) AR=ar ARFLAGS=qc RANLIB=ranlib STRIP_XE=/usr/bin/strip STRIP_XE_OPTS= # ------ Platform-specific options ------ # # Define the name of the C compiler (target and host (AUX)) CC=gcc CCAUX=gcc # Define the name of the linker for the final link step. # Normally this is the same as the C compiler. CCLD=$(CC) CCAUXLD=$(CCAUX) # Define the default gcc flags. GCFLAGS= -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -fno-strict-aliasing -Werror=declaration-after-statement -fno-builtin -fno-common -Werror=return-type -DHAVE_STDINT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIBDL=1 -DGX_COLOR_INDEX_TYPE="unsigned long long" -D__USE_UNIX98=1 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DHAVE_RESTRICT=1 -DUSE_LIBPAPER -fno-strict-aliasing -DHAVE_POPEN_PROTO=1 GCFLAGSAUX= -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -fno-strict-aliasing -Werror=declaration-after-statement -fno-builtin -fno-common -Werror=return-type -DHAVE_STDINT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIBDL=1 -DGX_COLOR_INDEX_TYPE="unsigned long long" -D__USE_UNIX98=1 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DHAVE_RESTRICT=1 -fno-strict-aliasing -DHAVE_POPEN_PROTO=1 # Define the added flags for standard, debugging, profiling # and shared object builds. CFLAGS_STANDARD= -O2 -DNDEBUG CFLAGS_DEBUG= -gdwarf-2 -g3 -O0 CFLAGS_PROFILE=-pg -O2 -DNDEBUG CFLAGS_SO=-fPIC CFLAGSAUX_STANDARD=$(CFLAGS_STANDARD) CFLAGSAUX_DEBUG=$(CFLAGS_DEBUG) CFLAGSAUX_PROFILE=-pg $(CFLAGS_STANDARD) # Define the extra flags added for address sanitizer builds CFLAGS_SANITIZE='****************ADDRESS_SANITIZER_NOT_SUPPORTED*********************' LDFLAGS_SANITIZE=$(CFLAGS_SANITIZE) # Define the other compilation flags. Add at most one of the following: # -DBSD4_2 for 4.2bsd systems. # -DSYSV for System V or DG/UX. # -DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before, # or any System III Unix, or System V release 3-or-older Unix. # -DSVR4 -DSVR4_0 (not -DSYSV) for System V release 4.0. # -DSVR4 (not -DSYSV) for System V release 4.2 (or later) and Solaris 2. # XCFLAGS can be set from the command line. # We don't include -ansi, because this gets in the way of the platform- # specific stuff that typically needs; nevertheless, we expect # gcc to accept ANSI-style function prototypes and function definitions. # CFLAGS from autoconf AC_CFLAGS= # fontconfig flags, used by unix-aux.mak FONTCONFIG_CFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DHAVE_RESTRICT=1 -DUSE_LIBPAPER -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 FONTCONFIG_LIBS=-lfontconfig -lfreetype # DBus flags, used by cups.mak DBUS_CFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DHAVE_RESTRICT=1 -DUSE_LIBPAPER -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include DBUS_LIBS=-ldbus-1 # defines from autoconf; note that we don't use all of these at present. ACDEFS=-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MALLOC_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STRUCT_STAT_ST_BLOCKS=1 -DHAVE_ST_BLOCKS=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DHAVE_LIBM=1 -DHAVE_PREAD=1 -DHAVE_PWRITE=1 -DHAVE_DECL_PWRITE=1 -DHAVE_DECL_PREAD=1 -DUSE_LIBPAPER=1 -DHAVE_FSEEKO=1 -DHAVE_MEMALIGN=1 -DHAVE_LIBX11=1 -DHAVE_LIBXEXT=1 -DHAVE_MKSTEMP=1 -DHAVE_FOPEN64=1 -DHAVE_FSEEKO=1 -DHAVE_MKSTEMP64=1 -DHAVE_SETLOCALE=1 -DHAVE_STRERROR=1 -DHAVE_ISNAN=1 -DHAVE_ISINF=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DRETSIGTYPE=void -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_BZERO=1 -DHAVE_DUP2=1 -DHAVE_FLOOR=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMCHR=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_MKFIFO=1 -DHAVE_MODF=1 -DHAVE_POW=1 -DHAVE_PUTENV=1 -DHAVE_RINT=1 -DHAVE_SETENV=1 -DHAVE_SQRT=1 -DHAVE_STRCHR=1 -DHAVE_STRRCHR=1 -DHAVE_STRSPN=1 -DHAVE_STRSTR=1 -DHAVE_STRNLEN=1 CFLAGS_VISIBILITY= -fvisibility=hidden CFLAGS=$(CFLAGS_STANDARD) $(GCFLAGS) $(AC_CFLAGS) $(XCFLAGS) CFLAGSAUX=$(CFLAGSAUX_STANDARD) $(GCFLAGSAUX) $(XCFLAGSAUX) # Define platform flags for ld. # SunOS 4.n may need -Bstatic. # Solaris 2.6 (and possibly some other versions) with any of the SHARE_ # parameters set to 1 may need # -R /usr/local/xxx/lib:/usr/local/lib # giving the full path names of the shared library directories. # XLDFLAGS can be set from the command line. # AC_LDFLAGS from autoconf AC_LDFLAGS= LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld $(AC_LDFLAGS) $(XLDFLAGS) LDFLAGSAUX=$(LDFLAGS) GS_LDFLAGS=$(LDFLAGS) PCL_LDFLAGS=$(LDFLAGS) XPS_LDFLAGS=$(LDFLAGS) PDL_LDFLAGS=$(LDFLAGS) GS_LDFLAGS_SO=-shared -Wl,$(LD_SET_DT_SONAME)$(LDFLAGS_SO_PREFIX)$(GS_SONAME_MAJOR) PCL_LDFLAGS_SO=-shared -Wl,$(LD_SET_DT_SONAME)$(LDFLAGS_SO_PREFIX)$(PCL_SONAME_MAJOR) XPS_LDFLAGS_SO=-shared -Wl,$(LD_SET_DT_SONAME)$(LDFLAGS_SO_PREFIX)$(XPS_SONAME_MAJOR) PDL_LDFLAGS_SO=-shared -Wl,$(LD_SET_DT_SONAME)$(LDFLAGS_SO_PREFIX)$(GPDL_SONAME_MAJOR) # Define any extra libraries to link into the executable. # ISC Unix 2.2 wants -linet. # SCO Unix needs -lsocket if you aren't including the X11 driver. # SVR4 may need -lnsl. # Solaris may need -lnsl -lsocket -lposix4. # (Libraries required by individual drivers are handled automatically.) EXTRALIBS=$(XTRALIBS) -lm -ldl -lidn -lpaper -rdynamic -lfontconfig -lfreetype AUXEXTRALIBS=$(EXTRALIBS) # Define the standard libraries to search at the end of linking. # Most platforms require -lpthread for the POSIX threads library; # on FreeBSD, change -lpthread to -lc_r; BSDI and perhaps some others # include pthreads in libc and don't require any additional library. # All reasonable platforms require -lm, but Rhapsody and perhaps one or # two others fold libm into libc and don't require any additional library. STDLIBS=-lpthread -lm -lstdc++ # Define the include switch(es) for the X11 header files. # This can be null if handled in some other way (e.g., the files are # in /usr/include, or the directory is supplied by an environment variable) XINCLUDE= # Define the directory/ies and library names for the X11 library files. # XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH # (dynamic libraries on SVR4) and should not include -L. # Newer SVR4 systems can use -R in XLIBDIRS rather than setting XLIBDIR. # Both can be null if these files are in the default linker search path. # Solaris and other SVR4 systems with dynamic linking probably want #XLIBDIRS=-L/usr/openwin/lib -R/usr/openwin/lib # X11R6 (on any platform) may need #XLIBS=Xt SM ICE Xext X11 # We use the autoconf macro AC_PATH_XTRA which defines X_LIBS with # the -L (or whatever). It also defines X_PRE_LIBS and X_EXTRA_LIBS # all three of which are stripped and slotted into XLIBS below. # Usually however, all but X_LIBS are empty on modern platforms. XLIBDIRS= XLIBDIR= #XLIBS=Xt Xext X11 XLIBS= # Define the .dev module that implements thread and synchronization # primitives for this platform. # If POSIX sync primitives are used, also change the STDLIBS to include # the pthread library. Otherwise use SYNC=nosync #SYNC=posync #SYNC=nosync SYNC=posync # programs we use RM=rm -f # ------ Dynamic loader options ------- # SOC_CFLAGS = -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/libxml2 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread SOC_LIBS = -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 SOC_LOADER = dxmain # on virtually every Unix-a-like system, this is "so", # but Apple just had to be different, so it's now set # by configure SO_LIB_EXT=.so DLL_EXT= SO_LIB_VERSION_SEPARATOR=. #CAIRO_CFLAGS = @CAIRO_CFLAGS@ #CAIRO_LIBS = @CAIRO_LIBS@ # AUX Tools flags MKROMFS_FLAGS= # ------ Devices and features ------ # # Choose the language feature(s) to include. See gs.mak for details. # if it's included, $(PSD)gs_pdfwr.dev should always be one of the last in the list PSI_FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)epsf.dev $(PSD)ttfont.dev \ $(PSD)utf8.dev $(PSD)fapi_ps.dev $(PSD)jpx.dev $(PSD)jbig2.dev $(PSD)gs_pdfwr.dev PCL_FEATURE_DEVS=$(PLOBJDIR)/pl.dev $(PLOBJDIR)/pjl.dev $(PXLOBJDIR)/pxl.dev $(PCL5OBJDIR)/pcl5c.dev \ $(PCL5OBJDIR)/hpgl2c.dev XPS_FEATURE_DEVS=$(XPSOBJDIR)/pl.dev $(XPSOBJDIR)/xps.dev FEATURE_DEVS=$(GLD)pipe.dev $(GLD)gsnogc.dev $(GLD)htxlib.dev $(GLD)psl3lib.dev $(GLD)psl2lib.dev \ $(GLD)dps2lib.dev $(GLD)path1lib.dev $(GLD)patlib.dev $(GLD)psl2cs.dev $(GLD)rld.dev $(GLD)gxfapiu$(UFST_BRIDGE).dev\ $(GLD)ttflib.dev $(GLD)cielib.dev $(GLD)pipe.dev $(GLD)htxlib.dev $(GLD)sdct.dev $(GLD)libpng.dev\ $(GLD)seprlib.dev $(GLD)translib.dev $(GLD)cidlib.dev $(GLD)psf0lib.dev $(GLD)psf1lib.dev\ $(GLD)psf2lib.dev $(GLD)lzwd.dev $(GLD)sicclib.dev \ $(GLD)sjbig2.dev $(GLD)sjpx.dev $(GLD)ramfs.dev \ $(GLD)pwgd.dev $(GLD)siscale.dev $(URF_DEV) #FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev #FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)ttfont.dev $(GLD)pipe.dev # The following is strictly for testing. FEATURE_DEVS_ALL=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)ttfont.dev $(PSD)double.dev $(PSD)trapping.dev $(PSD)stocht.dev $(GLD)pipe.dev $(GLD)gsnogc.dev $(GLD)htxlib.dev $(PSD)jbig2.dev $(PSD)jpx.dev $(PSD)utf8.dev $(GLD)ramfs.dev #FEATURE_DEVS=$(FEATURE_DEVS_ALL) # The list of resources to be included in the %rom% file system. # This is in the top makefile since the file descriptors are platform specific RESOURCE_LIST=Resource/CMap/ Resource/ColorSpace/ Resource/Decoding/ Resource/Font/ Resource/ProcSet/ Resource/IdiomSet/ Resource/CIDFont/ # Choose whether to store band lists on files or in memory. # The choices are 'file' or 'memory'. BAND_LIST_STORAGE=file # Choose which compression method to use when storing band lists in memory. # The choices are 'lzw' or 'zlib'. BAND_LIST_COMPRESSOR=zlib # Choose the implementation of file I/O: 'stdio', 'fd', or 'both'. # See gs.mak and sfxfd.c for more details. FILE_IMPLEMENTATION=stdio # List of default devices, in order of priority. They need not be # present in the actual build. GS_DEV_DEFAULT="x11alpha bbox" # Fallback default device. This is set to 'display' by # unix-dll.mak when building a shared object. DISPLAY_DEV=$(DD)bbox.dev # Choose the device(s) to include. See devs.mak for details, # devs.mak and contrib.mak for the list of available devices. #DEVICE_DEVS=$(DISPLAY_DEV) $(DD)x11.dev $(DD)x11alpha.dev $(DD)x11cmyk.dev $(DD)x11gray2.dev $(DD)x11gray4.dev $(DD)x11mono.dev #DEVICE_DEVS=$(DISPLAY_DEV) @X11DEVS@ #DEVICE_DEVS=$(DISPLAY_DEV) @X_DEVS@ #DEVICE_DEVS1=$(DD)bmpmono.dev $(DD)bmpgray.dev $(DD)bmpsep1.dev $(DD)bmpsep8.dev $(DD)bmp16.dev $(DD)bmp256.dev $(DD)bmp16m.dev $(DD)bmp32b.dev #DEVICE_DEVS2=#$(DD)gdevjbig2.dev $(DD)gdevjpx.dev #$(DD)rinkj.dev #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 $(DD)lj5mono.dev $(DD)lj5gray.dev #DEVICE_DEVS4=$(DD)cdeskjet.dev $(DD)cdjcolor.dev $(DD)cdjmono.dev $(DD)cdj550.dev $(DD)pj.dev $(DD)pjxl.dev $(DD)pjxl300.dev #DEVICE_DEVS5=$(DD)uniprint.dev @IJSDEVS@ #DEVICE_DEVS6=$(DD)bj10e.dev $(DD)bj200.dev $(DD)bjc600.dev $(DD)bjc800.dev #DEVICE_DEVS7=$(DD)faxg3.dev $(DD)faxg32d.dev $(DD)faxg4.dev $(DD)cfax.dev #DEVICE_DEVS8=$(DD)pcxmono.dev $(DD)pcxgray.dev $(DD)pcx16.dev $(DD)pcx256.dev $(DD)pcx24b.dev $(DD)pcxcmyk.dev #DEVICE_DEVS9=$(DD)pbm.dev $(DD)pbmraw.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm.dev $(DD)pgnmraw.dev $(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev $(DD)pkm.dev $(DD)pkmraw.dev $(DD)pksm.dev $(DD)pksmraw.dev #DEVICE_DEVS10=$(DD)tiffcrle.dev $(DD)tiffg3.dev $(DD)tiffg32d.dev $(DD)tiffg4.dev $(DD)tifflzw.dev $(DD)tiffpack.dev #DEVICE_DEVS11=$(DD)tiff12nc.dev $(DD)tiff24nc.dev $(DD)tiff48nc.dev $(DD)tiffgray.dev $(DD)tiff32nc.dev $(DD)tiff64nc $(DD)tiffsep.dev $(DD)tiffsep1.dev #DEVICE_DEVS12=$(DD)bit.dev $(DD)bitrgb.dev $(DD)bitcmyk.dev #DEVICE_DEVS13=$(DD)pngmono.dev $(DD)pnggray.dev $(DD)png16.dev $(DD)png256.dev $(DD)png16m.dev #DEVICE_DEVS13=@PNGDEVS@ #DEVICE_DEVS14=$(DD)jpeg.dev $(DD)jpeggray.dev #DEVICE_DEVS15=$(DD)pdfwrite.dev $(DD)ps2write.dev $(DD)eps2write.dev $(DD)txtwrite.dev $(DD)pxlmono.dev $(DD)pxlcolor.dev #DEVICE_DEVS16=$(DD)bbox.dev #DEVICE_DEVS17= #DEVICE_DEVS18= #DEVICE_DEVS19= #DEVICE_DEVS20=$(DD)cljet5.dev $(DD)cljet5c.dev #DEVICE_DEVS21=$(DD)spotcmyk.dev $(DD)devicen.dev $(DD)xcf.dev $(DD)psdcmyk.dev $(DD)psdrgb.dev $(DD)psdcmykog.dev $(DD)fpng.dev DEVICE_DEVS=$(DISPLAY_DEV) DEVICE_DEVS1=$(DD)PCLm.dev $(DD)bbox.dev $(DD)bit.dev $(DD)bitcmyk.dev $(DD)bitrgb.dev $(DD)bitrgbtags.dev $(DD)bmp16.dev $(DD)bmp16m.dev $(DD)bmp256.dev $(DD)bmp32b.dev $(DD)bmpgray.dev $(DD)bmpmono.dev $(DD)bmpsep1.dev $(DD)bmpsep8.dev $(DD)ccr.dev $(DD)cfax.dev $(DD)cif.dev $(DD)devicen.dev $(DD)dfaxhigh.dev $(DD)dfaxlow.dev $(DD)display.dev $(DD)docxwrite.dev $(DD)eps2write.dev $(DD)fax.dev $(DD)faxg3.dev $(DD)faxg32d.dev $(DD)faxg4.dev $(DD)fpng.dev $(DD)inferno.dev $(DD)ink_cov.dev $(DD)inkcov.dev $(DD)jpeg.dev $(DD)jpegcmyk.dev $(DD)jpeggray.dev $(DD)mgr4.dev $(DD)mgr8.dev $(DD)mgrgray2.dev $(DD)mgrgray4.dev $(DD)mgrgray8.dev $(DD)mgrmono.dev $(DD)miff24.dev $(DD)pam.dev $(DD)pamcmyk32.dev $(DD)pamcmyk4.dev $(DD)pbm.dev $(DD)pbmraw.dev $(DD)pcx16.dev $(DD)pcx24b.dev $(DD)pcx256.dev $(DD)pcxcmyk.dev $(DD)pcxgray.dev $(DD)pcxmono.dev $(DD)pdfimage24.dev $(DD)pdfimage32.dev $(DD)pdfimage8.dev $(DD)pdfwrite.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm.dev $(DD)pgnmraw.dev $(DD)pkm.dev $(DD)pkmraw.dev $(DD)pksm.dev $(DD)pksmraw.dev $(DD)plan.dev $(DD)plan9bm.dev $(DD)planc.dev $(DD)plang.dev $(DD)plank.dev $(DD)planm.dev $(DD)plib.dev $(DD)plibc.dev $(DD)plibg.dev $(DD)plibk.dev $(DD)plibm.dev $(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev $(DD)ps2write.dev $(DD)psdcmyk.dev $(DD)psdcmyk16.dev $(DD)psdcmykog.dev $(DD)psdf.dev $(DD)psdrgb.dev $(DD)psdrgb16.dev $(DD)spotcmyk.dev $(DD)tfax.dev $(DD)tiff12nc.dev $(DD)tiff24nc.dev $(DD)tiff32nc.dev $(DD)tiff48nc.dev $(DD)tiff64nc.dev $(DD)tiffcrle.dev $(DD)tiffg3.dev $(DD)tiffg32d.dev $(DD)tiffg4.dev $(DD)tiffgray.dev $(DD)tifflzw.dev $(DD)tiffpack.dev $(DD)tiffs.dev $(DD)tiffscaled.dev $(DD)tiffscaled24.dev $(DD)tiffscaled32.dev $(DD)tiffscaled4.dev $(DD)tiffscaled8.dev $(DD)tiffsep.dev $(DD)tiffsep1.dev $(DD)txtwrite.dev $(DD)xcf.dev $(DD)xpswrite.dev DEVICE_DEVS2=$(DD)alc1900.dev $(DD)alc2000.dev $(DD)alc4000.dev $(DD)alc4100.dev $(DD)alc8500.dev $(DD)alc8600.dev $(DD)alc9100.dev $(DD)ap3250.dev $(DD)appledmp.dev $(DD)atx23.dev $(DD)atx24.dev $(DD)atx38.dev $(DD)bj10e.dev $(DD)bj10v.dev $(DD)bj10vh.dev $(DD)bj200.dev $(DD)bjc600.dev $(DD)bjc800.dev $(DD)bjc880j.dev $(DD)bjccmyk.dev $(DD)bjccolor.dev $(DD)bjcgray.dev $(DD)bjcmono.dev $(DD)cdeskjet.dev $(DD)cdj1600.dev $(DD)cdj500.dev $(DD)cdj550.dev $(DD)cdj670.dev $(DD)cdj850.dev $(DD)cdj880.dev $(DD)cdj890.dev $(DD)cdj970.dev $(DD)cdjcolor.dev $(DD)cdjmono.dev $(DD)cdnj500.dev $(DD)chp2200.dev $(DD)cljet5.dev $(DD)cljet5c.dev $(DD)cljet5pr.dev $(DD)coslw2p.dev $(DD)coslwxl.dev $(DD)declj250.dev $(DD)deskjet.dev $(DD)dj505j.dev $(DD)djet500.dev $(DD)djet500c.dev $(DD)dl2100.dev $(DD)dnj650c.dev $(DD)epl2050.dev $(DD)epl2050p.dev $(DD)epl2120.dev $(DD)epl2500.dev $(DD)epl2750.dev $(DD)epl5800.dev $(DD)epl5900.dev $(DD)epl6100.dev $(DD)epl6200.dev $(DD)eplcolor.dev $(DD)eplmono.dev $(DD)eps9high.dev $(DD)eps9mid.dev $(DD)epson.dev $(DD)epsonc.dev $(DD)escp.dev $(DD)escpage.dev $(DD)fmlbp.dev $(DD)fmpr.dev $(DD)fs600.dev $(DD)gdi.dev $(DD)hl1240.dev $(DD)hl1250.dev $(DD)hl7x0.dev $(DD)hpdj1120c.dev $(DD)hpdj310.dev $(DD)hpdj320.dev $(DD)hpdj340.dev $(DD)hpdj400.dev $(DD)hpdj500.dev $(DD)hpdj500c.dev $(DD)hpdj510.dev $(DD)hpdj520.dev $(DD)hpdj540.dev $(DD)hpdj550c.dev $(DD)hpdj560c.dev $(DD)hpdj600.dev $(DD)hpdj660c.dev $(DD)hpdj670c.dev $(DD)hpdj680c.dev $(DD)hpdj690c.dev $(DD)hpdj850c.dev $(DD)hpdj855c.dev $(DD)hpdj870c.dev $(DD)hpdj890c.dev $(DD)hpdjplus.dev $(DD)hpdjportable.dev $(DD)ibmpro.dev $(DD)imagen.dev $(DD)itk24i.dev $(DD)itk38.dev $(DD)iwhi.dev $(DD)iwlo.dev $(DD)iwlq.dev $(DD)jetp3852.dev $(DD)jj100.dev $(DD)la50.dev $(DD)la70.dev $(DD)la75.dev $(DD)la75plus.dev $(DD)laserjet.dev $(DD)lbp310.dev $(DD)lbp320.dev $(DD)lbp8.dev $(DD)lex2050.dev $(DD)lex3200.dev $(DD)lex5700.dev $(DD)lex7000.dev $(DD)lips2p.dev $(DD)lips3.dev $(DD)lips4.dev $(DD)lips4v.dev $(DD)lj250.dev $(DD)lj3100sw.dev $(DD)lj4dith.dev $(DD)lj4dithp.dev $(DD)lj5gray.dev $(DD)lj5mono.dev $(DD)ljet2p.dev $(DD)ljet3.dev $(DD)ljet3d.dev $(DD)ljet4.dev $(DD)ljet4d.dev $(DD)ljet4pjl.dev $(DD)ljetplus.dev $(DD)ln03.dev $(DD)lp1800.dev $(DD)lp1900.dev $(DD)lp2000.dev $(DD)lp2200.dev $(DD)lp2400.dev $(DD)lp2500.dev $(DD)lp2563.dev $(DD)lp3000c.dev $(DD)lp7500.dev $(DD)lp7700.dev $(DD)lp7900.dev $(DD)lp8000.dev $(DD)lp8000c.dev $(DD)lp8100.dev $(DD)lp8200c.dev $(DD)lp8300c.dev $(DD)lp8300f.dev $(DD)lp8400f.dev $(DD)lp8500c.dev $(DD)lp8600.dev $(DD)lp8600f.dev $(DD)lp8700.dev $(DD)lp8800c.dev $(DD)lp8900.dev $(DD)lp9000b.dev $(DD)lp9000c.dev $(DD)lp9100.dev $(DD)lp9200b.dev $(DD)lp9200c.dev $(DD)lp9300.dev $(DD)lp9400.dev $(DD)lp9500c.dev $(DD)lp9600.dev $(DD)lp9600s.dev $(DD)lp9800c.dev $(DD)lps4500.dev $(DD)lps6500.dev $(DD)lq850.dev $(DD)lxm3200.dev $(DD)lxm5700m.dev $(DD)m8510.dev $(DD)md1xMono.dev $(DD)md2k.dev $(DD)md50Eco.dev $(DD)md50Mono.dev $(DD)md5k.dev $(DD)mj500c.dev $(DD)mj6000c.dev $(DD)mj700v2c.dev $(DD)mj8000c.dev $(DD)ml600.dev $(DD)necp6.dev $(DD)npdl.dev $(DD)oce9050.dev $(DD)oki182.dev $(DD)oki4w.dev $(DD)okiibm.dev $(DD)oprp.dev $(DD)opvp.dev $(DD)paintjet.dev $(DD)pcl3.dev $(DD)photoex.dev $(DD)picty180.dev $(DD)pj.dev $(DD)pjetxl.dev $(DD)pjxl.dev $(DD)pjxl300.dev $(DD)pr1000.dev $(DD)pr1000_4.dev $(DD)pr150.dev $(DD)pr201.dev $(DD)pxlcolor.dev $(DD)pxlmono.dev $(DD)r4081.dev $(DD)rinkj.dev $(DD)rpdl.dev $(DD)samsunggdi.dev $(DD)sj48.dev $(DD)st800.dev $(DD)stcolor.dev $(DD)t4693d2.dev $(DD)t4693d4.dev $(DD)t4693d8.dev $(DD)tek4696.dev $(DD)uniprint.dev $(DD)xes.dev DEVICE_DEVS3=$(DD)cups.dev $(DD)pwgraster.dev DEVICE_DEVS4=$(DD)ijs.dev DEVICE_DEVS5= DEVICE_DEVS6=$(DD)png16.dev $(DD)png16m.dev $(DD)png256.dev $(DD)png48.dev $(DD)pngalpha.dev $(DD)pnggray.dev $(DD)pngmono.dev $(DD)pngmonod.dev DEVICE_DEVS7= DEVICE_DEVS8= DEVICE_DEVS9= DEVICE_DEVS10= DEVICE_DEVS11= DEVICE_DEVS12= DEVICE_DEVS13= DEVICE_DEVS14= DEVICE_DEVS15= DEVICE_DEVS16=$(DD)ocr.dev $(DD)hocr.dev $(DD)pdfocr8.dev $(DD)pdfocr24.dev $(DD)pdfocr32.dev DEVICE_DEVS17= DEVICE_DEVS18= DEVICE_DEVS19= DEVICE_DEVS20= DEVICE_DEVS21= # Shared library target to build. GS_SHARED_OBJS= # ---------------------------- End of options --------------------------- # # Define the name of the partial makefile that specifies options -- # used in dependencies. MAKEFILE=Makefile TOP_MAKEFILES=$(MAKEFILE) $(GLSRCDIR)/unixhead.mak # for use in unix-dll.mak and unix-end.mak # if you rename the Makefile, you *must* also set this to the new name SUB_MAKE_OPTION=-f $(MAKEFILE) # Define the auxiliary program dependency. We don't use this. AK= # Define the compilation rules and flags. CCFLAGS=$(GENOPT) $(CAPOPT) $(CFLAGS) CC_=$(CC) $(CCFLAGS) CC_LEAF=$(CC_) CCFLAGSAUX=$(GENOPTAUX) $(CAPOPTAUX) $(CFLAGSAUX) CCAUX_=$(CCAUX) $(CCFLAGSAUX) # note gcc can't use -fomit-frame-pointer with -pg. CC_LEAF_PG=$(CC_) # These are the specific warnings we have to turn off to compile those # specific few files that need this. We may turn off others in the future. CC_NO_WARN=$(CC_) CCAUX_NO_WARN=$(CCAUX_) CC_SHARED=$(CC_) -fPIC LD_SET_DT_SONAME=-soname= # MAKEDIRS = the dependency on ALL object files (must be the last one on # the line. Requires GNU make to make it an 'order only' dependency # MAKEDIRSTOP = the topmost dependency - set this if you can't set MAKEDIRS MAKEDIRS=| directories MAKEDIRSTOP= OCR_VERSION=1 LEPTONICADIR=leptonica TESSAVX=-mavx TESSAVX2=-mavx2 TESSFMA=-mfma TESSSSE41=-msse4.1 TESSNEON= TESSCXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=c++17 -DHAVE_SSE4_1 -DHAVE_AVX -DHAVE_AVX2 -DHAVE_FMA TESSERACTDIR=tesseract # Since C++ is only used for tesseract, set the compiler here CXX=g++ # ---------------- End of platform-specific section ---------------- # INSTALL_CONTRIB=install-contrib-extras include $(GLSRCDIR)/unixhead.mak include $(GLSRCDIR)/gs.mak # *romfs.mak must precede lib.mak include $(PLSRCDIR)$(D)plromfs.mak # plromfs.mak include $(XPSSRCDIR)$(D)xpsromfs.mak # xpsromfs.mak include $(PSSRCDIR)/psromfs.mak include $(GLSRCDIR)/lib.mak include $(PSSRCDIR)/int.mak include $(PLSRCDIR)$(D)pl.mak # pl.mak include $(PCL5SRCDIR)$(D)pcl.mak # pcl.mak include $(PCL5SRCDIR)$(D)pcl_top.mak # pcl_top.mak include $(PXLSRCDIR)$(D)pxl.mak # pxl.mak include $(XPSSRCDIR)$(D)xps.mak # xps.mak include $(GLSRCDIR)/jpeg.mak include $(GPDLSRCDIR)$(D)gpdl.mak # gpdl.mak include $(GLSRCDIR)/freetype.mak include $(GLSRCDIR)$(D)stub.mak # zlib.mak must precede png.mak include $(GLSRCDIR)/zlib.mak include $(GLSRCDIR)/png.mak include $(GLSRCDIR)/tiff.mak include $(GLSRCDIR)/jbig2.mak include $(GLSRCDIR)/openjpeg.mak include $(GLSRCDIR)/cal.mak include base/leptonica.mak include base/tesseract.mak include $(GLSRCDIR)/ocr.mak include $(GLSRCDIR)/jpegxr.mak include $(GLSRCDIR)/expat.mak include $(DEVSRCDIR)/extract.mak include $(GLSRCDIR)/$(WHICH_CMS).mak include $(GLSRCDIR)/ijs.mak include $(GLSRCDIR)/lcups.mak include $(GLSRCDIR)/lcupsi.mak include $(DEVSRCDIR)/devs.mak include $(DEVSRCDIR)/dcontrib.mak include $(GLSRCDIR)/unix-aux.mak include $(GLSRCDIR)/unixlink.mak include $(GLSRCDIR)/unix-dll.mak include $(GLSRCDIR)/unix-end.mak include $(GLSRCDIR)/unixinst.mak include ./contrib/contrib.mak include ./cups/cups.mak # Clean up after the autotools scripts distclean : clean config-clean soclean pgclean debugclean mementoclean -$(RM_) -r $(BINDIR) $(GLOBJDIR) $(PSOBJDIR) $(AUXDIR) -$(RM_) -r autom4te.cache -$(RM_) config.log config.status configaux.log arch-config/arch_autoconf.h -$(RM_) -r $(TIFFCONFDIR) -$(RM_) Makefile # a debug-clean target for consistency with the ghostpdl builds debug-clean : debugclean memento-clean : mementoclean maintainer-clean : distclean -$(RM_) configure check : default $(NO_OP)