28
by Arnold D. Robbins
Move to gawk-3.1.0. |
1 |
#
|
2 |
# Makefile.am --- automake input file for gawk
|
|
3 |
#
|
|
1073
by Arnold D. Robbins
Update copyright year in many dates. |
4 |
# Copyright (C) 2000-2019 the Free Software Foundation, Inc.
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
5 |
#
|
6 |
# This file is part of GAWK, the GNU implementation of the
|
|
7 |
# AWK Programming Language.
|
|
8 |
#
|
|
9 |
# GAWK is free software; you can redistribute it and/or modify
|
|
10 |
# it under the terms of the GNU General Public License as published by
|
|
34
by Arnold D. Robbins
Move to gawk-3.1.6. |
11 |
# the Free Software Foundation; either version 3 of the License, or
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
12 |
# (at your option) any later version.
|
13 |
#
|
|
14 |
# GAWK is distributed in the hope that it will be useful,
|
|
15 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17 |
# GNU General Public License for more details.
|
|
18 |
#
|
|
19 |
# You should have received a copy of the GNU General Public License
|
|
20 |
# along with this program; if not, write to the Free Software
|
|
33
by Arnold D. Robbins
Move to gawk 3.1.5. |
21 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
22 |
#
|
23 |
||
24 |
## process this file with automake to produce Makefile.in
|
|
25 |
||
40
by Arnold D. Robbins
Bring latest byte code gawk into git. Hurray! |
26 |
# This variable insures that aclocal runs
|
31
by Arnold D. Robbins
Move to gawk-3.1.3. |
27 |
# correctly after changing configure.ac
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
28 |
ACLOCAL_AMFLAGS = -I m4 |
29 |
||
30 |
# This insures that make flags get passed down to child makes.
|
|
31 |
AM_MAKEFLAGS = 'CFLAGS=$(CFLAGS)' 'LDFLAGS=$(LDFLAGS)' |
|
32 |
||
33 |
# Stuff to include in the dist that doesn't need it's own
|
|
34 |
# Makefile.am files
|
|
35 |
EXTRA_DIST = \ |
|
277
by Arnold D. Robbins
Fix vms version stuff. Get the tarball really right. |
36 |
ChangeLog.0 \
|
1146.1.3
by Arnold D. Robbins
Ensure that ChangeLog.1 gets into the distribution. |
37 |
ChangeLog.1 \
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
38 |
COPYING \
|
39 |
INSTALL \
|
|
40 |
NEWS \
|
|
187
by Arnold D. Robbins
Move most stuff in NEWS to NEWS.0. |
41 |
NEWS.0 \
|
1087
by Arnold D. Robbins
Include NEWS.1 in what gets distributed. |
42 |
NEWS.1 \
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
43 |
POSIX.STD \
|
44 |
README_d \
|
|
29
by Arnold D. Robbins
Move to gawk-3.1.1. |
45 |
config.guess \
|
46 |
config.rpath \
|
|
47 |
config.sub \
|
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
48 |
depcomp \
|
49 |
m4 \
|
|
50 |
missing \
|
|
51 |
missing_d \
|
|
277.1.6
by Arnold D. Robbins
Fix inclusion of po/README. Update some translations. |
52 |
po/README \
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
53 |
pc \
|
54 |
posix \
|
|
29
by Arnold D. Robbins
Move to gawk-3.1.1. |
55 |
vms \
|
56 |
ylwrap |
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
57 |
|
58 |
# The order to do things in.
|
|
408.19.49
by Arnold D. Robbins
Fix build ordering issues. |
59 |
#
|
731.1.10
by Arnold D. Robbins
Add small regex fix. Add support directory. |
60 |
# Build in support first, since we need the support library.
|
61 |
#
|
|
33
by Arnold D. Robbins
Move to gawk 3.1.5. |
62 |
# Build explicitly in "." in order to build gawk first, so
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
63 |
# that `make check' without a prior `make' works.
|
731.1.10
by Arnold D. Robbins
Add small regex fix. Add support directory. |
64 |
SUBDIRS = support . |
65 |
||
408.19.49
by Arnold D. Robbins
Fix build ordering issues. |
66 |
# Build in extension before test so that
|
67 |
# ./configure && make check
|
|
68 |
# works properly too.
|
|
408.21.1
by Arnold D. Robbins
Rework zOS patches; keep separate from autotools. |
69 |
if ENABLE_EXTENSIONS
|
70 |
SUBDIRS += extension |
|
71 |
endif
|
|
72 |
||
731.1.10
by Arnold D. Robbins
Add small regex fix. Add support directory. |
73 |
# Build in awklib after in doc, since we want to extract
|
74 |
# sample files if doc/gawk.texi changed.
|
|
408.20.120
by Arnold D. Robbins
Make building a working tarball work again. |
75 |
SUBDIRS += extras doc awklib po test |
408.19.49
by Arnold D. Robbins
Fix build ordering issues. |
76 |
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
77 |
# what to make and install
|
291
by Arnold D. Robbins
The grand merge: dgawk and pgawk folded into gawk. |
78 |
bin_PROGRAMS = gawk |
319.2.15
by Andrew J. Schorr
Install gawkapi.h, fix is_off_limits_var, and enhance ordchr test. |
79 |
include_HEADERS = gawkapi.h |
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
80 |
|
291
by Arnold D. Robbins
The grand merge: dgawk and pgawk folded into gawk. |
81 |
# sources for both gawk and dgawk
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
82 |
base_sources = \ |
83 |
array.c \
|
|
84 |
awk.h \
|
|
85 |
awkgram.y \
|
|
86 |
builtin.c \
|
|
281.1.1
by john haque
Speed/memory performance improvements. |
87 |
cint_array.c \
|
291
by Arnold D. Robbins
The grand merge: dgawk and pgawk folded into gawk. |
88 |
cmd.h \
|
89 |
command.y \
|
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
90 |
custom.h \
|
291
by Arnold D. Robbins
The grand merge: dgawk and pgawk folded into gawk. |
91 |
debug.c \
|
92 |
eval.c \
|
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
93 |
ext.c \
|
94 |
field.c \
|
|
34
by Arnold D. Robbins
Move to gawk-3.1.6. |
95 |
floatcomp.c \
|
35
by Arnold D. Robbins
Move to gawk-3.1.7. |
96 |
floatmagic.h \
|
319.2.13
by Andrew J. Schorr
First working version of new API mechanism (probably has memory leaks). |
97 |
gawkapi.c \
|
319.2.15
by Andrew J. Schorr
Install gawkapi.h, fix is_off_limits_var, and enhance ordchr test. |
98 |
gawkapi.h \
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
99 |
gawkmisc.c \
|
29
by Arnold D. Robbins
Move to gawk-3.1.1. |
100 |
gettext.h \
|
281.1.1
by john haque
Speed/memory performance improvements. |
101 |
int_array.c \
|
291
by Arnold D. Robbins
The grand merge: dgawk and pgawk folded into gawk. |
102 |
interpret.h \
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
103 |
io.c \
|
32
by Arnold D. Robbins
Move to gawk-3.1.4. |
104 |
mbsupport.h \
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
105 |
main.c \
|
300
by john haque
Add infrastructure for MPFR/GMP support. |
106 |
mpfr.c \
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
107 |
msg.c \
|
108 |
node.c \
|
|
408.4.25
by Arnold D. Robbins
Move FAKE_FD_VALUE to shared header. |
109 |
nonposix.h \
|
291
by Arnold D. Robbins
The grand merge: dgawk and pgawk folded into gawk. |
110 |
profile.c \
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
111 |
protos.h \
|
112 |
re.c \
|
|
113 |
replace.c \
|
|
281.1.1
by john haque
Speed/memory performance improvements. |
114 |
str_array.c \
|
115 |
symbol.c \
|
|
731.1.10
by Arnold D. Robbins
Add small regex fix. Add support directory. |
116 |
version.c |
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
117 |
|
291
by Arnold D. Robbins
The grand merge: dgawk and pgawk folded into gawk. |
118 |
gawk_SOURCES = $(base_sources) |
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
119 |
|
33
by Arnold D. Robbins
Move to gawk 3.1.5. |
120 |
# Get extra libs as needed, Automake will supply LIBINTL and SOCKET_LIBS.
|
731.1.10
by Arnold D. Robbins
Add small regex fix. Add support directory. |
121 |
LDADD = support/libsupport.a \ |
122 |
$(LIBSIGSEGV) $(LIBINTL) $(SOCKET_LIBS) $(LIBREADLINE) $(LIBMPFR) |
|
29
by Arnold D. Robbins
Move to gawk-3.1.1. |
123 |
|
33
by Arnold D. Robbins
Move to gawk 3.1.5. |
124 |
# Directory for gawk's data files. Automake supplies datadir.
|
125 |
pkgdatadir = $(datadir)/awk |
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
126 |
|
127 |
# stuff for compiling gawk/pgawk
|
|
36
by Arnold D. Robbins
Move to 3.1.8. |
128 |
DEFPATH='".$(PATH_SEPARATOR)$(pkgdatadir)"' |
129 |
||
299.2.1
by Andrew J. Schorr
- Add new environment variable AWKLIBPATH to use when searching for shared |
130 |
# shared library support:
|
319.2.70
by Andrew J. Schorr
Minor configure.ac/Makefile.am change for more elegant shared library support. |
131 |
SHLIBEXT = "\"$(GAWKLIBEXT)"\" |
299.2.1
by Andrew J. Schorr
- Add new environment variable AWKLIBPATH to use when searching for shared |
132 |
DEFLIBPATH="\"$(pkgextensiondir)\"" |
133 |
||
731.1.10
by Arnold D. Robbins
Add small regex fix. Add support directory. |
134 |
DEFS= -DDEFPATH=$(DEFPATH) -DDEFLIBPATH=$(DEFLIBPATH) -DSHLIBEXT=$(SHLIBEXT) -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"$(datadir)/locale"' -I"$(srcdir)/support" |
32
by Arnold D. Robbins
Move to gawk-3.1.4. |
135 |
|
136 |
# Get rid of core files when cleaning
|
|
137 |
CLEANFILES = core core.* |
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
138 |
|
139 |
# We want hard links for install-exec-hook, below
|
|
140 |
LN= ln |
|
141 |
||
408.5.238
by Arnold D. Robbins
Revert previous patch; instead define RM. |
142 |
# For some make's, e.g. OpenBSD, that don't define this
|
143 |
RM = rm -f |
|
144 |
||
32
by Arnold D. Robbins
Move to gawk-3.1.4. |
145 |
# First, add a link from gawk to gawk-X.Y.Z.
|
146 |
#
|
|
147 |
# For GNU systems where gawk is awk, add a link to awk.
|
|
148 |
# (This is done universally, which may not always be right, but
|
|
149 |
# there's no easy way to distinguish GNU from non-GNU systems.)
|
|
408.13.161
by Arnold D. Robbins
Take --program-prefix into account for the installation symlinks. |
150 |
#
|
151 |
# Use the transform, in case --program-prefix=XXX
|
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
152 |
install-exec-hook: |
32
by Arnold D. Robbins
Move to gawk-3.1.4. |
153 |
(cd $(DESTDIR)$(bindir); \ |
408.13.161
by Arnold D. Robbins
Take --program-prefix into account for the installation symlinks. |
154 |
name=`echo gawk | sed '$(transform)'` ; \ |
155 |
$(LN) $${name}$(EXEEXT) gawk-$(VERSION)$(EXEEXT) 2>/dev/null ; \ |
|
408.5.333
by Arnold D. Robbins
OS/2 fixes. |
156 |
if [ ! -f awk$(EXEEXT) ]; \
|
408.13.161
by Arnold D. Robbins
Take --program-prefix into account for the installation symlinks. |
157 |
then $(LN_S) $${name}$(EXEEXT) awk$(EXEEXT); \
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
158 |
fi; exit 0)
|
159 |
||
160 |
# Undo the above when uninstalling
|
|
161 |
uninstall-links: |
|
162 |
(cd $(DESTDIR)$(bindir); \ |
|
408.13.161
by Arnold D. Robbins
Take --program-prefix into account for the installation symlinks. |
163 |
name=`echo gawk | sed '$(transform)'` ; \ |
164 |
if [ -f awk$(EXEEXT) ] && cmp awk$(EXEEXT) $${name}$(EXEEXT) > /dev/null; then rm -f awk$(EXEEXT); fi ; \
|
|
291
by Arnold D. Robbins
The grand merge: dgawk and pgawk folded into gawk. |
165 |
rm -f gawk-$(VERSION)$(EXEEXT); exit 0)
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
166 |
|
167 |
uninstall-recursive: uninstall-links |
|
168 |
||
169 |
# force there to be a gawk executable before running tests
|
|
291
by Arnold D. Robbins
The grand merge: dgawk and pgawk folded into gawk. |
170 |
check-local: gawk$(EXEEXT) |
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
171 |
|
172 |
# A little extra clean up when making distributions.
|
|
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
173 |
# And additional set up for the pc directory.
|
731.11.352
by Arnold D. Robbins
Major improvements to test infrastructure. |
174 |
dist-hook: pc/Makefile.tst |
408.19.251
by Arnold D. Robbins
Doc updates, add 'spell' target for make. |
175 |
cd "$(distdir)"/extension ; rm -f *.o *.so |
176 |
cd "$(srcdir)"/pc ; \ |
|
408.5.61
by Arnold D. Robbins
More changes to dist-hook. |
177 |
chmod u+w config.h ; \ |
408.5.59
by Arnold D. Robbins
Fix creation of pc/config.h. |
178 |
sed -n -f configpk.sed < ../configure.ac > /tmp/tmp.sed ; \ |
179 |
sed -f config.sed < ../configh.in > /tmp/config.tmp ; \ |
|
180 |
sed -f /tmp/tmp.sed < /tmp/config.tmp > config.h ; \ |
|
408.5.238
by Arnold D. Robbins
Revert previous patch; instead define RM. |
181 |
$(RM) /tmp/tmp.sed /tmp/config.tmp |
408.5.61
by Arnold D. Robbins
More changes to dist-hook. |
182 |
pwd
|
408.19.251
by Arnold D. Robbins
Doc updates, add 'spell' target for make. |
183 |
chmod u+w "$(distdir)"/pc/config.h |
184 |
cp "$(srcdir)"/pc/config.h "$(distdir)"/pc/config.h |
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
185 |
|
186 |
# Special rules for individual files
|
|
291
by Arnold D. Robbins
The grand merge: dgawk and pgawk folded into gawk. |
187 |
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
188 |
awkgram.c: awkgram.y |
731.11.151
by Arnold D. Robbins
Revise build to use bison for both grammars in a parallel-safe way. |
189 |
$(YACC) -o $@ $(AM_YFLAGS) $(YFLAGS) $< |
190 |
sed 's/parse error/syntax error/g' < $@ > $@.tmp && mv $@.tmp $@ |
|
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
191 |
|
731.11.151
by Arnold D. Robbins
Revise build to use bison for both grammars in a parallel-safe way. |
192 |
command.c: command.y |
731.11.149
by Arnold D. Robbins
Serialize running bison in parallel builds. |
193 |
$(YACC) -o $@ -p zz $< |
194 |
sed 's/parse error/syntax error/g' < $@ > $@.tmp && mv $@.tmp $@ |
|
40
by Arnold D. Robbins
Bring latest byte code gawk into git. Hurray! |
195 |
|
731.11.352
by Arnold D. Robbins
Major improvements to test infrastructure. |
196 |
pc/Makefile.tst: test/Makefile.in |
1115
by Arnold D. Robbins
Fix Makefile.am so that make distcheck work again. |
197 |
test -d pc || mkdir pc |
1068
by Arnold D. Robbins
Changes after make distcheck. |
198 |
cat "$(top_srcdir)"/pc/Makefile.tst.prologue > pc/Makefile.tst |
1125
by Arnold D. Robbins
Another fix for 'make distcheck' to work. |
199 |
awk -f "$(top_srcdir)"/pc/GenMakefileTst.awk "$(top_srcdir)"/test/Makefile.in >> pc/Makefile.tst |
731.11.352
by Arnold D. Robbins
Major improvements to test infrastructure. |
200 |
|
30
by Arnold D. Robbins
Move to gawk-3.1.2. |
201 |
# This is for my development & testing.
|
202 |
efence: gawk |
|
408.13.129
by Arnold D. Robbins
Fix efence target, whitepsace in ChangeLog. |
203 |
$(CC) $(LDFLAGS) -o gawk $$(ls *.o | grep -v '_p.o$$') $(LDADD) $(LIBS) -lefence |
32
by Arnold D. Robbins
Move to gawk-3.1.4. |
204 |
|
34
by Arnold D. Robbins
Move to gawk-3.1.6. |
205 |
diffout valgrind-scan: |
206 |
@cd test && $(MAKE) $(AM_MAKEFLAGS) $@ |
|
207 |
||
208 |
valgrind: |
|
209 |
cd test; rm -f log.[0-9]*; \ |
|
286.1.20
by Andrew J. Schorr
Fix valgrind targets to respect environment settings and work with for shared library tests. |
210 |
make check VALGRIND="valgrind --leak-check=full --log-file=log.%p"; \ |
34
by Arnold D. Robbins
Move to gawk-3.1.6. |
211 |
make valgrind-scan |
286.1.15
by Andrew J. Schorr
Add valgrind-noleak target. |
212 |
|
213 |
valgrind-noleak: |
|
214 |
cd test; rm -f log.[0-9]*; \ |
|
286.1.20
by Andrew J. Schorr
Fix valgrind targets to respect environment settings and work with for shared library tests. |
215 |
make check VALGRIND="valgrind --leak-check=no --log-file=log.%p"; \ |
286.1.15
by Andrew J. Schorr
Add valgrind-noleak target. |
216 |
make valgrind-scan |
408.19.251
by Arnold D. Robbins
Doc updates, add 'spell' target for make. |
217 |
|
218 |
spell: |
|
219 |
cd "$(srcdir)"/doc ; $(MAKE) spell |
|
731.18.28
by Arnold D. Robbins
Remove .deps directory upon make distclean. |
220 |
|
221 |
distclean-local: |
|
222 |
rm -fr .deps |