mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-28 17:20:22 +00:00
add MMS/MMK samples
This commit is contained in:
1204
samples/Module Management System/descrip.mms
Normal file
1204
samples/Module Management System/descrip.mms
Normal file
File diff suppressed because it is too large
Load Diff
563
samples/Module Management System/openvms.mmk
Normal file
563
samples/Module Management System/openvms.mmk
Normal file
@@ -0,0 +1,563 @@
|
||||
# Copyright (C) 1997, 2000 Aladdin Enterprises. 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.
|
||||
#
|
||||
# For more information about licensing, please refer to
|
||||
# http://www.ghostscript.com/licensing/. For information on
|
||||
# commercial licensing, go to http://www.artifex.com/licensing/ or
|
||||
# contact Artifex Software, Inc., 101 Lucas Valley Road #110,
|
||||
# San Rafael, CA 94903, U.S.A., +1(415)492-9861.
|
||||
|
||||
# $Id: openvms.mmk,v 1.31 2004/12/10 23:48:48 giles Exp $
|
||||
# makefile for OpenVMS VAX and Alpha using MMK
|
||||
#
|
||||
# Please contact Jim Dunham (dunham@omtool.com) if you have questions.
|
||||
# Addapted for MMK by Jouk Jansen (joukj@hrem.stm.tudelft.nl)
|
||||
# Support for VAX C on OpenVMS was removed in release 6.01 by Aladdin:
|
||||
# DEC C is now used on both VAX and Alpha platforms.
|
||||
#
|
||||
# ------------------------------- Options ------------------------------- #
|
||||
|
||||
###### This section is the only part of the file you should need to edit.
|
||||
|
||||
# on the make command line specify:
|
||||
# mmk/descrip=[.src]openvms.mmk/macro=("DECWINDOWS1_2={0,1}")
|
||||
|
||||
# Define the directory for the final executable, and the
|
||||
# source, generated intermediate file, and object directories
|
||||
# for the graphics library (GL) and the PostScript/PDF interpreter (PS).
|
||||
|
||||
BINDIR=[.bin]
|
||||
GLSRCDIR=[.src]
|
||||
GLGENDIR=[.obj]
|
||||
GLOBJDIR=[.obj]
|
||||
PSSRCDIR=[.src]
|
||||
PSGENDIR=[.obj]
|
||||
PSOBJDIR=[.obj]
|
||||
PSLIBDIR=[.lib]
|
||||
# Because of OpenVMS syntactic problems, the following redundant definitions
|
||||
# are necessary. If you are using more than one GENDIR and/or OBJDIR,
|
||||
# you will have to edit the code below that creates these directories.
|
||||
BIN_DIR=BIN.DIR
|
||||
OBJ_DIR=OBJ.DIR
|
||||
|
||||
# create directories
|
||||
.first
|
||||
if f$search("$(BIN_DIR)") .eqs. "" then create/directory/log $(BINDIR)
|
||||
if f$search("$(OBJ_DIR)") .eqs. "" then create/directory/log $(GLOBJDIR)
|
||||
|
||||
# Do not edit the next group of lines.
|
||||
|
||||
#.include $(COMMONDIR)vmscdefs.mak
|
||||
#.include $(COMMONDIR)vmsdefs.mak
|
||||
#.include $(COMMONDIR)generic.mak
|
||||
.include $(GLSRCDIR)version.mak
|
||||
DD=$(GLGENDIR)
|
||||
GLD=$(GLGENDIR)
|
||||
PSD=$(PSGENDIR)
|
||||
|
||||
# ------ Generic options ------ #
|
||||
|
||||
# Define the directory that will hold documentation at runtime.
|
||||
|
||||
GS_DOCDIR=GS_DOC
|
||||
#GS_DOCDIR=SYS$COMMON:[GS]
|
||||
|
||||
# Define the default directory/ies for the runtime
|
||||
# initialization and font files. Separate multiple directories with ,.
|
||||
|
||||
GS_LIB_DEFAULT=GS_LIB
|
||||
#GS_LIB_DEFAULT=SYS$COMMON:[GS],SYS$COMMON:[GS.FONT]
|
||||
|
||||
# Define whether or not searching for initialization files should always
|
||||
# look in the current directory first. This leads to well-known security
|
||||
# and confusion problems, but users insist on it.
|
||||
# NOTE: this also affects searching for files named on the command line:
|
||||
# see the "File searching" section of Use.htm for full details.
|
||||
# Because of this, setting SEARCH_HERE_FIRST to 0 is not recommended.
|
||||
|
||||
SEARCH_HERE_FIRST=1
|
||||
|
||||
# Define the name of the interpreter initialization file.
|
||||
# (There is no reason to change this.)
|
||||
|
||||
GS_INIT=GS_INIT.PS
|
||||
|
||||
# Choose generic configuration options.
|
||||
|
||||
# Setting DEBUG=1 includes debugging features in the code
|
||||
|
||||
DEBUG=0
|
||||
|
||||
# Setting TDEBUG=1 includes symbol table information for the debugger,
|
||||
# and also enables stack tracing on failure.
|
||||
|
||||
TDEBUG=
|
||||
|
||||
# Setting CDEBUG=1 enables 'C' compiler debugging and turns off optimization
|
||||
# Code is substantially slower and larger.
|
||||
|
||||
CDEBUG=
|
||||
|
||||
# Define the name of the executable file.
|
||||
|
||||
GS=GS
|
||||
|
||||
# Define the name of a pre-built executable that can be invoked at build
|
||||
# time. Currently, this is only needed for compiled fonts. The usual
|
||||
# alternatives are:
|
||||
# - the standard name of Ghostscript on your system (typically `gs'):
|
||||
BUILD_TIME_GS=GS
|
||||
# - the name of the executable you are building now. If you choose this
|
||||
# option, then you must build the executable first without compiled fonts,
|
||||
# and then again with compiled fonts.
|
||||
#BUILD_TIME_GS=$(BINDIR)$(GS) -I$(PSLIBDIR)
|
||||
|
||||
# Define the directory where the IJG JPEG library sources are stored,
|
||||
# and the major version of the library that is stored there.
|
||||
# You may need to change this if the IJG library version changes.
|
||||
# See jpeg.mak for more information.
|
||||
|
||||
.ifdef SYSLIB
|
||||
JSRCDIR=sys$library:
|
||||
.else
|
||||
JSRCDIR=[--.jpeg-6b]
|
||||
.endif
|
||||
JVERSION=6
|
||||
|
||||
# Define the directory where the PNG library sources are stored,
|
||||
# and the version of the library that is stored there.
|
||||
# You may need to change this if the libpng version changes.
|
||||
# See libpng.mak for more information.
|
||||
|
||||
.ifdef SYSLIB
|
||||
PSRCDIR=sys$library:
|
||||
.else
|
||||
PSRCDIR=[--.libpng-1_2_8]
|
||||
.endif
|
||||
PVERSION=10208
|
||||
|
||||
# Define the directory where the zlib sources are stored.
|
||||
# See zlib.mak for more information.
|
||||
|
||||
.ifdef SYSLIB
|
||||
ZSRCDIR=sys$library:
|
||||
.else
|
||||
ZSRCDIR=[--.zlib-1_2_1]
|
||||
.endif
|
||||
|
||||
# Define the directory where the jbig2dec library sources are stored.
|
||||
# See jbig2.mak for more information
|
||||
.ifdef SYSLIB
|
||||
JBIG2SRCDIR=sys$library:
|
||||
.else
|
||||
JBIG2SRCDIR=[--.jbig2dec-0_7]
|
||||
.endif
|
||||
|
||||
# Define the directory where the icclib source are stored.
|
||||
# See icclib.mak for more information
|
||||
|
||||
ICCSRCDIR=[.icclib]
|
||||
|
||||
# IJS has not been ported to OpenVMS. If you do the port,
|
||||
# you'll need to set these values. You'll also need to
|
||||
# include the ijs.mak makefile (right after icclib.mak).
|
||||
#
|
||||
# Define the directory where the ijs source is stored,
|
||||
# and the process forking method to use for the server.
|
||||
# See ijs.mak for more information.
|
||||
|
||||
#IJSSRCDIR=[.ijs]
|
||||
#IJSEXECTYPE=unix
|
||||
|
||||
# Note that built-in third-party libraries aren't available.
|
||||
|
||||
SHARE_JPEG=0
|
||||
SHARE_LIBPNG=0
|
||||
SHARE_ZLIB=0
|
||||
SHARE_JBIG2=0
|
||||
|
||||
# Define the path to X11 include files
|
||||
|
||||
X_INCLUDE=DECW$INCLUDE
|
||||
|
||||
# ------ Platform-specific options ------ #
|
||||
|
||||
# Define the drive, directory, and compiler name for the 'C' compiler.
|
||||
# COMP is the full compiler path name.
|
||||
|
||||
.ifdef DEBUG
|
||||
SW_DEBUG=/DEBUG/NOOPTIMIZE
|
||||
.else
|
||||
# This should include /OPTIMIZE, but some OpenVMS compilers have an
|
||||
# optimizer bug that causes them to generate incorrect code for gdevpsfx.c,
|
||||
# so we must disable optimization. (Eventually we will check for the bug
|
||||
# in genarch and enable optimization if it is safe.)
|
||||
#SW_DEBUG=/NODEBUG/OPTIMIZE
|
||||
SW_DEBUG=/NODEBUG/NOOPTIMIZE
|
||||
.endif
|
||||
|
||||
SW_PLATFORM=/DECC/PREFIX=ALL/NESTED_INCLUDE=PRIMARY/name=(as_is,short)/nowarn
|
||||
|
||||
# Define any other compilation flags.
|
||||
# Including defines for A4 paper size
|
||||
|
||||
.ifdef A4_PAPER
|
||||
SW_PAPER=/DEFINE=("A4","HAVE_MKSTEMP")
|
||||
.else
|
||||
SW_PAPER=/DEFINE=("HAVE_MKSTEMP")
|
||||
.endif
|
||||
|
||||
.ifdef IEEE
|
||||
SW_IEEE=/float=ieee
|
||||
.else
|
||||
SW_IEEE=
|
||||
.endif
|
||||
|
||||
COMP=CC$(SW_DEBUG)$(SW_PLATFORM)$(SW_PAPER)$(SW_IEEE)
|
||||
|
||||
# LINK is the full linker path name
|
||||
|
||||
.ifdef TDEBUG
|
||||
LINKER=LINK/DEBUG/TRACEBACK
|
||||
.else
|
||||
LINKER=LINK/NODEBUG/NOTRACEBACK
|
||||
.endif
|
||||
|
||||
# INCDIR contains the include files
|
||||
INCDIR=
|
||||
|
||||
# LIBDIR contains the library files
|
||||
LIBDIR=
|
||||
|
||||
# Define the .dev module that implements thread and synchronization
|
||||
# primitives for this platform. Don't change this unless you really know
|
||||
# what you're doing.
|
||||
|
||||
SYNC=posync
|
||||
|
||||
# ------ Devices and features ------ #
|
||||
|
||||
# Choose the device(s) to include. See devs.mak for details,
|
||||
# devs.mak and contrib.mak for the list of available devices.
|
||||
|
||||
DEVICE_DEVS=$(DD)x11.dev $(DD)x11alpha.dev $(DD)x11cmyk.dev $(DD)x11gray2.dev $(DD)x11gray4.dev $(DD)x11mono.dev
|
||||
DEVICE_DEVS1=
|
||||
DEVICE_DEVS2=
|
||||
DEVICE_DEVS3=$(DD)deskjet.dev $(DD)djet500.dev $(DD)laserjet.dev $(DD)ljetplus.dev $(DD)ljet2p.dev $(DD)ljet3.dev $(DD)ljet3d.dev $(DD)ljet4.dev $(DD)ljet4d.dev
|
||||
DEVICE_DEVS4=$(DD)cdeskjet.dev $(DD)cdjcolor.dev $(DD)cdjmono.dev $(DD)cdj550.dev $(DD)pj.dev $(DD)pjxl.dev $(DD)pjxl300.dev
|
||||
DEVICE_DEVS5=$(DD)uniprint.dev
|
||||
DEVICE_DEVS6=$(DD)bj10e.dev $(DD)bj200.dev $(DD)bjc600.dev $(DD)bjc800.dev
|
||||
DEVICE_DEVS7=$(DD)faxg3.dev $(DD)faxg32d.dev $(DD)faxg4.dev
|
||||
DEVICE_DEVS8=$(DD)pcxmono.dev $(DD)pcxgray.dev $(DD)pcx16.dev $(DD)pcx256.dev $(DD)pcx24b.dev $(DD)pcxcmyk.dev
|
||||
DEVICE_DEVS9=$(DD)pbm.dev $(DD)pbmraw.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm.dev $(DD)pgnmraw.dev
|
||||
DEVICE_DEVS10=$(DD)tiffcrle.dev $(DD)tiffg3.dev $(DD)tiffg32d.dev $(DD)tiffg4.dev $(DD)tifflzw.dev $(DD)tiffpack.dev
|
||||
DEVICE_DEVS11=$(DD)tiff12nc.dev $(DD)tiff24nc.dev
|
||||
DEVICE_DEVS12=$(DD)psmono.dev $(DD)psgray.dev $(DD)psrgb.dev $(DD)bit.dev $(DD)bitrgb.dev $(DD)bitcmyk.dev
|
||||
DEVICE_DEVS13=$(DD)pngmono.dev $(DD)pnggray.dev $(DD)png16.dev $(DD)png256.dev $(DD)png16m.dev $(DD)pngalpha.dev
|
||||
DEVICE_DEVS14=$(DD)jpeg.dev $(DD)jpeggray.dev
|
||||
DEVICE_DEVS15=$(DD)pdfwrite.dev $(DD)pswrite.dev $(DD)epswrite.dev $(DD)pxlmono.dev $(DD)pxlcolor.dev
|
||||
DEVICE_DEVS16=$(DD)bbox.dev
|
||||
# Overflow from DEVS9
|
||||
DEVICE_DEVS17=$(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev $(DD)pkm.dev $(DD)pkmraw.dev $(DD)pksm.dev $(DD)pksmraw.dev
|
||||
DEVICE_DEVS18=
|
||||
DEVICE_DEVS19=
|
||||
DEVICE_DEVS20=
|
||||
DEVICE_DEVS21=
|
||||
DEVICE_DEVS21=
|
||||
|
||||
# Choose the language feature(s) to include. See gs.mak for details.
|
||||
|
||||
FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)epsf.dev $(PSD)fapi.dev $(PSD)jbig2.dev
|
||||
|
||||
# Choose whether to compile the .ps initialization files into the executable.
|
||||
# See gs.mak for details.
|
||||
|
||||
COMPILE_INITS=0
|
||||
|
||||
# Choose whether to store band lists on files or in memory.
|
||||
# The choices are 'file' or 'memory'.
|
||||
|
||||
BAND_LIST_STORAGE=file
|
||||
|
||||
# Choose which compression method to use when storing band lists in memory.
|
||||
# The choices are 'lzw' or 'zlib'.
|
||||
|
||||
BAND_LIST_COMPRESSOR=zlib
|
||||
|
||||
# Choose the implementation of file I/O: 'stdio', 'fd', or 'both'.
|
||||
# See gs.mak and sfxfd.c for more details.
|
||||
|
||||
FILE_IMPLEMENTATION=stdio
|
||||
|
||||
# Choose the implementation of stdio: '' for file I/O and 'c' for callouts
|
||||
# See gs.mak and ziodevs.c/ziodevsc.c for more details.
|
||||
|
||||
STDIO_IMPLEMENTATION=c
|
||||
|
||||
# Define the name table capacity size of 2^(16+n).
|
||||
|
||||
EXTEND_NAMES=0
|
||||
|
||||
# Define whether the system constants are writable.
|
||||
|
||||
SYSTEM_CONSTANTS_ARE_WRITABLE=0
|
||||
|
||||
# Define the platform name.
|
||||
|
||||
PLATFORM=openvms_
|
||||
|
||||
# Define the name of the makefile -- used in dependencies.
|
||||
|
||||
MAKEFILE=$(GLSRCDIR)openvms.mmk
|
||||
TOP_MAKEFILES=$(MAKEFILE)
|
||||
|
||||
# Define the platform options
|
||||
|
||||
PLATOPT=
|
||||
|
||||
# Patch a couple of PC-specific things that aren't relevant to OpenVMS builds,
|
||||
# but that cause `make' to produce warnings.
|
||||
|
||||
PCFBASM=
|
||||
|
||||
# It is very unlikely that anyone would want to edit the remaining
|
||||
# symbols, but we describe them here for completeness:
|
||||
|
||||
# Define the suffix for command files (e.g., null or .bat).
|
||||
|
||||
CMD=
|
||||
|
||||
# Define the directory separator character (\ for MS-DOS, / for Unix,
|
||||
# nothing for OpenVMS).
|
||||
|
||||
D=
|
||||
|
||||
# Define the brackets for passing preprocessor definitions to the C compiler.
|
||||
NULL=
|
||||
|
||||
D_=/DEFINE="
|
||||
_D_=$(NULL)=
|
||||
_D="
|
||||
|
||||
# Define the syntax of search paths for the C compiler.
|
||||
# The OpenVMS compilers uses /INCLUDE=(dir1, dir2, ...dirn),
|
||||
# and only a single /INCLUDE switch is allowed in the command line.
|
||||
|
||||
I_=/INCLUDE=(
|
||||
II=,
|
||||
_I=)
|
||||
|
||||
# Define the string for specifying the output file from the C compiler.
|
||||
|
||||
O_=/OBJECT=
|
||||
|
||||
# Define the quoting string for mixed-case arguments.
|
||||
# (OpenVMS is the only platform where this isn't an empty string.)
|
||||
|
||||
Q="
|
||||
|
||||
# Define the extension for executable files (e.g., null or .exe).
|
||||
|
||||
XE=.exe
|
||||
|
||||
# Define the extension for executable files for the auxiliary programs
|
||||
# (e.g., null or .exe).
|
||||
|
||||
XEAUX=.exe
|
||||
|
||||
# Define the list of files that `make clean' removes.
|
||||
|
||||
BEGINFILES=$(GLSRCDIR)OPENVMS.OPT $(GLSRCDIR)OPENVMS.COM
|
||||
|
||||
# Define the C invocation for auxiliary programs (echogs, genarch).
|
||||
# We don't need to define this separately.
|
||||
|
||||
CCAUX=
|
||||
|
||||
# Define the C invocation for normal compilation.
|
||||
|
||||
CC=$(COMP)
|
||||
|
||||
# Define the Link invocation.
|
||||
|
||||
LINK=$(LINKER)/EXE=$@ $+,$(GLSRCDIR)OPENVMS.OPT/OPTION
|
||||
|
||||
# Define the auxiliary program dependency. We don't need this.
|
||||
|
||||
AK=
|
||||
|
||||
# Define the syntax for command, object, and executable files.
|
||||
|
||||
OBJ=obj
|
||||
|
||||
# Define the prefix for image invocations.
|
||||
|
||||
EXP=MCR $(NULL)
|
||||
|
||||
# Define the prefix for shell invocations.
|
||||
|
||||
SH=
|
||||
|
||||
# Define generic commands.
|
||||
|
||||
CP_=@$(GLSRCDIR)COPY_ONE
|
||||
|
||||
# Define the command for deleting (a) file(s) (including wild cards)
|
||||
|
||||
RM_=@$(GLSRCDIR)RM_ONE
|
||||
|
||||
# Define the command for deleting multiple files / patterns.
|
||||
|
||||
RMN_=@$(GLSRCDIR)RM_ALL
|
||||
|
||||
# Define the arguments for genconf.
|
||||
|
||||
CONFILES=-p %s
|
||||
CONFLDTR=-o
|
||||
|
||||
# Define the generic compilation rules.
|
||||
|
||||
.suffixes : .c .obj .exe
|
||||
|
||||
.obj.exe :
|
||||
$(LINK)
|
||||
|
||||
# ---------------------------- End of options ---------------------------- #
|
||||
|
||||
# Define various incantations of the 'c' compiler.
|
||||
|
||||
CC_=$(COMP)
|
||||
CC_INT=$(CC_)
|
||||
CC_NO_WARN=$(CC_)
|
||||
|
||||
# ------------------- Include the generic makefiles ---------------------- #
|
||||
|
||||
all : macro [.lib]Fontmap. $(GS_XE)
|
||||
|
||||
#.include $(COMMONDIR)/ansidefs.mak
|
||||
#.include $(COMMONDIR)/vmsdefs.mak
|
||||
#.include $(COMMONDIR)/generic.mak
|
||||
.include $(GLSRCDIR)gs.mak
|
||||
.include $(GLSRCDIR)lib.mak
|
||||
.include $(PSSRCDIR)int.mak
|
||||
.include $(PSSRCDIR)cfonts.mak
|
||||
.include $(GLSRCDIR)jpeg.mak
|
||||
# zlib.mak must precede libpng.mak
|
||||
.include $(GLSRCDIR)zlib.mak
|
||||
.include $(GLSRCDIR)libpng.mak
|
||||
JBIG2_EXTRA_OBJS=$(JBIG2OBJDIR)$(D)snprintf.$(OBJ)
|
||||
.include $(GLSRCDIR)jbig2.mak
|
||||
.include $(GLSRCDIR)icclib.mak
|
||||
.include $(GLSRCDIR)devs.mak
|
||||
.include $(GLSRCDIR)contrib.mak
|
||||
|
||||
|
||||
# ----------------------------- Main program ------------------------------
|
||||
|
||||
macro :
|
||||
.ifdef A4_PAPER
|
||||
@ a4p = 1
|
||||
.else
|
||||
@ a4p = 0
|
||||
.endif
|
||||
.ifdef IEEE
|
||||
@ i3e = 1
|
||||
.else
|
||||
@ i3e = 0
|
||||
.endif
|
||||
.ifdef SYSLIB
|
||||
@ dsl = 1
|
||||
.else
|
||||
@ dsl = 0
|
||||
.endif
|
||||
@ decc = f$search("SYS$SYSTEM:DECC$COMPILER.EXE").nes.""
|
||||
@ decw12 = f$search("SYS$SHARE:DECW$XTLIBSHRR5.EXE").nes.""
|
||||
@ macro = ""
|
||||
@ if dsl.or.a4p.or.decc.or.decw12 then macro = "/MACRO=("
|
||||
@ if decw12 then macro = macro + "DECWINDOWS1_2=1,"
|
||||
@ if a4p then macro = macro + "A4_PAPER=1,"
|
||||
@ if dsl then macro = macro + "SYSLIB=1,"
|
||||
@ if i3e then macro = macro + "IEEE=1,"
|
||||
@ if macro.nes."" then macro = f$extract(0,f$length(macro)-1,macro)+ ")"
|
||||
$(MMS)$(MMSQUALIFIERS)'macro' $(GS_XE)
|
||||
|
||||
$(GS_XE) : openvms $(GLGEN)arch.h $(GLOBJDIR)gs.$(OBJ) $(INT_ALL) $(LIB_ALL)
|
||||
$(LINKER)/EXE=$@ $(GLOBJDIR)gs.$(OBJ),$(ld_tr)/OPTIONS,$(GLSRCDIR)OPENVMS.OPT/OPTION
|
||||
@ Write Sys$Output "Build of GhostScript is complete!"
|
||||
|
||||
# OpenVMS.dev
|
||||
|
||||
openvms__=$(GLOBJ)gp_getnv.$(OBJ) $(GLOBJ)gp_vms.$(OBJ) $(GLOBJ)gp_stdia.$(OBJ)
|
||||
$(GLGEN)openvms_.dev : $(openvms__) $(GLGEN)nosync.dev
|
||||
$(SETMOD) $(GLGEN)openvms_ $(openvms__) -include $(GLGEN)nosync
|
||||
|
||||
$(ECHOGS_XE) : $(GLOBJDIR)echogs.$(OBJ)
|
||||
$(GENARCH_XE) : $(GLOBJDIR)genarch.$(OBJ)
|
||||
$(GENCONF_XE) : $(GLOBJDIR)genconf.$(OBJ)
|
||||
$(GENDEV_XE) : $(GLOBJDIR)gendev.$(OBJ)
|
||||
$(GENHT_XE) : $(GLOBJDIR)genht.$(OBJ)
|
||||
$(GENINIT_XE) : $(GLOBJDIR)geninit.$(OBJ)
|
||||
|
||||
$(GLOBJDIR)echogs.$(OBJ) : $(GLSRCDIR)echogs.c
|
||||
$(GLOBJDIR)genarch.$(OBJ) : $(GLSRCDIR)genarch.c $(GENARCH_DEPS)
|
||||
$(GLOBJDIR)genconf.$(OBJ) : $(GLSRCDIR)genconf.c $(GENCONF_DEPS)
|
||||
$(GLOBJDIR)gendev.$(OBJ) : $(GLSRCDIR)gendev.c $(GENDEV_DEPS)
|
||||
# ****** NEED TO ADD $(GENHT_CFLAGS) HERE ******
|
||||
$(GLOBJDIR)genht.$(OBJ) : $(GLSRCDIR)genht.c $(GENHT_DEPS)
|
||||
$(GLOBJDIR)geninit.$(OBJ) : $(GLSRCDIR)geninit.c $(GENINIT_DEPS)
|
||||
|
||||
$(GLOBJ)gp_vms.$(OBJ) : $(GLSRC)gp_vms.c $(string__h) $(memory__h) $(gx_h) $(gp_h) $(gpmisc_h) $(gsstruct_h)
|
||||
$(CC_)/include=($(GLGENDIR),$(GLSRCDIR))/obj=$(GLOBJ)gp_vms.$(OBJ) $(GLSRC)gp_vms.c
|
||||
|
||||
$(GLOBJ)gp_stdia.$(OBJ) : $(GLSRC)gp_stdia.c $(AK) $(stdio__h) $(time__h) $(unistd__h) $(gx_h) $(gp_h)
|
||||
$(CC_)/incl=$(GLOBJ)/obj=$(GLOBJ)gp_stdia.$(OBJ) $(GLSRC)gp_stdia.c
|
||||
|
||||
# Preliminary definitions
|
||||
|
||||
openvms : $(GLSRCDIR)openvms.com $(GLSRCDIR)openvms.opt
|
||||
@$(GLSRCDIR)OPENVMS
|
||||
|
||||
$(GLSRCDIR)openvms.com : $(GLSRCDIR)append_l.com
|
||||
@$(GLSRCDIR)APPEND_L $@ "$ DEFINE/JOB X11 $(X_INCLUDE)"
|
||||
@$(GLSRCDIR)APPEND_L $@ "$ DEFINE/JOB GS_LIB ''F$ENVIRONMENT(""DEFAULT"")'"
|
||||
@$(GLSRCDIR)APPEND_L $@ "$ DEFINE/JOB GS_DOC ''F$ENVIRONMENT(""DEFAULT"")'"
|
||||
@$(GLSRCDIR)APPEND_L $@ "$ DEFINE/JOB DECC$USER_INCLUDE ''F$ENVIRONMENT(""DEFAULT"")', DECW$INCLUDE, DECC$LIBRARY_INCLUDE, SYS$LIBRARY"
|
||||
@$(GLSRCDIR)APPEND_L $@ "$ DEFINE/JOB DECC$SYSTEM_INCLUDE ''F$ENVIRONMENT(""DEFAULT"")', DECW$INCLUDE, DECC$LIBRARY_INCLUDE, SYS$LIBRARY"
|
||||
@$(GLSRCDIR)APPEND_L $@ "$ DEFINE/JOB SYS "DECC$LIBRARY_INCLUDE,SYS$LIBRARY"
|
||||
|
||||
$(GLSRCDIR)openvms.opt :
|
||||
.ifdef DECWINDOWS1_2
|
||||
@$(GLSRCDIR)APPEND_L $@ "SYS$SHARE:DECW$XMLIBSHR12.EXE/SHARE"
|
||||
@$(GLSRCDIR)APPEND_L $@ "SYS$SHARE:DECW$XTLIBSHRR5.EXE/SHARE"
|
||||
@$(GLSRCDIR)APPEND_L $@ "SYS$SHARE:DECW$XLIBSHR.EXE/SHARE"
|
||||
.else
|
||||
@$(GLSRCDIR)APPEND_L $@ "SYS$SHARE:DECW$XMLIBSHR.EXE/SHARE"
|
||||
@$(GLSRCDIR)APPEND_L $@ "SYS$SHARE:DECW$XTSHR.EXE/SHARE"
|
||||
@$(GLSRCDIR)APPEND_L $@ "SYS$SHARE:DECW$XLIBSHR.EXE/SHARE"
|
||||
.endif
|
||||
@$(GLSRCDIR)APPEND_L $@ ""Ident="""""GS $(GS_DOT_VERSION)"""""
|
||||
|
||||
# The platform-specific makefiles must also include rules for creating
|
||||
# certain dynamically generated files:
|
||||
# gconfig_.h - this indicates the presence or absence of
|
||||
# certain system header files that are located in different
|
||||
# places on different systems. (It could be generated by
|
||||
# the GNU `configure' program.)
|
||||
# gconfigv.h - this indicates the status of certain machine-
|
||||
# and configuration-specific features derived from definitions
|
||||
# in the platform-specific makefile.
|
||||
|
||||
$(gconfig__h) : $(TOP_MAKEFILES) $(ECHOGS_XE)
|
||||
$(EXP)$(ECHOGS_XE) -w $(gconfig__h) -x 23 define "HAVE_SYS_TIME_H"
|
||||
|
||||
$(gconfigv_h) : $(TOP_MAKEFILES) $(ECHOGS_XE)
|
||||
$(EXP)$(ECHOGS_XE) -w $(gconfigv_h) -x 23 define "USE_ASM" 0
|
||||
$(EXP)$(ECHOGS_XE) -a $(gconfigv_h) -x 23 define "USE_FPU" 1
|
||||
$(EXP)$(ECHOGS_XE) -a $(gconfigv_h) -x 23 define "EXTEND_NAMES" 0$(EXTEND_NAMES)
|
||||
$(EXP)$(ECHOGS_XE) -a $(gconfigv_h) -x 23 define "SYSTEM_CONSTANTS_ARE_WRITABLE" 0$(SYSTEM_CONSTANTS_ARE_WRITABLE)
|
||||
1204
samples/Module Management System/simh_descrip.mms
Executable file
1204
samples/Module Management System/simh_descrip.mms
Executable file
File diff suppressed because it is too large
Load Diff
31
samples/Module Management System/spline_descrip.mms
Normal file
31
samples/Module Management System/spline_descrip.mms
Normal file
@@ -0,0 +1,31 @@
|
||||
!
|
||||
! $Id: descrip.mms 35 2008-01-08 21:37:42Z tmr $
|
||||
!
|
||||
! Project: LISP -- The LISP Interpreter
|
||||
! Created: 22-DEC-2008 18:35
|
||||
! Author: tmr
|
||||
|
||||
cc = cc
|
||||
cflags = /define="_VMS_=1" -
|
||||
/WARN=DISABLE=(ZERODIV,FLOATOVERFL,NOMAINUFLO) -
|
||||
/IEEE_MODE=UNDERFLOW_TO_ZERO/FLOAT=IEEE
|
||||
core = LISP_CORE
|
||||
main = LISP_MAIN
|
||||
exec = [.bin]LISP
|
||||
clib = SYS$LIBRARY:VAXCRTL
|
||||
head = LISP_CORE
|
||||
objs = $(core).obj, $(main).obj
|
||||
|
||||
$(exec) : $(objs)
|
||||
DEFINE/NOLOG LNK$LIBRARY $(clib)
|
||||
LINK/EXEC=$(exec) $(objs)
|
||||
DEASSIGN LNK$LIBRARY
|
||||
|
||||
$(core).obj : $(core).c, $(head).h
|
||||
|
||||
$(main).obj : $(main).c, $(head).h
|
||||
|
||||
clean :
|
||||
del *.obj;*
|
||||
del *.exe;*
|
||||
|
||||
271
samples/Module Management System/xv_makefile.mms
Normal file
271
samples/Module Management System/xv_makefile.mms
Normal file
@@ -0,0 +1,271 @@
|
||||
# MMS Description file for xv
|
||||
# Written by Rick Dyson (dyson@iowasp.physics.uiowa.edu)
|
||||
# Last Modified: 30-APR-1992 for v2.21
|
||||
# 5-OCT-1992 for v2.21 (export.lcs.mit.edu version
|
||||
# of xv-2.21 seemed to change about
|
||||
# 25-Sep-1992 without version number
|
||||
# changing.
|
||||
# 8-FEB-1993 for v2.21b
|
||||
# ALPHA support is in ALPHA.MMS
|
||||
# 2-MAR-1993 for v3.00
|
||||
# 15-APR-1993 for v3.00 (DEC C changes)
|
||||
# 25-MAY-1993 merged ALPHA.MMS and MAKEFILE.MMS
|
||||
# 27-APR-1994 for v3.01
|
||||
# 23-DEC-1994 for v3.10
|
||||
#
|
||||
# Modeled after the original Unix Makefile for xv
|
||||
# Most of the Unix comments have been left intact to help debug any
|
||||
# problems.
|
||||
|
||||
|
||||
# BE SURE TO SET THIS TO YOUR SITE'S DESTINATION DIRECTORY...!!!
|
||||
BINDIR = Sys$Disk:[]
|
||||
|
||||
# your C compiler (and options) of choice
|
||||
# Remember: if you change the C compiler (to gcc, or whatever), be sure to
|
||||
# do the same thing to the Makefile in the 'jpeg' and 'tiff' subdirectories
|
||||
#
|
||||
# For ALPHA/DEC C users, you must add a MACRO qualifier to the
|
||||
# command line, i.e.,
|
||||
# MMS /Description = Makefile.mms /Macro = ("ALPHA=1")
|
||||
#
|
||||
# For VAX/DEC C users, you must add a MACRO qualifier to the
|
||||
# command line, i.e.,
|
||||
# MMS /Description = Makefile.mms /Macro = ("DECC=1")
|
||||
#
|
||||
# Users still using the non-MOTIF DECWindows (i.e., XUI) should also
|
||||
# add another macro of "DEC_XUI=1"
|
||||
|
||||
CC = cc
|
||||
|
||||
|
||||
################ CONFIGURATION OPTIONS #################
|
||||
|
||||
# if, for whatever reason, you're unable to get the JPEG library to compile
|
||||
# on your machine, *COMMENT OUT* the following lines.
|
||||
#
|
||||
# Also, comment out the JPEGLIB dependancy below.
|
||||
#
|
||||
# VMS MMS USERS!!!
|
||||
#
|
||||
# if you don't use the JPEG package as supplied with XV, you
|
||||
# will need fill in the complete directory specifications for JPEGDIR.
|
||||
#
|
||||
JPEG = ,HAVE_JPEG
|
||||
JPEGDIR = [.JPEG]
|
||||
JPEGLIB = $(JPEGDIR)LIBJPEG.OLB
|
||||
JPEGINCLUDE = ,$(JPEGDIR)
|
||||
|
||||
|
||||
# if, for whatever reason, you're unable to get the TIFF library to compile
|
||||
# on your machine, *COMMENT OUT* the following lines
|
||||
#
|
||||
# Also, comment out the LIBTIFF dependancy at the end of this Makefile
|
||||
#
|
||||
# if you don't use the TIFF package as supplied with XV, you
|
||||
# will need to fill in the complete directory specifications for TIFFDIR.
|
||||
#
|
||||
TIFF = ,HAVE_TIFF
|
||||
TIFFDIR = [.TIFF]
|
||||
TIFFLIB = $(TIFFDIR)LIBTIFF.OLB
|
||||
TIFFINCLUDE = ,$(TIFFDIR)
|
||||
|
||||
|
||||
# if, for whatever reason, you're unable to get the PDS/VICAR support
|
||||
# to compile (xvpds.c, and vdcomp.c), *COMMENT OUT* the following line,
|
||||
# and also remove 'vdcomp' from the 'all:' dependancy
|
||||
PDS = ,HAVE_PDS
|
||||
|
||||
|
||||
# If you are still using the DECWindows XUI interface, uncomment the
|
||||
# next line. This will help stop the "window creep" problem with this
|
||||
# window mananager
|
||||
.ifdef DEC_XUI
|
||||
XUI = ,HAVE_XUI
|
||||
.endif
|
||||
|
||||
DEFS = /Define = (VMS$(JPEG)$(PDS)$(TIFF)$(TIMERS)$(XUI))
|
||||
INCS = /Include = ([]$(JPEGINCLUDE)$(TIFFINCLUDE))
|
||||
|
||||
.ifdef ALPHA
|
||||
OPTIMIZE = /Optimize /Standard = VAXC
|
||||
OPTS = Sys$Disk:[]DECC_OPTIONS.OPT
|
||||
.else
|
||||
.ifdef DECC
|
||||
OPTIMIZE = /Optimize /Standard = VAXC /Warnings = NoInformationals
|
||||
OPTS = Sys$Disk:[]DECC_OPTIONS.OPT
|
||||
.else
|
||||
OPTIMIZE = /Optimize
|
||||
OPTS = Sys$Disk:[]VAXC_OPTIONS.OPT
|
||||
.endif
|
||||
.endif
|
||||
DEBUG = /NoDebug
|
||||
|
||||
CFLAGS = $(CFLAGS) $(DEFS) $(INCS) $(DEBUG) $(OPTIMIZE)
|
||||
LINKFLAGS = $(LINKFLAGS) $(DEBUG)
|
||||
|
||||
XVLIB = LIBXV.OLB
|
||||
|
||||
OBJS = xv.obj,xvevent.obj,xvroot.obj,xvmisc.obj,xvimage.obj,xvcolor.obj, \
|
||||
xvsmooth.obj,xv24to8.obj,xvgif.obj,xvpm.obj,xvinfo.obj,xvctrl.obj, \
|
||||
xvscrl.obj,xvalg.obj,xvgifwr.obj,xvdir.obj,xvbutt.obj,xvpbm.obj, \
|
||||
xvxbm.obj,xvgam.obj,xvbmp.obj,xvdial.obj,xvgraf.obj,xvsunras.obj, \
|
||||
xvjpeg.obj,xvps.obj,xvpopup.obj,xvdflt.obj,xvtiff.obj,xvtiffwr.obj, \
|
||||
xvpds.obj,xvrle.obj,xviris.obj,xvgrab.obj,xvbrowse.obj,xviff.obj, \
|
||||
xvtext.obj,xvpcx.obj,xvtarga.obj,xvxpm.obj,xvcut.obj,xvxwd.obj, \
|
||||
xvfits.obj,vms.obj
|
||||
|
||||
|
||||
BITS = [.Bits]annot.h
|
||||
|
||||
MISC = readme. changelog. ideas.
|
||||
|
||||
.first
|
||||
.ifdef ALPHA
|
||||
@- Define /NoLog Sys DECC$Library_Include
|
||||
.else
|
||||
.ifdef DECC
|
||||
@- Define /NoLog Sys DECC$Library_Include
|
||||
.else
|
||||
@- Define /NoLog Sys Sys$Library
|
||||
.endif
|
||||
@- Define /NoLog X11 DECW$Include
|
||||
@- XVDIR = F$Environment ("Default")
|
||||
.endif
|
||||
|
||||
all : $(BITS) $(OPTS) lib xv bggen decompress xcmap xvpictoppm help
|
||||
! All Finished with the VMS build of XV (v3.10)
|
||||
|
||||
lib : $(JPEGLIB) $(TIFFLIB) $(XVLIB)
|
||||
@ Continue
|
||||
|
||||
xv : xv.exe
|
||||
@ Continue
|
||||
|
||||
bggen : bggen.exe
|
||||
@ Continue
|
||||
|
||||
xcmap : xcmap.exe
|
||||
@ Continue
|
||||
|
||||
xvpictoppm : xvpictoppm.exe
|
||||
@ Continue
|
||||
|
||||
help : xv.hlb
|
||||
@ Continue
|
||||
|
||||
decompress : decompress.exe vdcomp.exe
|
||||
@ Continue
|
||||
|
||||
bggen.exe : bggen.obj $(XVLIB) $(OPTS)
|
||||
$(LINK) $(LINKFLAGS) bggen.obj,$(XVLIB)/Library,$(OPTS)/Option
|
||||
|
||||
xcmap.exe : xcmap.obj
|
||||
$(LINK) $(LINKFLAGS) xcmap.obj,$(XVLIB)/Library,$(OPTS)/Option
|
||||
|
||||
xvpictoppm.exe : xvpictoppm.obj
|
||||
$(LINK) $(LINKFLAGS) xvpictoppm.obj,$(XVLIB)/Library,$(OPTS)/Option
|
||||
|
||||
xv.exe : xv.obj $(XVLIB) $(JPEGLIB) $(TIFFLIB) $(OPTS)
|
||||
$(LINK) $(LINKFLAGS) xv.obj,$(XVLIB)/Library,$(JPEGLIB)/Library,$(TIFFLIB)/Library,$(OPTS)/Option
|
||||
|
||||
$(JPEGLIB) :
|
||||
Set Default $(JPEGDIR)
|
||||
.ifdef ALPHA
|
||||
$(MMS) $(MMSDEFAULTS) /Description = MAKEFILE.MMS /Macro = "ALPHA = 1" LIBJPEG.OLB
|
||||
.else
|
||||
$(MMS) $(MMSDEFAULTS) /Description = MAKEFILE.MMS LIBJPEG.OLB
|
||||
.endif
|
||||
Set Default 'XVDIR'
|
||||
|
||||
$(TIFFLIB) :
|
||||
Set Default $(TIFFDIR)
|
||||
.ifdef ALPHA
|
||||
$(MMS) $(MMSDEFAULTS) /Description = MAKEFILE.MMS /Macro = "ALPHA = 1" LIBTIFF.OLB
|
||||
.else
|
||||
.ifdef DECC
|
||||
$(MMS) $(MMSDEFAULTS) /Description = MAKEFILE.MMS /Macro = "ALPHA = 1" LIBTIFF.OLB
|
||||
.else
|
||||
$(MMS) $(MMSDEFAULTS) /Description = MAKEFILE.MMS LIBTIFF.OLB
|
||||
.endif
|
||||
.endif
|
||||
Set Default 'XVDIR'
|
||||
|
||||
$(XVLIB) : $(OBJS)
|
||||
If "''F$Search ("$(XVLIB)")'" .eqs. "" Then Library /Create $(XVLIB)
|
||||
Library /Replace $(XVLIB) $(OBJS)
|
||||
|
||||
decompress.exe : decompress.obj
|
||||
$(LINK) $(LINKFLAGS) decompress.obj,$(OPTS)/Option
|
||||
|
||||
vdcomp.exe : vdcomp.obj
|
||||
$(LINK) $(LINKFLAGS) vdcomp.obj,$(OPTS)/Option
|
||||
|
||||
[.Bits]annot.h :
|
||||
Set Default [.Bits]
|
||||
Set Protection = Owner:RWED *.
|
||||
Rename *. *.H
|
||||
Set Protection = Owner:RWE *.H
|
||||
Set Default [-]
|
||||
|
||||
# various dependencies
|
||||
$(OBJS) : xv.h config.h
|
||||
xv.hlb : xv.hlp
|
||||
vms.obj : includes.h dirent.h
|
||||
|
||||
#
|
||||
# Build the linker options file for OpenVMS VAX and VAX C.
|
||||
#
|
||||
Sys$Disk:[]VAXC_Options.opt :
|
||||
@ Open /Write TMP VAXC_Options.opt
|
||||
@ Write TMP "! XV (v3.10) Linker Options list for VMS VAX C"
|
||||
@ Write TMP "!"
|
||||
@ Write TMP "Sys$Disk:[]LibXV.OLB /Library"
|
||||
@ Write TMP "Sys$Disk:[.JPEG]LibJPEG.OLB /Library"
|
||||
@ Write TMP "Sys$Disk:[.TIFF]LibTIFF.OLB /Library"
|
||||
.ifdef DEC_XUI
|
||||
@ Write TMP "!"
|
||||
@ Write TMP "! These were appropriate for VAX C and XUI in the past."
|
||||
@ Write TMP "Sys$Library:DECW$DWTLibShr.exe /Share
|
||||
@ Write TMP "Sys$Library:DECW$XLibShr.exe /Share
|
||||
@ Write TMP "!You may need the next line for VAX C (v3.2-044)"
|
||||
@ Write TMP "!But you don't for DEC C (v4.0-000)"
|
||||
@ Write TMP "Sys$Library:VAXCRTL.EXE /Share"
|
||||
.else
|
||||
@ Write TMP "!"
|
||||
@ Write TMP "! Some of the following libraries may not be available on"
|
||||
@ Write TMP "! older systems, namely XUI or Motif v1.0/1.1"
|
||||
@ Write TMP "! I know they are available for OpenVMS v6.1/Motif v1.2."
|
||||
@ Write TMP "! If you get a report that they can't be found,"
|
||||
@ Write TMP "! comment them out and try again..."
|
||||
@ Write TMP "Sys$Library:DECW$DXMLibShr12.exe /Share
|
||||
@ Write TMP "Sys$Library:DECW$XMLibShr12.exe /Share
|
||||
@ Write TMP "Sys$Library:DECW$XTLibShrR5.exe /Share"
|
||||
@ Write TMP "Sys$Library:DECW$XLibShr.exe /Share
|
||||
.endif
|
||||
@ Close TMP
|
||||
|
||||
Sys$Disk:[]DECC_Options.opt :
|
||||
@ Open /Write TMP DECC_Options.opt
|
||||
@ Write TMP "! XV (v3.10) Linker Options list for VMS DEC C"
|
||||
@ Write TMP "!"
|
||||
@ Write TMP "Sys$Disk:[]LibXV.olb /Library"
|
||||
@ Write TMP "Sys$Disk:[.JPEG]LibJPEG.olb /Library"
|
||||
@ Write TMP "Sys$Disk:[.TIFF]LibTIFF.olb /Library"
|
||||
@ Write TMP "Sys$Library:DECW$XTShr.exe /Share"
|
||||
@ Write TMP "Sys$Library:DECW$XLibShr.exe /Share"
|
||||
@ Close TMP
|
||||
|
||||
install : xv.exe vdcomp.exe bggen.exe decompress.exe
|
||||
Copy *.exe $(BINDIR)
|
||||
|
||||
clean :
|
||||
@- Set Protection = Owner:RWED *.obj,*.*;-1
|
||||
- Delete /NoConfirm /NoLog *.obj;*,*.exe;*,*.log;*,*.olb;*,*.hlb;*
|
||||
- Purge /NoConfirm /NoLog
|
||||
Set Default [.JPEG]
|
||||
$(MMS) /Description = MAKEFILE.MMS clean
|
||||
- Delete /NoConfirm /NoLog *.olb;*
|
||||
Set Default [-.TIFF]
|
||||
$(MMS) /Description = MAKEFILE.MMS clean
|
||||
Set Default [-]
|
||||
Reference in New Issue
Block a user