|
Packit |
575503 |
# Descrip.MMS -- Makefile for building GNU awk on VMS.
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
# usage:
|
|
Packit |
575503 |
# $ MMS /Description=[.vms]Descrip.MMS gawk
|
|
Packit |
575503 |
# possibly add `/Macro=("GNUC=1")' to compile with GNU C,
|
|
Packit |
575503 |
# or add `/Macro=("GNUC=1","DO_GNUC_SETUP=1")' to compile with GNU C
|
|
Packit |
575503 |
# on a system where GCC is not installed as a defined command,
|
|
Packit |
575503 |
# or add `/Macro=("VAXC=1")' to compile with VAX C,
|
|
Packit |
575503 |
# or add `/Macro=("VAXC=1","CC=cc/VAXC")' to compile with VAX C on
|
|
Packit |
575503 |
# a system which has DEC C installed as the default compiler.
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
# gawk.exe :
|
|
Packit |
575503 |
# This is the default target. DEC C has become the default compiler.
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
# awkgram.c :
|
|
Packit |
575503 |
# If you don't have bison but do have VMS POSIX or DEC/Shell,
|
|
Packit |
575503 |
# change the PARSER and PASERINIT macros to use yacc. If you don't
|
|
Packit |
575503 |
# have either yacc or bison, you'll have to make sure that the
|
|
Packit |
575503 |
# distributed version of "awkgram.c" has its modification date later
|
|
Packit |
575503 |
# than the date of "awkgram.y", so that MMS won't try to build that
|
|
Packit |
575503 |
# target. If you use bison and it is already defined system-wide,
|
|
Packit |
575503 |
# comment out the PARSERINIT definition.
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
# command.c :
|
|
Packit |
575503 |
# Similar to awkgram.c; built from command.y with yacc or bison.
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
# install.help :
|
|
Packit |
575503 |
# You can make the target 'install.help' to load the VMS help text
|
|
Packit |
575503 |
# into a help library. Modify the HELPLIB macro if you don't want
|
|
Packit |
575503 |
# to put entry into the regular VMS library. (If you use an alternate
|
|
Packit |
575503 |
# help library, it must already exist; this target won't create it.)
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
# gawk.dvi :
|
|
Packit |
575503 |
# If you have TeX, you can make the target 'gawk.dvi' to process
|
|
Packit |
575503 |
# _The_GAWK_Manual_ from gawk.texi. You'll need to use a device
|
|
Packit |
575503 |
# specific post-processor on gawk.dvi in order to get printable data.
|
|
Packit |
575503 |
# The full output is approximately 325 pages.
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
|
|
Packit |
575503 |
# location of various source files, relative to the 'main' directory
|
|
Packit |
575503 |
SUPPORT = [.support]
|
|
Packit |
575503 |
VMSDIR = [.vms]
|
|
Packit |
575503 |
DOCDIR = [.doc]
|
|
Packit |
575503 |
MISSNGD = [.missing_d]
|
|
Packit |
575503 |
MAKEFILE = $(VMSDIR)Descrip.MMS
|
|
Packit |
575503 |
|
|
Packit |
575503 |
# debugging &c !'ccflags' is an escape to allow external compile flags
|
|
Packit |
575503 |
#CCFLAGS = /noOpt/Debug
|
|
Packit |
575503 |
|
|
Packit |
575503 |
# a comma separated list of macros to define
|
|
Packit |
575503 |
# Do not specify _POSIX_EXIT here, other tricks are used for this.
|
|
Packit |
575503 |
CDEFS = "GAWK","HAVE_CONFIG_H"
|
|
Packit |
575503 |
|
|
Packit |
575503 |
.ifdef GNUC
|
|
Packit |
575503 |
# assumes VAX
|
|
Packit |
575503 |
CC = gcc
|
|
Packit |
575503 |
CFLAGS = /Incl=([],$(VMSDIR))/Obj=[]/Def=($(CDEFS)) $(CCFLAGS)
|
|
Packit |
575503 |
LIBS = gnu_cc:[000000]gcclib.olb/Library,sys$library:vaxcrtl.olb/Library
|
|
Packit |
575503 |
.ifdef DO_GNUC_SETUP
|
|
Packit |
575503 |
# in case GCC command verb needs to be manually defined
|
|
Packit |
575503 |
.first
|
|
Packit |
575503 |
set command gnu_cc:[000000]gcc
|
|
Packit |
575503 |
.endif !DO_GNUC_SETUP
|
|
Packit |
575503 |
.else !!GNUC
|
|
Packit |
575503 |
.ifdef VAXC
|
|
Packit |
575503 |
# always VAX; versions of VAX C older than V3.2 won't work
|
|
Packit |
575503 |
CC = cc
|
|
Packit |
575503 |
CFLAGS = /Incl=[]/Obj=[]/Opt=noInline/Def=($(CDEFS)) $(CCFLAGS)
|
|
Packit |
575503 |
LIBS = sys$share:vaxcrtl.exe/Shareable
|
|
Packit |
575503 |
.else !!VAXC
|
|
Packit |
575503 |
# neither GNUC nor VAXC, assume DECC (same for either VAX or Alpha)
|
|
Packit |
575503 |
.ifdef __VAX__
|
|
Packit |
575503 |
CFLOAT =
|
|
Packit |
575503 |
.else
|
|
Packit |
575503 |
CFLOAT = /float=ieee/ieee_mode=denorm_results
|
|
Packit |
575503 |
.endif
|
|
Packit |
575503 |
CNAME = /NAME=(AS_IS,SHORT)
|
|
Packit |
575503 |
CC = cc/DECC/Prefix=All/NESTED_INCLUDE=NONE$(CFLOAT)
|
|
Packit |
575503 |
CINC1 = [],[.VMS],$(SUPPORT)
|
|
Packit |
575503 |
CFLAGS = /Incl=($(CINC1))/Obj=[]/Def=($(CDEFS))$(CNAME) $(CCFLAGS)
|
|
Packit |
575503 |
CEFLAGS = /Incl=($(CINC1),[.missing_d],[.extension])$(CNAME) $(CCFLAGS)
|
|
Packit |
575503 |
LIBS = # DECC$SHR instead of VAXCRTL, no special link option needed
|
|
Packit |
575503 |
.endif !VAXC
|
|
Packit |
575503 |
.endif !GNUC
|
|
Packit |
575503 |
|
|
Packit |
575503 |
|
|
Packit |
575503 |
PARSER = bison
|
|
Packit |
575503 |
PARSERINIT = set command gnu_bison:[000000]bison
|
|
Packit |
575503 |
#PARSER = yacc
|
|
Packit |
575503 |
#PARSERINIT = yacc := posix/run/path=posix """/bin/yacc"
|
|
Packit |
575503 |
#PARSERINIT = yacc := $shell$exe:yacc
|
|
Packit |
575503 |
|
|
Packit |
575503 |
# this is used for optional target 'install.help'
|
|
Packit |
575503 |
HELPLIB = sys$help:helplib.hlb
|
|
Packit |
575503 |
#HELPLIB = sys$help:local.hlb
|
|
Packit |
575503 |
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
######## nothing below this line should need to be changed ########
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
|
|
Packit |
575503 |
ECHO = write sys$output
|
|
Packit |
575503 |
NOOP = continue
|
|
Packit |
575503 |
|
|
Packit |
575503 |
# object files
|
|
Packit |
575503 |
GAWKOBJ = eval.obj,profile.obj
|
|
Packit |
575503 |
AWKOBJ1 = array.obj,awkgram.obj,builtin.obj,cint_array.obj,\
|
|
Packit |
575503 |
command.obj,debug.obj,dfa.obj,ext.obj,field.obj,\
|
|
Packit |
575503 |
floatcomp.obj,gawkapi.obj,gawkmisc.obj,getopt.obj,getopt1.obj
|
|
Packit |
575503 |
|
|
Packit |
575503 |
AWKOBJ2 = int_array.obj,io.obj,localeinfo.obj,main.obj,mpfr.obj,msg.obj,\
|
|
Packit |
575503 |
node.obj,random.obj,re.obj,regex.obj,replace.obj,\
|
|
Packit |
575503 |
str_array.obj,symbol.obj,version.obj
|
|
Packit |
575503 |
|
|
Packit |
575503 |
AWKOBJS = $(AWKOBJ1),$(AWKOBJ2)
|
|
Packit |
575503 |
|
|
Packit |
575503 |
# VMSOBJS
|
|
Packit |
575503 |
# VMS specific stuff
|
|
Packit |
575503 |
VMSCODE = vms_misc.obj,vms_popen.obj,vms_fwrite.obj,vms_args.obj,\
|
|
Packit |
575503 |
vms_gawk.obj,vms_cli.obj,vms_crtl_init.obj
|
|
Packit |
575503 |
VMSCMD = gawk_cmd.obj # built from .cld file
|
|
Packit |
575503 |
VMSOBJS = $(VMSCODE),$(VMSCMD)
|
|
Packit |
575503 |
|
|
Packit |
575503 |
DOCS= $(DOCDIR)gawk.1,$(DOCDIR)gawk.texi,$(DOCDIR)texinfo.tex
|
|
Packit |
575503 |
|
|
Packit |
575503 |
# generic target
|
|
Packit |
575503 |
all : gawk gawk_debug
|
|
Packit |
575503 |
@ $(NOOP)
|
|
Packit |
575503 |
|
|
Packit |
575503 |
# dummy target to allow building "gawk" in addition to explicit "gawk.exe"
|
|
Packit |
575503 |
gawk : gawk.exe
|
|
Packit |
575503 |
@ $(ECHO) "$< is upto date"
|
|
Packit |
575503 |
|
|
Packit |
575503 |
gawk_debug : gawk_debug.exe
|
|
Packit |
575503 |
@ $(ECHO) "$< is upto date"
|
|
Packit |
575503 |
|
|
Packit |
575503 |
# rules to build gawk
|
|
Packit |
575503 |
gawk.exe : $(GAWKOBJ) $(AWKOBJS) $(VMSOBJS) gawk.opt
|
|
Packit |
575503 |
$(LINK) $(LINKFLAGS)/EXE=$(MMS$TARGET) gawk.opt/options
|
|
Packit |
575503 |
|
|
Packit |
575503 |
gawk_debug.exe : $(GAWKOBJ) $(AWKOBJS) $(VMSOBJS) gawk.opt
|
|
Packit |
575503 |
$(LINK) $(LINKFLAGS)/DEBUG/EXE=$(MMS$TARGET) gawk.opt/options
|
|
Packit |
575503 |
|
|
Packit |
575503 |
gawk.opt : $(MAKEFILE) config.h # create linker options file
|
|
Packit |
575503 |
@ open/write opt sys$disk:[]gawk.opt ! ~ 'cat <<close >gawk.opt'
|
|
Packit |
575503 |
@ write opt "! GAWK -- GNU awk"
|
|
Packit |
575503 |
@ write opt "$(GAWKOBJ)"
|
|
Packit |
575503 |
@ write opt "$(AWKOBJ1)"
|
|
Packit |
575503 |
@ write opt "$(AWKOBJ2)"
|
|
Packit |
575503 |
@ write opt "$(VMSOBJS)"
|
|
Packit |
575503 |
@ write opt "psect_attr=environ,noshr !extern [noshare] char **"
|
|
Packit |
575503 |
@ write opt "stack=48 !preallocate more pages (default is 20)"
|
|
Packit |
575503 |
@ write opt "iosegment=128 !ditto (default is 32)"
|
|
Packit |
575503 |
@ write opt "$(LIBS)"
|
|
Packit |
575503 |
@ close opt
|
|
Packit |
575503 |
$ @$(VMSDIR)gawk_ident.com
|
|
Packit |
575503 |
|
|
Packit |
575503 |
$(VMSCODE) : awk.h config.h $(VMSDIR)redirect.h $(VMSDIR)vms.h
|
|
Packit |
575503 |
$(AWKOBJS) : awk.h gettext.h mbsupport.h $(SUPPORT)regex.h \
|
|
Packit |
575503 |
$(SUPPORT)dfa.h config.h $(VMSDIR)redirect.h
|
|
Packit |
575503 |
$(GAWKOBJ) : awk.h config.h $(VMSDIR)redirect.h
|
|
Packit |
575503 |
|
|
Packit |
575503 |
#-----------------------------------------------------------------------------
|
|
Packit |
575503 |
# Older versions of MMS have problems handling lower case file names typically
|
|
Packit |
575503 |
# found on ODS-5 disks. Fix this by adding explicit dependencies.
|
|
Packit |
575503 |
#_____________________________________________________________________________
|
|
Packit |
575503 |
|
|
Packit |
575503 |
array.obj : array.c
|
|
Packit |
575503 |
awkgram.obj : awkgram.c awk.h
|
|
Packit |
575503 |
builtin.obj : builtin.c floatmagic.h $(SUPPORT)random.h
|
|
Packit |
575503 |
cint_array.obj : cint_array.c
|
|
Packit |
575503 |
command.obj : command.c cmd.h
|
|
Packit |
575503 |
debug.obj : debug.c cmd.h
|
|
Packit |
575503 |
dfa.obj : $(SUPPORT)dfa.c $(SUPPORT)dfa.h
|
|
Packit |
575503 |
ext.obj : ext.c
|
|
Packit |
575503 |
eval.obj : eval.c
|
|
Packit |
575503 |
field.obj : field.c
|
|
Packit |
575503 |
floatcomp.obj : floatcomp.c
|
|
Packit |
575503 |
gawkaoi.obj : gawkapi.c
|
|
Packit |
575503 |
gawkmisc.obj : gawkmisc.c $(VMSDIR)gawkmisc.vms
|
|
Packit |
575503 |
getopt.obj : $(SUPPORT)getopt.c
|
|
Packit |
575503 |
getopt1.obj : $(SUPPORT)getopt1.c
|
|
Packit |
575503 |
int_array.obj : int_array.c
|
|
Packit |
575503 |
io.obj : io.c
|
|
Packit |
575503 |
localeinfo.obj : $(SUPPORT)localeinfo.c
|
|
Packit |
575503 |
main.obj : main.c
|
|
Packit |
575503 |
msg.obj : msg.c
|
|
Packit |
575503 |
mpfr.obj : mpfr.c
|
|
Packit |
575503 |
node.obj : node.c
|
|
Packit |
575503 |
profile.obj : profile.c
|
|
Packit |
575503 |
random.obj : $(SUPPORT)random.c $(SUPPORT)random.h
|
|
Packit |
575503 |
re.obj : re.c
|
|
Packit |
575503 |
regex.obj : $(SUPPORT)regex.c $(SUPPORT)regcomp.c \
|
|
Packit |
575503 |
$(SUPPORT)regex_internal.c $(SUPPORT)regexec.c \
|
|
Packit |
575503 |
$(SUPPORT)regex.h $(SUPPORT)regex_internal.h
|
|
Packit |
575503 |
str_array.obj : str_array.c
|
|
Packit |
575503 |
symbol.obj : symbol.c
|
|
Packit |
575503 |
version.obj : version.c
|
|
Packit |
575503 |
vms_misc.obj : $(VMSDIR)vms_misc.c
|
|
Packit |
575503 |
vms_popen.obj : $(VMSDIR)vms_popen.c
|
|
Packit |
575503 |
vms_fwrite.obj : $(VMSDIR)vms_fwrite.c
|
|
Packit |
575503 |
vms_args.obj : $(VMSDIR)vms_args.c
|
|
Packit |
575503 |
vms_gawk.obj : $(VMSDIR)vms_gawk.c
|
|
Packit |
575503 |
vms_cli.obj : $(VMSDIR)vms_cli.c
|
|
Packit |
575503 |
vms_crtl_init.obj : $(VMSDIR)vms_crtl_init.c
|
|
Packit |
575503 |
replace.obj : replace.c $(MISSNGD)system.c $(MISSNGD)memcmp.c \
|
|
Packit |
575503 |
$(MISSNGD)memcpy.c $(MISSNGD)memset.c $(MISSNGD)memmove.c \
|
|
Packit |
575503 |
$(MISSNGD)strncasecmp.c $(MISSNGD)strerror.c \
|
|
Packit |
575503 |
$(MISSNGD)strftime.c $(MISSNGD)strchr.c $(MISSNGD)strtod.c \
|
|
Packit |
575503 |
$(MISSNGD)strtoul.c $(MISSNGD)tzset.c $(MISSNGD)mktime.c \
|
|
Packit |
575503 |
$(MISSNGD)snprintf.c $(MISSNGD)getaddrinfo.c \
|
|
Packit |
575503 |
$(MISSNGD)usleep.c \
|
|
Packit |
575503 |
$(MISSNGD)setenv.c $(MISSNGD)strcoll.c $(MISSNGD)wcmisc.c
|
|
Packit |
575503 |
|
|
Packit |
575503 |
# bison or yacc have not been ported to current VMS versions
|
|
Packit |
575503 |
# When that changes, this can be restored.
|
|
Packit |
575503 |
# bison or yacc required
|
|
Packit |
575503 |
# awkgram.c : awkgram.y # foo.y :: yacc => y[_]tab.c, bison => foo_tab.c
|
|
Packit |
575503 |
# @- if f$search("ytab.c") .nes."" then delete ytab.c;* !POSIX yacc
|
|
Packit |
575503 |
# @- if f$search("y_tab.c") .nes."" then delete y_tab.c;* !DEC/Shell yacc
|
|
Packit |
575503 |
# @- if f$search("awkgram_tab.c").nes."" then delete awkgram_tab.c;* !bison
|
|
Packit |
575503 |
# - $(PARSERINIT)
|
|
Packit |
575503 |
# $(PARSER) $(YFLAGS) $<
|
|
Packit |
575503 |
# @- if f$search("ytab.c") .nes."" then rename/new_vers ytab.c $@
|
|
Packit |
575503 |
# @- if f$search("y_tab.c") .nes."" then rename/new_vers y_tab.c $@
|
|
Packit |
575503 |
# @- if f$search("awkgram_tab.c").nes."" then \
|
|
Packit |
575503 |
# rename/new_vers awkgram_tab.c $@
|
|
Packit |
575503 |
|
|
Packit |
575503 |
# command.c : command.y
|
|
Packit |
575503 |
# @- if f$search("ytab.c") .nes."" then delete ytab.c;*
|
|
Packit |
575503 |
# @- if f$search("y_tab.c") .nes."" then delete y_tab.c;*
|
|
Packit |
575503 |
# @- if f$search("command_tab.c").nes."" then delete command_tab.c;*
|
|
Packit |
575503 |
# - $(PARSERINIT)
|
|
Packit |
575503 |
# $(PARSER) $(YFLAGS) $<
|
|
Packit |
575503 |
# @- if f$search("ytab.c") .nes."" then rename/new_vers ytab.c $@
|
|
Packit |
575503 |
# @- if f$search("y_tab.c") .nes."" then rename/new_vers y_tab.c $@
|
|
Packit |
575503 |
# @- if f$search("command_tab.c").nes."" then \
|
|
Packit |
575503 |
# rename/new_vers command_tab.c $@
|
|
Packit |
575503 |
|
|
Packit |
575503 |
config_vms.h : $(VMSDIR)generate_config_vms_h_gawk.com
|
|
Packit |
575503 |
$ @$(VMSDIR)generate_config_vms_h_gawk.com
|
|
Packit |
575503 |
|
|
Packit |
575503 |
config.h : configh.in config_vms.h $(VMSDIR)config_h.com
|
|
Packit |
575503 |
$ @$(VMSDIR)config_h.com
|
|
Packit |
575503 |
|
|
Packit |
575503 |
$(VMSCMD) : $(VMSDIR)gawk.cld
|
|
Packit |
575503 |
set command $(CLDFLAGS)/object=$@ $<
|
|
Packit |
575503 |
|
|
Packit |
575503 |
# special target for loading the help text into a VMS help library
|
|
Packit |
575503 |
install.help : $(VMSDIR)gawk.hlp
|
|
Packit |
575503 |
library/help $(HELPLIB) $< /log
|
|
Packit |
575503 |
|
|
Packit |
575503 |
|
|
Packit |
575503 |
# Build dynamic extensions - Alpha/Itanium only.
|
|
Packit |
575503 |
.ifdef __VAX__
|
|
Packit |
575503 |
# VAX not complete yet.
|
|
Packit |
575503 |
plug_opt = [.VMS.VAX]gawk_plugin_xfer.opt
|
|
Packit |
575503 |
.else
|
|
Packit |
575503 |
plug_opt = [.vms]gawk_plugin.opt
|
|
Packit |
575503 |
.endif
|
|
Packit |
575503 |
|
|
Packit |
575503 |
ext_gawkdirfd_h = [.extension]gawkdirfd.h config.h nonposix.h
|
|
Packit |
575503 |
|
|
Packit |
575503 |
extensions : filefuncs.exe fnmatch.exe inplace.exe ordchr.exe readdir.exe \
|
|
Packit |
575503 |
revoutput.exe revtwoway.exe rwarray.exe testext.exe time.exe
|
|
Packit |
575503 |
|
|
Packit |
575503 |
filefuncs.exe : filefuncs.obj stack.obj gawkfts.obj $(plug_opt)
|
|
Packit |
575503 |
link/share=$(MMS$TARGET) $(MMS$SOURCE), stack.obj, gawkfts.obj, \
|
|
Packit |
575503 |
$(plug_opt)/opt
|
|
Packit |
575503 |
|
|
Packit |
575503 |
fnmatch.exe : fnmatch.obj $(plug_opt)
|
|
Packit |
575503 |
link/share=$(MMS$TARGET) $(MMS$SOURCE), $(plug_opt)/opt
|
|
Packit |
575503 |
|
|
Packit |
575503 |
inplace.exe : inplace.obj $(plug_opt)
|
|
Packit |
575503 |
link/share=$(MMS$TARGET) $(MMS$SOURCE), $(plug_opt)/opt
|
|
Packit |
575503 |
|
|
Packit |
575503 |
ordchr.exe : ordchr.obj $(plug_opt)
|
|
Packit |
575503 |
link/share=$(MMS$TARGET) $(MMS$SOURCE), $(plug_opt)/opt
|
|
Packit |
575503 |
|
|
Packit |
575503 |
readdir.exe : readdir.obj $(plug_opt)
|
|
Packit |
575503 |
link/share=$(MMS$TARGET) $(MMS$SOURCE), $(plug_opt)/opt
|
|
Packit |
575503 |
|
|
Packit |
575503 |
revoutput.exe : revoutput.obj $(plug_opt)
|
|
Packit |
575503 |
link/share=$(MMS$TARGET) $(MMS$SOURCE), $(plug_opt)/opt
|
|
Packit |
575503 |
|
|
Packit |
575503 |
revtwoway.exe : revtwoway.obj $(plug_opt)
|
|
Packit |
575503 |
link/share=$(MMS$TARGET) $(MMS$SOURCE), $(plug_opt)/opt
|
|
Packit |
575503 |
|
|
Packit |
575503 |
rwarray.exe : rwarray.obj $(plug_opt)
|
|
Packit |
575503 |
link/share=$(MMS$TARGET) $(MMS$SOURCE), $(plug_opt)/opt
|
|
Packit |
575503 |
|
|
Packit |
575503 |
testext.exe : testext.obj $(plug_opt)
|
|
Packit |
575503 |
link/share=$(MMS$TARGET) $(MMS$SOURCE), $(plug_opt)/opt
|
|
Packit |
575503 |
|
|
Packit |
575503 |
time.exe : time.obj $(plug_opt)
|
|
Packit |
575503 |
link/share=$(MMS$TARGET) $(MMS$SOURCE), $(plug_opt)/opt
|
|
Packit |
575503 |
|
|
Packit |
575503 |
stack.obj : [.extension]stack.c config.h gawkapi.h \
|
|
Packit |
575503 |
[.extension]gawkfts.h, [.extension]stack.h
|
|
Packit |
575503 |
$(CC)$(CEFLAGS)/define=(HAVE_CONFIG_H)/object=$(MMS$TARGET) $(MMS$SOURCE)
|
|
Packit |
575503 |
|
|
Packit |
575503 |
gawkfts.obj : [.extension]gawkfts.c config.h [.extension]gawkfts.h \
|
|
Packit |
575503 |
$(ext_gawkdirfd_h)
|
|
Packit |
575503 |
$(CC)$(CEFLAGS)/define=(HAVE_CONFIG_H, ZOS_USS, "fchdir(x)=(-1)") \
|
|
Packit |
575503 |
/object=$(MMS$TARGET) $(MMS$SOURCE)
|
|
Packit |
575503 |
|
|
Packit |
575503 |
filefuncs.obj : [.extension]filefuncs.c config.h gawkapi.h \
|
|
Packit |
575503 |
[.extension]gawkfts.h
|
|
Packit |
575503 |
$(CC)$(CEFLAGS)/define=(HAVE_CONFIG_H)/object=$(MMS$TARGET) $(MMS$SOURCE)
|
|
Packit |
575503 |
|
|
Packit |
575503 |
fnmatch.obj : [.extension]fnmatch.c config.h gawkapi.h \
|
|
Packit |
575503 |
[.missing_d]fnmatch.h [.missing_d]fnmatch.c
|
|
Packit |
575503 |
$(CC)$(CEFLAGS)/define=(HAVE_CONFIG_H)/object=$(MMS$TARGET) $(MMS$SOURCE)
|
|
Packit |
575503 |
|
|
Packit |
575503 |
inplace.obj : [.extension]inplace.c config.h gawkapi.h
|
|
Packit |
575503 |
$(CC)$(CEFLAGS)/define=(HAVE_CONFIG_H)/object=$(MMS$TARGET) $(MMS$SOURCE)
|
|
Packit |
575503 |
|
|
Packit |
575503 |
ordchr.obj : [.extension]ordchr.c config.h gawkapi.h
|
|
Packit |
575503 |
$(CC)$(CEFLAGS)/define=(HAVE_CONFIG_H)/object=$(MMS$TARGET) $(MMS$SOURCE)
|
|
Packit |
575503 |
|
|
Packit |
575503 |
readdir.obj : [.extension]readdir.c config.h gawkapi.h \
|
|
Packit |
575503 |
$(ext_gawkdirfd_h)
|
|
Packit |
575503 |
$(CC)$(CEFLAGS)/define=(HAVE_CONFIG_H, HAVE_DIRENT_H) \
|
|
Packit |
575503 |
/object=$(MMS$TARGET) $(MMS$SOURCE)
|
|
Packit |
575503 |
|
|
Packit |
575503 |
revoutput.obj : [.extension]revoutput.c config.h gawkapi.h
|
|
Packit |
575503 |
$(CC)$(CEFLAGS)/define=(HAVE_CONFIG_H)/object=$(MMS$TARGET) $(MMS$SOURCE)
|
|
Packit |
575503 |
|
|
Packit |
575503 |
revtwoway.obj : [.extension]revtwoway.c config.h gawkapi.h
|
|
Packit |
575503 |
$(CC)$(CEFLAGS)/define=(HAVE_CONFIG_H, HAVE_GETDTABLESIZE) \
|
|
Packit |
575503 |
/object=$(MMS$TARGET) $(MMS$SOURCE)
|
|
Packit |
575503 |
|
|
Packit |
575503 |
rwarray.obj : [.extension]rwarray.c config.h gawkapi.h
|
|
Packit |
575503 |
$(CC)$(CEFLAGS)/define=(HAVE_CONFIG_H)/object=$(MMS$TARGET) $(MMS$SOURCE)
|
|
Packit |
575503 |
|
|
Packit |
575503 |
testext.obj : [.extension]testext.c config.h gawkapi.h
|
|
Packit |
575503 |
$(CC)$(CEFLAGS)/define=(HAVE_CONFIG_H)/object=$(MMS$TARGET) $(MMS$SOURCE)
|
|
Packit |
575503 |
|
|
Packit |
575503 |
time.obj : [.extension]time.c config.h gawkapi.h
|
|
Packit |
575503 |
$(CC)$(CEFLAGS)/define=(HAVE_CONFIG_H)/object=$(MMS$TARGET) $(MMS$SOURCE)
|
|
Packit |
575503 |
|
|
Packit |
575503 |
|
|
Packit |
575503 |
# miscellaneous other targets
|
|
Packit |
575503 |
tidy :
|
|
Packit |
575503 |
- if f$search("*.*;-1").nes."" then purge
|
|
Packit |
575503 |
- if f$search("[.*]*.*;-1").nes."" then purge [.*]
|
|
Packit |
575503 |
|
|
Packit |
575503 |
clean :
|
|
Packit |
575503 |
- if f$search ("*.obj") .nes. "" then delete *.obj;*
|
|
Packit |
575503 |
- if f$search ("*.lis") .nes. "" then delete *.lis;*
|
|
Packit |
575503 |
- if f$search ("gawk.opt") .nes. "" then delete gawk.opt;*
|
|
Packit |
575503 |
|
|
Packit |
575503 |
spotless : clean tidy
|
|
Packit |
575503 |
- if f$search("config.h").nes."" then delete config.h;*
|
|
Packit |
575503 |
- if f$search("config_vms.h").nes."" then delete config_vms.h;*
|
|
Packit |
575503 |
- if f$search("gawk.exe").nes."" then delete gawk.exe;*
|
|
Packit |
575503 |
- if f$search("*.dsf").nes."" then delete *.dsf;*
|
|
Packit |
575503 |
- if f$search("*.map").nes."" then delete *.map;*
|
|
Packit |
575503 |
- if f$search("*.pcsi$desc").nes."" then delete *.pcsi$desc;*
|
|
Packit |
575503 |
- if f$search("*.pcsi$text").nes."" then delete *.pcsi$text;*
|
|
Packit |
575503 |
- if f$search("gawk*_src.bck").nes."" then delete gawk*_src.bck;*
|
|
Packit |
575503 |
- if f$search("*.release_notes").nes."" then delete *.release_notes;*
|
|
Packit |
575503 |
- if f$search("filefuncs.exe").nes."" then delete filefuncs.exe;*
|
|
Packit |
575503 |
- if f$search("fnmatch.exe").nes."" then delete fnmatch.exe;*
|
|
Packit |
575503 |
- if f$search("inplace.exe").nes."" then delete inplace.exe;*
|
|
Packit |
575503 |
- if f$search("ordchr.exe").nes."" then delete ordchr.exe;*
|
|
Packit |
575503 |
- if f$search("readdir.exe").nes."" then delete readdir.exe;*
|
|
Packit |
575503 |
- if f$search("revoutput.exe").nes."" then delete revoutput.exe;*
|
|
Packit |
575503 |
- if f$search("revtwoway.exe").nes."" then delete revtwoway.exe;*
|
|
Packit |
575503 |
- if f$search("rwarray.exe").nes."" then delete rwarray.exe;*
|
|
Packit |
575503 |
- if f$search("testext.exe").nes."" then delete testext.exe;*
|
|
Packit |
575503 |
- if f$search("time.exe").nes."" then delete time.exe;*
|
|
Packit |
575503 |
- if f$search("gawk_verb.cld").nes."" then delete gawk_verb.cld;*
|
|
Packit |
575503 |
- if f$search("gawk.dvi").nes."" then delete gawk.dvi;*
|
|
Packit |
575503 |
- if f$search("[.doc]texindex.exe").nes."" then \
|
|
Packit |
575503 |
delete [.doc]texindex.exe;*
|
|
Packit |
575503 |
- if f$search("[.cxx_repository]*.*;").nes."" then \
|
|
Packit |
575503 |
delete [.cxx_repository]*.*;*
|
|
Packit |
575503 |
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
# Note: this only works if you kept a copy of [.support]texindex.c
|
|
Packit |
575503 |
# from a gawk 2.x distribution and put it into [.doc]texindex.c.
|
|
Packit |
575503 |
# Also, depending on the fonts available with the version of TeX
|
|
Packit |
575503 |
# you have, you might need to edit [.doc]texinfo.tex and change
|
|
Packit |
575503 |
# the reference to "lcircle10" to be "circle10".
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
# build gawk.dvi from within the 'doc' subdirectory
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
gawk.dvi : [.doc]texindex.exe [.doc]gawk.texi
|
|
Packit |
575503 |
@ set default [.doc]
|
|
Packit |
575503 |
@ write sys$output " Warnings from TeX are expected during the first pass"
|
|
Packit |
575503 |
TeX gawk.texi
|
|
Packit |
575503 |
mcr []texindex gawk.cp gawk.fn gawk.ky gawk.pg gawk.tp gawk.vr
|
|
Packit |
575503 |
@ write sys$output " Second pass"
|
|
Packit |
575503 |
TeX gawk.texi
|
|
Packit |
575503 |
mcr []texindex gawk.cp gawk.fn gawk.ky gawk.pg gawk.tp gawk.vr
|
|
Packit |
575503 |
@ write sys$output " Third (final) pass"
|
|
Packit |
575503 |
TeX gawk.texi
|
|
Packit |
575503 |
-@ purge
|
|
Packit |
575503 |
-@ delete \
|
|
Packit |
575503 |
gawk.lis;,.aux;,gawk.%%;,.cps;,.fns;,.kys;,.pgs;,.toc;,.tps;,.vrs;
|
|
Packit |
575503 |
@ rename/new_vers gawk.dvi [-]*.*
|
|
Packit |
575503 |
@ set default [-]
|
|
Packit |
575503 |
|
|
Packit |
575503 |
# Note: [.doc]texindex.c is not included with the gawk 3.x distribution.
|
|
Packit |
575503 |
# Expect lots of "implicitly declared function" diagnostics from DEC C.
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
[.doc]texindex.exe : [.doc]texindex.c
|
|
Packit |
575503 |
@ set default [.doc]
|
|
Packit |
575503 |
$(CC) /noOpt/noList/Define=("lines=tlines") texindex.c
|
|
Packit |
575503 |
@ open/Write opt texindex.opt
|
|
Packit |
575503 |
@ write opt "texindex.obj"
|
|
Packit |
575503 |
@ write opt "$(LIBS)"
|
|
Packit |
575503 |
@ close opt
|
|
Packit |
575503 |
$(LINK) /noMap/Exe=texindex.exe texindex.opt/Options
|
|
Packit |
575503 |
-@ delete texindex.obj;*,texindex.opt;*
|
|
Packit |
575503 |
@ set default [-]
|
|
Packit |
575503 |
|
|
Packit |
575503 |
#eof
|