aboutsummaryrefslogtreecommitdiff
path: root/expat/vms
diff options
context:
space:
mode:
Diffstat (limited to 'expat/vms')
-rw-r--r--expat/vms/README.vms23
-rw-r--r--expat/vms/descrip.mms70
-rw-r--r--expat/vms/expat_config.h52
3 files changed, 145 insertions, 0 deletions
diff --git a/expat/vms/README.vms b/expat/vms/README.vms
new file mode 100644
index 000000000..3dd2ca73f
--- /dev/null
+++ b/expat/vms/README.vms
@@ -0,0 +1,23 @@
+4-jun-2002 Craig A. Berry
+ Added rudimentary build procedures for
+ OpenVMS based on work by Martin Vorlaender.
+
+
+You'll need MMS or its freeware equivalent MMK. Just go to the
+top-level directory and type
+
+$ MMS/DESCRIPTION=[.vms]
+
+ or
+
+$ MMK/DESCRIPTION=[.vms]
+
+You'll end up with the object library expat.olb. For now, installation
+consists merely of copying the object library, include files, and
+documentation to a suitable location.
+
+To-do list:
+
+ -- create a shareable image
+ -- build and run the tests and build the xmlwf utility
+ -- create an install target
diff --git a/expat/vms/descrip.mms b/expat/vms/descrip.mms
new file mode 100644
index 000000000..d9ee3d98e
--- /dev/null
+++ b/expat/vms/descrip.mms
@@ -0,0 +1,70 @@
+# Bare bones description file (Makefile) for OpenVMS
+
+PACKAGE = expat
+VERSION = 1.95.8
+EXPAT_MAJOR_VERSION=1
+EXPAT_MINOR_VERSION=95
+EXPAT_EDIT=8
+
+O = .obj
+OLB = .olb
+
+LIBRARY = expat$(OLB)
+LIBDIR = [.lib]
+SOURCES = $(LIBDIR)xmlparse.c $(LIBDIR)xmltok.c $(LIBDIR)xmlrole.c
+OBJECTS = xmlparse$(O) xmltok$(O) xmlrole$(O)
+
+TEMPLATES = xmltok_impl.c xmltok_ns.c
+APIHEADER = $(LIBDIR)expat.h
+HEADERS = $(LIBDIR)ascii.h $(LIBDIR)iasciitab.h $(LIBDIR)utf8tab.h $(LIBDIR)xmltok.h \
+ $(LIBDIR)asciitab.h $(LIBDIR)latin1tab.h \
+ $(LIBDIR)nametab.h $(LIBDIR)xmldef.h $(LIBDIR)xmlrole.h $(LIBDIR)xmltok_impl.h
+
+CONFIG_HEADER = expat_config.h
+INCLUDES = /INCLUDE=([],[.lib])
+DEFS = /DEFINE=(PACKAGE="""$(PACKAGE)""",VERSION="""$(PACKAGE)_$(VERSION)""",HAVE_EXPAT_CONFIG_H)
+LIBREVISION = 0
+LIBCURRENT = 1
+LIBAGE = 0
+#
+COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
+#
+# DISTFILES = $(DIST_COMMON) $(SOURCES) $(TEMPLATES) $(APIHEADER) $(HEADERS)
+#
+# TAR = gtar
+# GZIP_ENV = --best
+#
+.FIRST :
+ IF F$SEARCH("$(LIBRARY)") .EQS. "" THEN $(LIBR) /CREATE /OBJECT $(LIBRARY)
+
+all : $(LIBRARY)
+ @ write sys$output "All made."
+
+.SUFFIXES :
+.SUFFIXES : $(OLB) $(O) .C .H
+
+.c$(O) :
+ $(COMPILE) $(MMS$SOURCE)
+
+$(O)$(OLB) :
+ @ IF F$SEARCH("$(MMS$TARGET)") .EQS. "" -
+ THEN LIBRARY/CREATE/LOG $(MMS$TARGET)
+ @ LIBRARY /REPLACE /LOG $(MMS$TARGET) $(MMS$SOURCE)
+
+clean :
+ DELETE $(LIBRARY);*,*$(O);*
+
+$(LIBRARY) : $(LIBRARY)( $(OBJECTS) )
+ $(LIBR) /COMPRESS $(MMS$TARGET)
+
+$(CONFIG_HEADER) : [.vms]expat_config.h
+ COPY/LOG $(MMS$SOURCE) $(MMS$TARGET)
+
+xmlparse$(O) : $(LIBDIR)xmlparse.c $(LIBDIR)expat.h $(LIBDIR)xmlrole.h $(LIBDIR)xmltok.h $(CONFIG_HEADER)
+
+xmlrole$(O) : $(LIBDIR)xmlrole.c $(LIBDIR)ascii.h $(LIBDIR)xmlrole.h $(CONFIG_HEADER)
+
+xmltok$(O) : $(LIBDIR)xmltok.c $(LIBDIR)xmltok_impl.c $(LIBDIR)xmltok_ns.c \
+ $(LIBDIR)ascii.h $(LIBDIR)asciitab.h $(LIBDIR)iasciitab.h $(LIBDIR)latin1tab.h \
+ $(LIBDIR)nametab.h $(LIBDIR)utf8tab.h $(LIBDIR)xmltok.h $(LIBDIR)xmltok_impl.h $(CONFIG_HEADER)
+
diff --git a/expat/vms/expat_config.h b/expat/vms/expat_config.h
new file mode 100644
index 000000000..d5db89e56
--- /dev/null
+++ b/expat/vms/expat_config.h
@@ -0,0 +1,52 @@
+/* Copyright 2000, Clark Cooper
+ All rights reserved.
+
+ This is free software. You are permitted to copy, distribute, or modify
+ it under the terms of the MIT/X license (contained in the COPYING file
+ with this distribution.)
+*/
+
+/* Define to empty if the keyword does not work. */
+#undef const
+
+/* Define if you have a working `mmap' system call. */
+#undef HAVE_MMAP
+
+/* Define to `long' if <sys/types.h> doesn't define. */
+#undef off_t
+
+/* Define to `unsigned' if <sys/types.h> doesn't define. */
+#undef size_t
+
+/* Define if your processor stores words with the most significant
+ byte first (like Motorola and SPARC, unlike Intel and VAX). */
+#undef WORDS_BIGENDIAN
+
+/* Define if you have the bcopy function. */
+#undef HAVE_BCOPY
+
+/* Define if you have the memmove function. */
+#define HAVE_MEMMOVE 1
+
+/* Define if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+#define XML_NS
+#define XML_DTD
+
+#ifdef WORDS_BIGENDIAN
+#define XML_BYTE_ORDER 21
+#else
+#define XML_BYTE_ORDER 12
+#endif
+
+#define XML_CONTEXT_BYTES 1024
+
+#ifndef HAVE_MEMMOVE
+#ifdef HAVE_BCOPY
+#define memmove(d,s,l) bcopy((s),(d),(l))
+#else
+#define memmove(d,s,l) ;punting on memmove;
+#endif
+
+#endif