summaryrefslogtreecommitdiff
path: root/base/unix-end.mak
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2013-07-23 16:24:19 +0100
committerChris Liddell <chris.liddell@artifex.com>2015-07-20 18:21:17 +0100
commit6948650efd3fb9e2a70b8cf16aca57e9d0b7eb0a (patch)
tree5c2a1c671c1d4521f8a770d1e69e3d4342718030 /base/unix-end.mak
parent7fd9e0be26e67c36f87733bc89ea07dc26d9f839 (diff)
downloadghostpdl-6948650efd3fb9e2a70b8cf16aca57e9d0b7eb0a.tar.gz
Commit of build_consolidation branch
Squashed into one commit (see branch for details of the evolution of the branch). This brings gpcl6 and gxps into the Ghostscript build system, and a shared set of graphics library object files for all the interpreters. Also, brings the same configuration options to the pcl and xps products as we have for Ghostscript.
Diffstat (limited to 'base/unix-end.mak')
-rw-r--r--base/unix-end.mak146
1 files changed, 146 insertions, 0 deletions
diff --git a/base/unix-end.mak b/base/unix-end.mak
new file mode 100644
index 000000000..af66adb88
--- /dev/null
+++ b/base/unix-end.mak
@@ -0,0 +1,146 @@
+# Copyright (C) 2001-2012 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., 7 Mt. Lassen Drive - Suite A-134, San Rafael,
+# CA 94903, U.S.A., +1(415)492-9861, for further information.
+#
+# Partial makefile common to all Unix and Desqview/X configurations.
+# This is the next-to-last part of the makefile for these configurations.
+
+# Define the rule for building standard configurations.
+directories:
+ @if test "$(BINDIR)" != "" -a ! -d $(BINDIR); then mkdir $(BINDIR); fi
+ @if test "$(GLGENDIR)" != "" -a ! -d $(GLGENDIR); then mkdir $(GLGENDIR); fi
+ @if test "$(GLOBJDIR)" != "" -a ! -d $(GLOBJDIR); then mkdir $(GLOBJDIR); fi
+ @if test "$(DEVGENDIR)" != "" -a ! -d $(DEVGENDIR); then mkdir $(DEVGENDIR); fi
+ @if test "$(DEVOBJDIR)" != "" -a ! -d $(DEVOBJDIR); then mkdir $(DEVOBJDIR); fi
+ @if test "$(AUXDIR)" != "" -a ! -d $(AUXDIR); then mkdir $(AUXDIR); fi
+ @if test "$(PSGENDIR)" != "" -a ! -d $(PSGENDIR); then mkdir $(PSGENDIR); fi
+ @if test "$(PSGENDIR)" != "" -a ! -d $(PSGENDIR)/cups; then mkdir $(PSGENDIR)/cups; fi
+ @if test "$(PSOBJDIR)" != "" -a ! -d $(PSOBJDIR); then mkdir $(PSOBJDIR); fi
+
+
+gs: .gssubtarget
+ $(NO_OP)
+
+gpcl6: .pcl6subtarget
+ $(NO_OP)
+
+gpcl6clean: cleansub
+ $(NO_OP)
+
+gxps: .xpssubtarget
+ $(NO_OP)
+
+gxpsclean: cleansub
+ $(NO_OP)
+
+gpdl: .gpdlsubtarget
+ $(NO_OP)
+
+gpdlclean: .cleansub
+ $(NO_OP)
+
+# Define a rule for building profiling configurations.
+PGDEFS=GENOPT='-DPROFILE' CFLAGS='$(CFLAGS_PROFILE) $(GCFLAGS) $(XCFLAGS)'\
+ LDFLAGS='$(XLDFLAGS) -pg' XLIBS='Xt SM ICE Xext X11'
+
+pg:
+ $(MAKE) $(PGDEFS) BUILDDIRPREFIX=$(PGDIRPREFIX) default
+
+pgclean:
+ $(MAKE) $(PGDEFS) BUILDDIRPREFIX=$(PGDIRPREFIX) cleansub
+
+gspg:
+ $(MAKE) $(PGDEFS) BUILDDIRPREFIX=$(PGDIRPREFIX) .gssubtarget
+
+gpcl6pg:
+ $(MAKE) $(PGDEFS) BUILDDIRPREFIX=$(PGDIRPREFIX) .pcl6subtarget
+
+gpcl6pgclean:
+ $(MAKE) $(PGDEFS) BUILDDIRPREFIX=$(PGDIRPREFIX) cleansub
+
+gxpspg:
+ $(MAKE) $(PGDEFS) BUILDDIRPREFIX=(PGDIRPREFIX) .xpssubtarget
+
+gxpspgclean:
+ $(MAKE) $(PGDEFS) BUILDDIRPREFIX=$(PGDIRPREFIX) cleansub
+
+gpdlpg:
+ $(MAKE) $(PGDEFS) BUILDDIRPREFIX=(PGDIRPREFIX) .gpdlsubtarget
+
+gpdlpgclean:
+ $(MAKE) $(PGDEFS) BUILDDIRPREFIX=$(PGDIRPREFIX) cleansub
+
+# Define a rule for building debugging configurations.
+DEBUGDEFS=GENOPT='-DDEBUG' CFLAGS='$(CFLAGS_DEBUG) $(GCFLAGS) $(XCFLAGS)'
+
+
+debug:
+ $(MAKE) $(DEBUGDEFS) BUILDDIRPREFIX=$(DEBUGDIRPREFIX) default
+
+debug-apitest:
+ $(MAKE) $(DEBUGDEFS) BUILDDIRPREFIX=$(DEBUGDIRPREFIX) apitest
+
+debugclean:
+ $(MAKE) $(DEBUGDEFS) BUILDDIRPREFIX=$(DEBUGDIRPREFIX) cleansub
+
+
+gsdebug:
+ $(MAKE) $(DEBUGDEFS) BUILDDIRPREFIX=$(DEBUGDIRPREFIX) .gssubtarget
+
+gpcl6debug:
+ $(MAKE) $(DEBUGDEFS) BUILDDIRPREFIX=$(DEBUGDIRPREFIX) .pcl6subtarget
+
+#gpcl6-debug-apitest:
+# $(MAKE) $(DEBUGDEFS) BUILDDIRPREFIX=$(DEBUGDIRPREFIX) apitest
+
+gpcl6debugclean:
+ $(MAKE) $(DEBUGDEFS) BUILDDIRPREFIX=$(DEBUGDIRPREFIX) cleansub
+
+gxpsdebug:
+ $(MAKE) $(DEBUGDEFS) BUILDDIRPREFIX=$(DEBUGDIRPREFIX) .xpssubtarget
+
+#gpcl6-debug-apitest:
+# $(MAKE) $(DEBUGDEFS) BUILDDIRPREFIX=$(DEBUGDIRPREFIX) apitest
+
+gxpsdebugclean:
+ $(MAKE) $(DEBUGDEFS) BUILDDIRPREFIX=$(DEBUGDIRPREFIX) cleansub
+
+gpdldebug:
+ $(MAKE) $(DEBUGDEFS) BUILDDIRPREFIX=$(DEBUGDIRPREFIX) .gpdlsubtarget
+
+#gpcl6-debug-apitest:
+# $(MAKE) $(DEBUGDEFS) BUILDDIRPREFIX=$(DEBUGDIRPREFIX) apitest
+
+gpdldebugclean:
+ $(MAKE) $(DEBUGDEFS) BUILDDIRPREFIX=$(DEBUGDIRPREFIX) cleansub
+
+
+
+# Define a rule for building memento configurations.
+MEMENTODEFS=GENOPT='-DMEMENTO -DDEBUG' \
+ CFLAGS='$(CFLAGS_DEBUG) $(GCFLAGS) $(XCFLAGS)'\
+ BUILDDIRPREFIX=$(MEMENTODIRPREFIX)
+
+memento:
+ $(MAKE) $(MEMENTODEFS) default
+
+mementoclean:
+ $(MAKE) $(MEMENTODEFS) cleansub
+
+gpcl6_gxps_clean: gpcl6clean gxpsclean
+ $(NO_OP)
+
+# Emacs tags maintenance.
+
+TAGS:
+ etags -t $(GLSRC)*.[ch] $(PSSRC)*.[ch]