summaryrefslogtreecommitdiff
path: root/gpdl
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2022-09-14 17:39:02 +0100
committerRobin Watts <Robin.Watts@artifex.com>2022-09-19 12:44:06 +0100
commit90fa745b793dc439d59bdab2255867fb7dfb5420 (patch)
tree9e505a53f95d8decd721dba96e52b5d96a2bd617 /gpdl
parent9e6faf9495945ba6471f693fe01a0f1d1f538edf (diff)
downloadghostpdl-90fa745b793dc439d59bdab2255867fb7dfb5420.tar.gz
Add gpdl support for SmartOffice integration.
No actual SmartOffice code here, just the framework for adding the (private) "SO" interpreter.
Diffstat (limited to 'gpdl')
-rw-r--r--gpdl/gpdl.mak15
1 files changed, 14 insertions, 1 deletions
diff --git a/gpdl/gpdl.mak b/gpdl/gpdl.mak
index 0fdebfd60..899716e36 100644
--- a/gpdl/gpdl.mak
+++ b/gpdl/gpdl.mak
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2021 Artifex Software, Inc.
+# Copyright (C) 2001-2022 Artifex Software, Inc.
# All Rights Reserved.
#
# This software is provided AS-IS with no warranty, either express or
@@ -18,6 +18,7 @@ GPDL_MAK=$(GPDLSRCDIR)$(D)gpdl.mak
GPDLSRC=$(GPDLSRCDIR)$(D)
GPDLPSISRC=$(GPDLSRCDIR)$(D)psi$(D)
GPDLURFSRC=$(URFSRCDIR)$(D)
+GPDLSOSRC=$(SOSRCDIR)$(D)
GPDLOBJ=$(GPDLOBJDIR)$(D)
GPDLGEN=$(GPDLGENDIR)$(D)
@@ -29,6 +30,8 @@ GPDL_PSI_TOP_OBJ=$(GPDLOBJ)$(GPDL_PSI_TOP_OBJ_FILE)
GPDL_URF_TOP_OBJ_FILE=urftop.$(OBJ)
+GPDL_SO_TOP_OBJ_FILE=sotop.$(OBJ)
+
GPDL_JPG_TOP_OBJ_FILE=jpgtop.$(OBJ)
GPDL_JPG_TOP_OBJ=$(GPDLOBJ)$(GPDL_JPG_TOP_OBJ_FILE)
@@ -56,6 +59,7 @@ GPDL_PSI_TOP_OBJS=\
$(GPDL_JPG_TOP_OBJ)\
$(GPDL_URF_TOP_OBJ)\
$(GPDL_PSI_TOP_OBJ)\
+ $(GPDL_SO_TOP_OBJ)\
$(GPDLOBJ)gpdlimpl.$(OBJ)
LANG_CFLAGS=\
@@ -70,6 +74,7 @@ LANG_CFLAGS=\
$(D_)JBIG2_INCLUDED$(_D)\
$(D_)JP2K_INCLUDED$(_D)\
$(D_)PNG_INCLUDED$(_D)\
+ $(ENABLE_SO)\
GPDLCC=$(CC_) $(LANG_CFLAGS) $(I_)$(PSSRCDIR)$(_I) $(I_)$(PLSRCDIR)$(_I) $(I_)$(GLSRCDIR)$(_I) $(I_)$(DEVSRCDIR)$(_I) $(I_)$(GLGENDIR)$(_I) $(C_)
@@ -103,6 +108,14 @@ $(GPDLOBJ)/$(GPDL_URF_TOP_OBJ_FILE): $(GPDLURFSRC)urftop.c $(AK)\
$(gscoord_h) $(pltop_h) $(gsicc_manage_h) $(gspaint_h) $(plmain_h)
$(GPDLCC) $(GPDLURFSRC)urftop.c $(GPDLO_)$(GPDL_URF_TOP_OBJ_FILE)
+# Note that we don't use $(GPDL_SO_TOP_OBJ) as the target of the
+# next make rule, as this expands to "" in builds that don't use
+# SO.
+$(GPDLOBJ)/$(GPDL_SO_TOP_OBJ_FILE): $(GPDLSOSRC)sotop.c $(AK)\
+ $(gxdevice_h) $(gserrors_h) $(gsstate_h) $(strimpl_h)\
+ $(gscoord_h) $(pltop_h) $(gsicc_manage_h) $(gspaint_h) $(plmain_h)
+ $(GPDLCC) $(GPDLSOSRC)sotop.c $(GPDLO_)$(GPDL_SO_TOP_OBJ_FILE)
+
$(GPDL_JPG_TOP_OBJ): $(GPDLSRC)jpgtop.c $(AK)\
$(gxdevice_h) $(gserrors_h) $(gsstate_h) $(strimpl_h) $(gscoord_h)\
$(jpeglib_h) $(setjmp__h) $(sjpeg_h) $(pltop_h) $(gsicc_manage_h)\