]> git.draconx.ca Git - dxcommon.git/blob - Makefile.am
Partially fix "make distcheck".
[dxcommon.git] / Makefile.am
1 # Copyright © 2015, 2019, 2021-2023 Nick Bowler
2 #
3 # License WTFPL2: Do What The Fuck You Want To Public License, version 2.
4 # This is free software: you are free to do what the fuck you want to.
5 # There is NO WARRANTY, to the extent permitted by law.
6
7 ACLOCAL_AMFLAGS = -I m4
8
9 AM_CPPFLAGS = -I$(top_srcdir)/src $(STUB_INCLUDES)
10
11 EXTRA_DIST = scripts/fix-gnulib.pl scripts/fix-ltdl.pl \
12              scripts/gen-options.awk scripts/gen-strtab.awk \
13              scripts/gen-tree.awk scripts/join.awk scripts/pe-subsys.awk \
14              src/copysym.h src/help.h src/pack.h src/tap.h t/getopt/getopt.h \
15              t/nls/gettext.h t/nls/mbswidth.h tests/data/gnulib.mk
16
17 check_LIBRARIES = t/libdummy.a t/libempty.a
18
19 check_PROGRAMS = t/packtestu t/packtests t/packtestu64 t/packtests64
20
21 t_packtestu_SOURCES = t/packtestu.c src/pack.c src/tap.c
22 t_packtests_SOURCES = t/packtests.c src/pack.c src/tap.c
23 t_packtestu64_SOURCES = t/packtestu64.c src/pack.c src/tap.c
24 t_packtests64_SOURCES = t/packtests64.c src/pack.c src/tap.c
25
26 check_PROGRAMS += t/helpdesc t/helpopt t/helpopt2
27 if HAVE_WCWIDTH
28 check_PROGRAMS += t/helpopt3
29 endif
30
31 EXTRA_LIBRARIES = libglohelp.a
32 libglohelp_a_SOURCES = src/help.c
33 libglohelp_a_CPPFLAGS = $(AM_CPPFLAGS) -DHELP_GETOPT_LONG_ONLY
34 libglohelp_a_SHORTNAME = glo
35
36 EXTRA_LIBRARIES += libnlshelp.a
37 libnlshelp_a_SOURCES = src/help.c t/nls/mbswidth.c
38 libnlshelp_a_CPPFLAGS = $(AM_CPPFLAGS) -DENABLE_NLS -I$(top_srcdir)/t/nls
39 libnlshelp_a_SHORTNAME = nls
40
41 t_helpdesc_SOURCES = t/helpdesc.c src/help.c src/tap.c
42 t_helpopt_SOURCES = t/helpopt.c src/help.c src/tap.c
43
44 t_helpopt2_SOURCES = t/helpopt.c src/tap.c
45 t_helpopt2_LDADD = $(libglohelp_a_OBJECTS)
46 EXTRA_t_helpopt2_DEPENDENCIES = $(t_helpopt2_LDADD)
47
48 t_helpopt3_SOURCES = t/helpopt.c src/tap.c
49 t_helpopt3_LDADD = $(libnlshelp_a_OBJECTS)
50 EXTRA_t_helpopt3_DEPENDENCIES = $(t_helpopt3_LDADD)
51
52 check_PROGRAMS += t/copysym
53 t_copysym_SOURCES = t/copysym.c src/tap.c
54 t_copysym_LDADD = $(libnlscopysym_a_OBJECTS)
55 EXTRA_t_copysym_DEPENDENCIES = $(t_copysym_LDADD)
56
57 EXTRA_LIBRARIES += libnlscopysym.a
58 libnlscopysym_a_SOURCES = src/copysym.c
59 libnlscopysym_a_CPPFLAGS = $(AM_CPPFLAGS) -DENABLE_NLS
60 libnlscopysym_a_SHORTNAME = nls
61
62 DISTCLEANFILES =
63 SUFFIXES =
64
65 include $(top_srcdir)/snippet/autotest.mk