[gs-cvs] rev 8350 - trunk/gs/src

giles at ghostscript.com giles at ghostscript.com
Tue Nov 6 23:13:45 PST 2007


Author: giles
Date: 2007-11-06 23:13:45 -0800 (Tue, 06 Nov 2007)
New Revision: 8350

Added:
   trunk/gs/src/expat.mak
Modified:
   trunk/gs/src/gs.mak
Log:
Preliminary makefile for the expat third party library.

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.


Added: trunk/gs/src/expat.mak
===================================================================
--- trunk/gs/src/expat.mak	2007-11-07 05:04:06 UTC (rev 8349)
+++ trunk/gs/src/expat.mak	2007-11-07 07:13:45 UTC (rev 8350)
@@ -0,0 +1,92 @@
+#  Copyright (C) 2007 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 that
+#  license.  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.
+#
+# $Id: $
+# makefile for expat, the XML stream parsig library
+#
+# Users of this makefile must define the following:
+#	SHARE_EXPAT - 1 to link a system (shared) library
+#		      0 to compile in the referenced source, 
+#	EXPATSRCDIR - the expat source top-level directory
+#	EXPATGENDIR - directory for intermediate generated files
+#	EXPATOBJDIR - directory for object files
+
+# Define the name of this makefile
+EXPAT_MAK=$(GLSRC)expat.mak
+
+# local aliases
+EXPATSRC=$(EXPATSRCDIR)$(D)lib$(D)
+EXPATGEN=$(EXPATGENDIR)$(D)
+EXPATOBJ=$(EXPATOBJDIR)$(D)
+EXPATO_=$(O_)$(EXPATOBJ)
+
+EXPATCC=$(CC_) $(I_)$(EXPATSRC)lib$(_I)
+
+expat.clean : expat.config-clean expat.clean-not-config-clean
+
+# would be nice if we used an explicit object list here
+expat.clean-not-config-clean :
+	$(RM_) $(EXPATOBJ)*.$(OBJ)
+
+expat.config-clean :
+	$(RM_) $(EXPATGEN)expat*.dev
+
+PDEP=$(AK)
+
+expat_=$(EXPATOBJ)xmlparse.$(OBJ) \
+	$(EXPATOBJ)xmltok.$(OBJ) \
+	$(EXPATOBJ)xmlrole.$(OBJ)
+
+expat_xmlparse_hdrs=$(EXPATSRC)expat.h \
+	$(EXPATSRC)xmlrole.h \
+	$(EXPATSRC)xmltok.h
+
+expat_xmlrole_hdrs=$(EXPATSRC)ascii.h \
+	$(EXPATSRC)xmlrole.h \
+	$(EXPATSRC)expat_internal.h \
+	$(EXPATSRC)internal.h
+
+expat_xmltok_hdrs=$(EXPATSRC)xmltok_impl.c \
+	$(EXPATSRC)xmltok_ns.c \
+	$(EXPATSRC)ascii.h \
+	$(EXPATSRC)asciitab.h \
+	$(EXPATSRC)iasciitab.h \
+	$(EXPATSRC)latin1tab.h \
+	$(EXPATSRC)nametab.h \
+	$(EXPATSRC)uft8tab.h \
+	$(EXPATSRC)xmltok.h \
+	$(EXPATSRC)xmltok_impl.h \
+	$(EXPATSRC)expat_internal.h \
+	$(EXPATSRC)internal.h
+
+$(EXPATOBJ)xmlparse.$(OBJ) : $(EXPATSRC)xmlparse.c $(expat_xmlparse_hdrs)
+	$(EXPATCC) $(EXPATO_)xmlparse.$(OBJ) $(C_) $(EXPATSRC)xmlparse.c
+
+$(EXPATOBJ)xmlrole.$(OBJ) : $(EXPATSRC)xmlrole.c $(expat_xmlrole_hdrs)
+	$(EXPATCC) $(EXPATO_)xmlrole.$(OBJ) $(C_) $(EXPATSRC)xmlrole.c
+
+$(EXPATOBJ)xmltok.$(OBJ) : $(EXPATSRC)xmltok.c $(expat_xmltok_hdrs)
+	$(EXPATCC) $(EXPATO_)xmltok.$(OBJ) $(C_) $(EXPATSRC)xmltok.c
+
+# Copy the target definition we want
+$(EXPATGEN)expat.dev : $(TOP_MAKEFILES) $(EXPAT_MAK) \
+ $(EXPATGEN)expat_$(SHARE_EXPAT).dev
+	$(CP_) $(EXPATGEN)expat_$(SHARE_EXPAT).dev $(EXPATGEN)expat.dev
+
+# Define the compiled in target
+$(EXPATGEN)expat_0.dev : $(EXPAT_MAK) $(ECHOGS_XE) $(expat_)
+	$(SETMOD) $(EXPATGEN)expat_0 $(expat_)
+
+# Define the external link target
+$(EXPATGEN)expat_1.dev : $(EXPAT_MAK) $(ECHOGS_XE)
+	$(SETMOD) $(EXPATGEN)expat_1 -lib expat
+

Modified: trunk/gs/src/gs.mak
===================================================================
--- trunk/gs/src/gs.mak	2007-11-07 05:04:06 UTC (rev 8349)
+++ trunk/gs/src/gs.mak	2007-11-07 07:13:45 UTC (rev 8350)
@@ -232,6 +232,8 @@
 JPXOBJDIR=$(GLOBJDIR)
 ICCGENDIR=$(GLGENDIR)
 ICCOBJDIR=$(GLOBJDIR)
+EXPATGENDIR=$(GLGENDIR)
+EXPATOBJDIR=$(GLOBJDIR)
 IJSGENDIR=$(GLGENDIR)
 IJSOBJDIR=$(GLOBJDIR)
 #**************** END PATCHES



More information about the gs-cvs mailing list