31
31
# specific post-processor on gawk.dvi in order to get printable data.
34
# location of the VMS-specific files, relative to the 'main' directory
34
# location of various source files, relative to the 'main' directory
36
37
MAKEFILE = $(VMSDIR)Descrip.MMS
38
39
# debugging &c !'ccflags' is an escape to allow external compile flags
80
81
######## nothing below this line should need to be changed ########
84
ECHO = write sys$output
84
88
ALLOCA = alloca.obj
87
AWKOBJS = main.obj,eval.obj,builtin.obj,msg.obj,iop.obj,io.obj,\
88
field.obj,array.obj,node.obj,version.obj,missing.obj,re.obj,\
89
getopt.obj,getopt1.obj
91
AWKOBJS = array.obj,builtin.obj,eval.obj,field.obj,gawkmisc.obj,\
92
io.obj,main.obj,missing.obj,msg.obj,node.obj,re.obj,version.obj
91
94
ALLOBJS = $(AWKOBJS),awktab.obj
94
97
# GNU stuff that gawk uses as library routines.
95
GNUOBJS = regex.obj,dfa.obj,$(ALLOCA)
98
GNUOBJS = getopt.obj,getopt1.obj,regex.obj,dfa.obj,$(ALLOCA)
98
101
# VMS specific stuff
101
104
VMSCMD = gawk_cmd.obj # built from .cld file
102
105
VMSOBJS = $(VMSCODE),$(VMSCMD)
104
VMSSRCS = $(VMSDIR)vms_misc.c,$(VMSDIR)vms_popen.c,$(VMSDIR)vms_fwrite.c,\
105
$(VMSDIR)vms_args.c,$(VMSDIR)vms_gawk.c,$(VMSDIR)vms_cli.c
106
VMSHDRS = $(VMSDIR)vms.h,$(VMSDIR)fcntl.h,$(VMSDIR)varargs.h,$(VMSDIR)unixlib.h
107
# source and documentation files
108
SRC = array.c,builtin.c,eval.c,field.c,gawkmisc.c,io.c,main.c,\
109
missing.c,msg.c,node.c,re.c,version.c
111
ALLSRC= $(SRC),awktab.c
113
AWKSRC= awk.h,awk.y,$(ALLSRC),patchlevel.h,protos.h
115
GNUSRC = alloca.c,dfa.c,dfa.h,regex.c,regex.h,getopt.h,getopt.c,getopt1.c
117
VMSSRCS = $(VMSDIR)gawkmisc.vms,$(VMSDIR)vms_misc.c,$(VMSDIR)vms_popen.c,\
118
$(VMSDIR)vms_fwrite.c,$(VMSDIR)vms_args.c,$(VMSDIR)vms_gawk.c,\
120
VMSHDRS = $(VMSDIR)redirect.h,$(VMSDIR)vms.h,$(VMSDIR)fcntl.h,\
121
$(VMSDIR)varargs.h,$(VMSDIR)unixlib.h
107
122
VMSOTHR = $(VMSDIR)Descrip.MMS,$(VMSDIR)vmsbuild.com,$(VMSDIR)version.com,\
108
123
$(VMSDIR)gawk.hlp
125
DOCS= $(DOCDIR)gawk.1,$(DOCDIR)gawk.texi,$(DOCDIR)texinfo.tex
110
127
# Release of gawk
114
135
# dummy target to allow building "gawk" in addition to explicit "gawk.exe"
116
write sys$output " GAWK "
118
139
# rules to build gawk
119
140
gawk.exe : $(ALLOBJS) $(GNUOBJS) $(VMSOBJS) gawk.opt
140
161
vms_cli.obj : $(VMSDIR)vms_cli.c
141
162
$(VMSCODE) : awk.h config.h $(VMSDIR)vms.h
143
dfa.obj : awk.h config.h dfa.h
144
regex.obj : awk.h config.h regex.h
164
gawkmisc.obj : gawkmisc.c $(VMSDIR)gawkmisc.vms
166
$(ALLOBJS) : awk.h dfa.h regex.h config.h
145
167
getopt.obj : getopt.h
168
getopt1.obj : getopt.h
146
169
main.obj : patchlevel.h
147
170
awktab.obj : awk.h awktab.c
148
$(AWKOBJS) : awk.h config.h
150
172
# bison or yacc required
151
173
awktab.c : awk.y # foo.y :: yacc => y[_]tab.c, bison => foo_tab.c