gen-strtab.awk: Fix strings that start with octal digits.
[dxcommon.git] / Makefile.am
blobefda7ae6381663c1e59655408d59094863cfe3d2
1 # Copyright © 2015, 2019, 2021-2024 Nick Bowler
3 # This program is free software: you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation, either version 3 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
16 ACLOCAL_AMFLAGS = -I m4
18 AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/t
20 EXTRA_DIST = scripts/fix-gnulib.pl scripts/fix-ltdl.pl \
21              scripts/bake-config.awk scripts/gen-options.awk \
22              scripts/gen-strtab.awk scripts/gen-tree.awk scripts/join.awk \
23              scripts/pe-subsys.awk src/copysym.h src/getline.h \
24              src/gnu_getopt.h src/help.h src/pack.h src/tap.h t/autotest.sh \
25              t/nls/libintl.h t/tapcheck.sh tests/data/gnulib.mk
27 check_LIBRARIES = t/libdummy.a t/libempty.a
29 check_PROGRAMS = t/packtestu t/packtests t/packtestu64 t/packtests64
31 t_packtestu_SOURCES = t/packtestu.c src/pack.c src/tap.c
32 t_packtests_SOURCES = t/packtests.c src/pack.c src/tap.c
33 t_packtestu64_SOURCES = t/packtestu64.c src/pack.c src/tap.c
34 t_packtests64_SOURCES = t/packtests64.c src/pack.c src/tap.c
36 check_PROGRAMS += t/printfchk t/helpdesc t/helpopt t/helpopt2
37 if TEST_WCWIDTH
38 check_PROGRAMS += t/helpopt3
39 endif
41 EXTRA_LIBRARIES = libglohelp.a
42 libglohelp_a_SOURCES = src/help.c
43 libglohelp_a_CPPFLAGS = $(AM_CPPFLAGS) -DHELP_GETOPT_LONG_ONLY
44 libglohelp_a_SHORTNAME = glo
46 EXTRA_LIBRARIES += libnlshelp.a
47 libnlshelp_a_SOURCES = src/help.c
48 libnlshelp_a_CPPFLAGS = $(AM_CPPFLAGS) -DENABLE_NLS -I$(top_srcdir)/t/nls
49 libnlshelp_a_SHORTNAME = nls
51 t_helpdesc_SOURCES = t/helpdesc.c src/help.c src/tap.c
52 t_helpopt_SOURCES = t/helpopt.c src/help.c src/tap.c
54 t_helpopt2_SOURCES = t/helpopt.c src/tap.c
55 t_helpopt2_LDADD = $(libglohelp_a_OBJECTS)
56 EXTRA_t_helpopt2_DEPENDENCIES = $(t_helpopt2_LDADD)
58 t_helpopt3_SOURCES = t/helpopt.c src/tap.c t/nls/gettext.c
59 t_helpopt3_LDADD = $(libnlshelp_a_OBJECTS)
60 EXTRA_t_helpopt3_DEPENDENCIES = $(t_helpopt3_LDADD)
62 check_PROGRAMS += t/copysym
63 t_copysym_SOURCES = t/copysym.c src/tap.c
64 t_copysym_LDADD = $(libnlscopysym_a_OBJECTS)
65 EXTRA_t_copysym_DEPENDENCIES = $(t_copysym_LDADD)
67 EXTRA_LIBRARIES += libnlscopysym.a
68 libnlscopysym_a_SOURCES = src/copysym.c
69 libnlscopysym_a_CPPFLAGS = $(AM_CPPFLAGS) -DENABLE_NLS
70 libnlscopysym_a_SHORTNAME = nls
72 check_PROGRAMS += t/getline
73 t_getline_SOURCES = t/getline.c src/tap.c
75 check_PROGRAMS += t/gnugetopt
76 t_gnugetopt_SOURCES = t/gnugetopt.c t/gnugetopt_test.h \
77                       src/gnu_getopt.c src/tap.c
79 DISTCLEANFILES =
80 SUFFIXES =
82 include $(top_srcdir)/snippet/autotest.mk