gl-patches: Don't force HAVE_LONG_LONG_INT.
[dxcommon.git] / Makefile.am
blobbe7305626f439b1dadd906283ad4580a28793e7d
1 # Copyright © 2015, 2019, 2021-2023 Nick Bowler
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.
7 ACLOCAL_AMFLAGS = -I m4
9 AM_CPPFLAGS = -I$(top_srcdir)/src $(STUB_INCLUDES)
11 EXTRA_DIST = scripts/fix-gnulib.pl scripts/fix-ltdl.pl \
12              scripts/bake-config.awk scripts/gen-options.awk \
13              scripts/gen-strtab.awk scripts/gen-tree.awk scripts/join.awk \
14              scripts/pe-subsys.awk src/copysym.h src/help.h src/pack.h \
15              src/tap.h t/tapcheck.sh t/getopt/getopt.h t/nls/gettext.h \
16              t/nls/mbswidth.h tests/data/gnulib.mk
18 check_LIBRARIES = t/libdummy.a t/libempty.a
20 check_PROGRAMS = t/packtestu t/packtests t/packtestu64 t/packtests64
22 t_packtestu_SOURCES = t/packtestu.c src/pack.c src/tap.c
23 t_packtests_SOURCES = t/packtests.c src/pack.c src/tap.c
24 t_packtestu64_SOURCES = t/packtestu64.c src/pack.c src/tap.c
25 t_packtests64_SOURCES = t/packtests64.c src/pack.c src/tap.c
27 check_PROGRAMS += t/printfchk t/helpdesc t/helpopt t/helpopt2
28 if HAVE_WCWIDTH
29 check_PROGRAMS += t/helpopt3
30 endif
32 EXTRA_LIBRARIES = libglohelp.a
33 libglohelp_a_SOURCES = src/help.c
34 libglohelp_a_CPPFLAGS = $(AM_CPPFLAGS) -DHELP_GETOPT_LONG_ONLY
35 libglohelp_a_SHORTNAME = glo
37 EXTRA_LIBRARIES += libnlshelp.a
38 libnlshelp_a_SOURCES = src/help.c t/nls/mbswidth.c
39 libnlshelp_a_CPPFLAGS = $(AM_CPPFLAGS) -DENABLE_NLS -I$(top_srcdir)/t/nls
40 libnlshelp_a_SHORTNAME = nls
42 t_helpdesc_SOURCES = t/helpdesc.c src/help.c src/tap.c
43 t_helpopt_SOURCES = t/helpopt.c src/help.c src/tap.c
45 t_helpopt2_SOURCES = t/helpopt.c src/tap.c
46 t_helpopt2_LDADD = $(libglohelp_a_OBJECTS)
47 EXTRA_t_helpopt2_DEPENDENCIES = $(t_helpopt2_LDADD)
49 t_helpopt3_SOURCES = t/helpopt.c src/tap.c
50 t_helpopt3_LDADD = $(libnlshelp_a_OBJECTS)
51 EXTRA_t_helpopt3_DEPENDENCIES = $(t_helpopt3_LDADD)
53 check_PROGRAMS += t/copysym
54 t_copysym_SOURCES = t/copysym.c src/tap.c
55 t_copysym_LDADD = $(libnlscopysym_a_OBJECTS)
56 EXTRA_t_copysym_DEPENDENCIES = $(t_copysym_LDADD)
58 EXTRA_LIBRARIES += libnlscopysym.a
59 libnlscopysym_a_SOURCES = src/copysym.c
60 libnlscopysym_a_CPPFLAGS = $(AM_CPPFLAGS) -DENABLE_NLS
61 libnlscopysym_a_SHORTNAME = nls
63 DISTCLEANFILES =
64 SUFFIXES =
66 include $(top_srcdir)/snippet/autotest.mk