summaryrefslogtreecommitdiff
path: root/gs/src/gs.mak
AgeCommit message (Collapse)AuthorFilesLines
2008-08-29Split the source tree into two new directories.Ralph Giles1-436/+0
PSSRC files are now in 'gs/psi'. GLSRC files are now in 'gs/base'. This is to facilitate build modularization and merging in the ghostpdl tree. NOTE: msvc32.mak is now in psi, not src. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9048 a1074d23-0009-0410-80fe-cf8c14f379e6
2008-08-08Massive commit discussed before the freeze to move the PostScript initializationRay Johnston1-4/+0
files to Resource/Init. This obviates the need for geninit when COMPILE_INITS=1. A followup change will enhance mkromfs to allow it to 'strip' comments and white space from PostScript input files somewhat reducing the compressed storage needed for the files in Resource/Init. All files mentioned in int.mak with 'ADDMOD ... -ps ...' are included as well as those that would have been included via gs_init.ps %% Replace lines. Builds tested on Windows and Cygwin for the various executables (gs, pcl6, pspcl6 and gxps). The default LIBPATH and GenericResourceDir are adjusted accordingly. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8954 a1074d23-0009-0410-80fe-cf8c14f379e6
2008-03-11Fix MSVC makefile for the 'Big console mode EXE' case when COMPILE_INITS=1. AlsoRay Johnston1-2/+2
minor cleanup to gs.mak 'clean' target and redundant dependency in ugcclib.mak. MSVC build problem noted by customer #531. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8596 a1074d23-0009-0410-80fe-cf8c14f379e6
2008-01-07Remove the obsolete gconfigv.h.Ralph Giles1-3/+0
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8479 a1074d23-0009-0410-80fe-cf8c14f379e6
2008-01-07Remove EXTEND_NAMES from the top level makefiles.Ralph Giles1-4/+0
There is a fallback to the default value of 0 in inameidx.h so there is no change in the default behaviour. The extended name table can still be activated by defining EXTEND_NAMES on the compiler command line or changing the source directly. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8478 a1074d23-0009-0410-80fe-cf8c14f379e6
2008-01-01Remove the SYSTEM_CONSTANTS_ARE_WRITABLE compile-time define.Ralph Giles1-4/+0
Details: This was added so a particular application could rewrite the product name, version, etc. after loading the library. We're not aware of anyone still using the feature, and if so they can just change the source, which is more appropriate in any case. Also, remove USE_ASM from the msvc project file. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8471 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-12-21Construct romfs.dev in the graphics library's gen directory instead ofRalph Giles1-2/+2
the ps interpreter's so building just the library is possible. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8457 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-09Remove the JVERSION makefile variable.Ralph Giles1-1/+0
We only support the current version 6 library, and it seems unlikely to revise in the the near future. We also include our own copy of the source now, so it is less important to support a variety of third party library versions. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8357 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-09Remove the PNGVERSION makefile variable.Ralph Giles1-1/+1
We no longer support building older versions of the libpng source, and now include our own version, so there is no reason to maintain this. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8356 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-09Use PNGSRCDIR and PNGVERSION instead of PSRCDIR and PVERSION inRalph Giles1-3/+3
the top level makefiles. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8354 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-07Preliminary makefile for the expat third party library.Ralph Giles1-0/+2
Can be used to link to the system expat with SHARE_EXPAT=1, but compiling the source doesn't work on linux in this revision because of missing configuration defines. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8350 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-10-31Add a new GS_DEV_DEFAULT makefile variable for passing a preferred listRalph Giles1-0/+3
of default devices, in order of priority. These are passed through to the C code, and searched for in gs_getdefaultdevice(). git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8339 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-09-27Remove the mkromfs code under 'make clean'. Bug 689474.Ralph Giles1-0/+3
Also, use the GS_INIT define instead of hard-coding gs_init.ps as the root of the postscript library code. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8257 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-06-07Remove an unused clean action.Ralph Giles1-1/+0
DETAILS: This was added as part of the x11 device modularization patch, which doesn't appear to add any generation of _temp_* files. The Desqview makefile does, and wctail.mak makes such files in the GLOBJ path, but cleaning these shouldn't be part of this target regardless. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8031 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-06-06Finally merged in extra functionality of ESP Ghostscript (from branch ↵Till Kamppeter1-1/+3
"gs-esp-gpl-merger") git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8026 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-06-05Update licence headers. Copyright has been transfered from artofcode LLCRalph Giles1-1/+1
to Artifex Software, Inc. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8022 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-05-21Define IMDISRCDIR in the top level makefiles and pass this through toRalph Giles1-0/+2
the compile lines in devs.mak. This the the correct fix for the issue addressed in revisions 7970 and 7971. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@7994 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-05-14Revert the gs-esp merge down, as there are still some build issues.Ralph Giles1-3/+1
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@7971 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-05-14Merged in extra functionality of ESP Ghostscript (from branch ↵Till Kamppeter1-1/+3
"gs-esp-gpl-merger") git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@7970 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-05-08Back out everything after rev 7909Till Kamppeter1-3/+1
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@7919 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-05-08Modularization of the X11 output devices into dynamic librariesTill Kamppeter1-1/+3
DETAILS: This patch allows to compile Ghostscript in a way that the X11 screen display output devices can be seperated into a dynamically linkable library, so that these devices can be put in a separate binary package in Linux distributions. This way the distributions can be installed with GhostScript and without the X libraries, which is important for headless print servers. This feature is only available for Unix with GCC (selected by the Makefile). Ghostscript will be compiled without built-in X11 support and with an extra X11.so file containing the X11 support. One can install Ghostscript with or without X11.so then, it will always work. It detects the presence of X11.so automatically and makes the X11 output devises available if X11.so is present (see "gs -h"). Small disadvantage: With modularized X11 support the "x11" device will not stay the default one. "bbox" will be the default then. Use "gs -sDEVICE=x11 ..." then. This patch is used since mid 2001 in ESP Ghostscript and has never caused any problems or bugs related to the modularization. EXPECTED DIFFERENCES: None (in the non-interactive automated regression tests) git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@7910 a1074d23-0009-0410-80fe-cf8c14f379e6
2006-03-13changed copyright headersStefan Kemper1-15/+12
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@6651 a1074d23-0009-0410-80fe-cf8c14f379e6
2006-02-21Implement %rom% IODevice and use it for the COMPILE_INITS=1 builds. DataRay Johnston1-2/+5
is compressed and can include fonts as well as lib init files, Resource directories and other. The (%rom%) path is inserted as the first path on the LIBPATH list when COMPILE_INITS=1. The default GenricResourceDir is set to %rom%Resource/ unless the command line sets -sGenericReourceDir. Bug 687485. DETAILS: See gsiorom.* and mkromfs.c for details of the %rom% structure. The inital implementation creates a string buffer for the entire file (block by block) decompression is not yet implemented (a new stream type). The %rom% IODevice is not PostScript specific so it could be used by non PS interpreters (GhostPCL) but the creation of gsromfs.c by mkromfs needs to be performed elsewhere (hint in src/lib.mak). NOTES: Tested on unix and Windows. Mac, OS/2 and VMS will need attention as will non-MSVC tool chains. Since this replaces the old COMPILE_INIT method don't use COMPILE_INTIS=1 on those platforms unless you are working on fixing problems or just feel lucky. The insertion of the %rom% device as the first path in the LIBPATH list will make changing initfiles during debug more cumbersome, but using COMPILE_INITS=1 is really not intended for debugging or development anyway. EXPECTED DIFFERENCES: None. (we don't build with COMPILE_INITS). git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@6600 a1074d23-0009-0410-80fe-cf8c14f379e6
2006-01-30Move the definition of the 3rd party library include paths for the jbig2Ralph Giles1-0/+4
and jpeg2k implementations back into gs.mak. DETAILS: Although it makes more sense to define these in the makefile for each library, they are also needed for building the calling code in the graphics library and interpreter. This causes a circular dependency with tools such as nmake which perform variable resolution in a single-pass. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@6527 a1074d23-0009-0410-80fe-cf8c14f379e6
2006-01-30Minor build variable rearrangement and clean up related to the LuratechRalph Giles1-2/+1
JBIG2 decoder integration. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@6518 a1074d23-0009-0410-80fe-cf8c14f379e6
2006-01-29Introduce a level of indirection so the builds for the two differentRalph Giles1-0/+1
jbig2 and jpeg2k implementations can coexist. Also, add jasper to the OS/2 and OpenVMS builds, and update the OpenVMS makefiles now that the third-party libraries are included with the source release. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@6514 a1074d23-0009-0410-80fe-cf8c14f379e6
2006-01-29Rename the jasper-oriented top-level makefile elements to the moreRalph Giles1-12/+13
generic JPX. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@6513 a1074d23-0009-0410-80fe-cf8c14f379e6
2004-12-20Fix : Targets gconfxx.h and ld.tr had an incorrect dependence in the makefile.Igor Melichev1-2/+3
DETAILS : Bug 687059 "Re-building a ready gswin32.exe". The old rule $(ld_tr) : $(gconfig_h) wrongly established a dependence opposite to the file modification order. Diagnosed with inserting "echo xxxxxxxxxxx" after the rule above. Made the order of targets to be same as the order of file modifications when they are created with genconf.exe and echogs.exe . EXPECTED DIFFERENCES : None. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@5598 a1074d23-0009-0410-80fe-cf8c14f379e6
2004-12-20Fix : Completely remove the platform dependent target lib.tr from makefiles.Igor Melichev1-1/+1
DETAILS : This is a preparation for fixing the bug Bug 687059 "Re-building a ready gswin32.exe". The file lib.tr was created for old linkers, which can't handle objs and libs in a single list file. This change affects FAPI, which only uses a list of libs, and only on Windows and OS/2 platforms. We did not test Borland and Watcom compilers, but unlikely FAPI is compiled with them. EXPECTED DIFFERENCES : None. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@5596 a1074d23-0009-0410-80fe-cf8c14f379e6
2004-12-01Add a platform-specific JASPERCFLAGS makefile variable to assist withRalph Giles1-1/+3
proper compilation of the jasper jpeg2k library. Set this variable correctly in the autoconf build. DETAILS: The jasper library natively supports building under both autoconf+cc and MSVC, but expects a preprocessor define to be set to distinguish the two. While we do carefully construct a special JAS_CC for compiling the jasper source into Ghostscript, as with all the other 3rd party libraries, there is only a facility to set special CFLAGS globally. This change adds a new top-level makefile variable for passing platform-specific CFLAGS into gs.mak for addition to that global set. Also, set JASPERCFLAGS=-DJAS_CONFIGURE in Makefile.in so that the jasper sourcr expects the autoconf generated configuration header when compiling as part of Ghostscript. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@5545 a1074d23-0009-0410-80fe-cf8c14f379e6
2004-10-06Add a missing dependency on version.mak to the generation of gconfigd.h.Ralph Giles1-1/+1
Without this the revision number isn't correctly updated in an incremental build. Closes bug 687733. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@5406 a1074d23-0009-0410-80fe-cf8c14f379e6
2004-04-27Add makefile support for compiling in the jasper JPEG 2000 library,Ralph Giles1-0/+9
needed to support the JPXDecode filter in PDF 1.5. Currently only enabled in the autoconf build, but porting the changes to other top-level makefiles should now work. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@4961 a1074d23-0009-0410-80fe-cf8c14f379e6
2004-01-22Create a new dynamic header 'gconfigd.h' for non-platform-specific defines. ↵Ralph Giles1-7/+13
Variables like GS_LIB_DEFAULT which were previously tacked onto the end of gconfig.h have been moved to the new header. This change is necessary to pass the default path for the persistent cache from the makefile. DETAILS: The persistent cache is implemented in the gp layer, but previously it was illegal to access gconfig.h from code inside the graphics library, it the sense that the build would fail. This is because of the crazy way operator definitions are collected in dev files before they are consolidated in gconfig.h. We don't want to use gconfigv.h because that header is platform-specific is generated by different code on every platform. Therefore, while this isn't a real fix for gconfig.h circular inclusion issue, a new header is reasonably motivated. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@4615 a1074d23-0009-0410-80fe-cf8c14f379e6
2004-01-15Initial commit of the persistent cache implementation. This version supports ↵Ralph Giles1-1/+4
only the *nix platform and does not include any eviction logic. Also currently the cache directory and empty 'gs_cache' index file must be created manually. DETAILS: Two new calls have been added to the gp layer: gp_cache_insert() and gp_cache_query(). These take a byte buffer as a key under which another buffer can be stored or recalled. In addition to the key, buffers are filed by 'type' which provides a separate namespace for each kind of data. These types should be one of the GP_CACHE_TYPE_* defines in gp.h. The query call takes a callback for allocating the buffer to be filled. Thus, all memory management for the key and value buffers is handled by the client and the query returns the data (if any) within a single call. A pair of postscript test operators, .pcacheinsert and .pcachequery are provided in zmisc.c, however they are disabled by default to prevent access to the cache by malicious postscript programs. They operate only with the 'test' type, so a denial-of-service attack is the only real risk; however we anticipate all access will be from C code. Compile with the DEBUG_CACHE preprocessor symbol to enable these. Improvements and implementations for other platforms are to follow. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@4576 a1074d23-0009-0410-80fe-cf8c14f379e6
2003-12-11Remove the CC_LEAF alternate compiler definition. This basically exists to passRalph Giles1-4/+0
-fomit-frame-pointer (or equivalent) on a few (two) files where it's unequivocably safe. This strikes us as premature optimization. It was also causing problems with the profile build under gcc because of a quoting problems with the argument list the makefile passes to itself through this define. Closes bug 687182. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@4440 a1074d23-0009-0410-80fe-cf8c14f379e6
2003-04-16JBIG2 code in the interpreter and stream library requires an -I argumentRalph Giles1-0/+2
to find the jbig2dec headers when compiling with local source. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@3832 a1074d23-0009-0410-80fe-cf8c14f379e6
2003-04-15Add support for compiling in libjbig2dec statically from source. This makefileRalph Giles1-1/+8
is only good for v0.2. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@3828 a1074d23-0009-0410-80fe-cf8c14f379e6
2003-03-29Multi-target rule that generates all of the targets at once was executed forAlex Cherepanov1-1/+5
every target obsoleting some of the files generated earlier and causing recompilation. Replace the multi-target rule with a single-target rule and make the target a prerequisite of the remaining targets; use empty command to disable default build rules. Bug #685341. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@3751 a1074d23-0009-0410-80fe-cf8c14f379e6
2002-11-26Remove echogs as part of the mostlyclean makefile target. After a patch by ↵Ralph Giles1-0/+1
William Bader. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@3370 a1074d23-0009-0410-80fe-cf8c14f379e6
2002-10-24Add real 'make distclean' and 'make maintainer-clean' targets. TheseRalph Giles1-2/+5
are no longer general no-ops but are the responsibility of the platform-specific makefiles. The autoconf build now removes its generated files from the top-level directory when requested. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@3215 a1074d23-0009-0410-80fe-cf8c14f379e6
2002-10-09Remove remaining references to ansi2knr.c. We no longer supportRalph Giles1-7/+1
building ghostscript with it, but the remaining dead code causes confusion for some users. Inspired by Sourceforge bug #618048. Removes references to the no longer supported ansi2knr.c. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@3139 a1074d23-0009-0410-80fe-cf8c14f379e6
2002-10-09Prune the dead 'begin' makefile target. This was supposedly removed in ↵Ralph Giles1-17/+0
release 5.20. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@3137 a1074d23-0009-0410-80fe-cf8c14f379e6
2002-08-22DeviceN.Henry Stiles1-2/+6
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@2925 a1074d23-0009-0410-80fe-cf8c14f379e6
2002-06-22Fix: When building an archive of the graphics library or interpreter,Russell Lang1-0/+4
add only the object files, not the .dev and interpreter files. Fixes SourceForge bug # 538311 - files missing from library archive. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@2788 a1074d23-0009-0410-80fe-cf8c14f379e6
2002-03-13Add a new optional FEATURE, diskn.dev that provides emulation of %diskRay Johnston1-0/+3
devices present on some Adobe printers. This version is NOT multiple instance safe, but is useful for embedded printers or for server systems with a single Ghostscript instance. Documentation is in Language.htm. Addresses SourceForge bug #493344 for Artifex customer #411. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@2318 a1074d23-0009-0410-80fe-cf8c14f379e6
2002-02-21Reverts to marking files with the single Id cvs tag instead of theRalph Giles1-1/+1
RCSfile and Revision pair. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@2241 a1074d23-0009-0410-80fe-cf8c14f379e6
2002-02-21Update banner to the new format common to all releases (AFPL, GPL andRay Johnston1-13/+11
Artifex Software's commercial release). References file LICENSE. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@2234 a1074d23-0009-0410-80fe-cf8c14f379e6
2002-01-31Adds IJS driver to Ghostscript. Includes complete IJS version 0.33Raph Levien1-0/+6
distribution. Also includes autoconf patch by Ralph Giles. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@2074 a1074d23-0009-0410-80fe-cf8c14f379e6
2002-01-12Documents ICCSRCDIR along with the other platform-specific defines.Ralph Giles1-1/+3
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@2014 a1074d23-0009-0410-80fe-cf8c14f379e6
2001-12-13Updates the comment describing the AK makefile variable to reflect the factL Peter Deutsch1-4/+3
that ansi2knr no longer exists. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@1953 a1074d23-0009-0410-80fe-cf8c14f379e6