summaryrefslogtreecommitdiff
path: root/support/Makefile.am
blob: 016931aea00ab47b5a077674b99dd9f97ad998d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#
# Makefile.am --- automake input file for gawk
#
# Copyright (C) 2000-2016, 2018, 2019, 2021, 2022, 2023
# the Free Software Foundation, Inc.
#
# This file is part of GAWK, the GNU implementation of the
# AWK Programming Language.
#
# GAWK is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# GAWK is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
#

## process this file with automake to produce Makefile.in

AM_CFLAGS  = @CFLAGS@
AM_LDFLAGS = @LDFLAGS@

AR = @AR@

# Stuff to include in the dist that doesn't need it's own
# Makefile.am files
EXTRA_DIST = \
        ChangeLog.0 \
	Makefile.am \
	Makefile.in \
	pma.h \
	pma.c \
	regcomp.c \
	regex_internal.c \
	regex_internal.h \
	regexec.c \
	malloc/dynarray-skeleton.c

# what to make and install
noinst_LIBRARIES = libsupport.a
libsupport_a_SOURCES = \
	attribute.h \
	cdefs.h \
	dfa.c \
	dfa.h \
	dynarray.h \
	flexmember.h \
	getopt.c \
	getopt.h \
	getopt1.c \
	getopt_int.h \
	idx.h \
	intprops.h \
	intprops-internal.h \
	libc-config.h \
	localeinfo.c \
	localeinfo.h \
	random.c \
	random.h \
	regex.c \
	regex.h \
	verify.h \
	xalloc.h \
	malloc/dynarray.h \
	malloc/dynarray_at_failure.c \
	malloc/dynarray_emplace_enlarge.c  \
	malloc/dynarray_finalize.c \
	malloc/dynarray_resize.c \
	malloc/dynarray_resize_clear.c

if USE_PERSISTENT_MALLOC
libsupport_a_SOURCES += pma.c pma.h
CFLAGS += -DNDEBUG
AM_CFLAGS += -DNDEBUG
endif

# For some make's, e.g. OpenBSD, that don't define this
RM = rm -f

# For debugging
DEBUG = -gdwarf-4 -g3

DEFS = -DGAWK -DHAVE_CONFIG_H -I"$(srcdir)/.."

distclean-local:
	rm -fr .deps