X-Git-Url: https://git.draconx.ca/gitweb/dxcommon.git/blobdiff_plain/67d36b0273cd1b9e449ff0de4ba045173bdc153c..HEAD:/Makefile.am diff --git a/Makefile.am b/Makefile.am index ecfc28c..377ca02 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,12 +1,21 @@ -# Copyright © 2015 Nick Bowler +# Copyright © 2015, 2019, 2021-2024 Nick Bowler # -# License WTFPL2: Do What The Fuck You Want To Public License, version 2. -# This is free software: you are free to do what the fuck you want to. +# License GPLv3+: GNU General Public License version 3 or any later version. +# This is free software: you are free to change and redistribute it. # There is NO WARRANTY, to the extent permitted by law. ACLOCAL_AMFLAGS = -I m4 -AM_CFLAGS = -I$(top_srcdir)/src +AM_CPPFLAGS = -I$(top_srcdir)/src $(STUB_INCLUDES) + +EXTRA_DIST = scripts/fix-gnulib.pl scripts/fix-ltdl.pl \ + scripts/bake-config.awk scripts/gen-options.awk \ + scripts/gen-strtab.awk scripts/gen-tree.awk scripts/join.awk \ + scripts/pe-subsys.awk src/copysym.h src/getline.h src/help.h \ + src/pack.h src/tap.h t/tapcheck.sh t/getopt/getopt.h \ + t/nls/gettext.h t/nls/mbswidth.h tests/data/gnulib.mk + +check_LIBRARIES = t/libdummy.a t/libempty.a check_PROGRAMS = t/packtestu t/packtests t/packtestu64 t/packtests64 @@ -15,7 +24,46 @@ t_packtests_SOURCES = t/packtests.c src/pack.c src/tap.c t_packtestu64_SOURCES = t/packtestu64.c src/pack.c src/tap.c t_packtests64_SOURCES = t/packtests64.c src/pack.c src/tap.c -EXTRA_DIST = +check_PROGRAMS += t/printfchk t/helpdesc t/helpopt t/helpopt2 +if HAVE_WCWIDTH +check_PROGRAMS += t/helpopt3 +endif + +EXTRA_LIBRARIES = libglohelp.a +libglohelp_a_SOURCES = src/help.c +libglohelp_a_CPPFLAGS = $(AM_CPPFLAGS) -DHELP_GETOPT_LONG_ONLY +libglohelp_a_SHORTNAME = glo + +EXTRA_LIBRARIES += libnlshelp.a +libnlshelp_a_SOURCES = src/help.c t/nls/mbswidth.c +libnlshelp_a_CPPFLAGS = $(AM_CPPFLAGS) -DENABLE_NLS -I$(top_srcdir)/t/nls +libnlshelp_a_SHORTNAME = nls + +t_helpdesc_SOURCES = t/helpdesc.c src/help.c src/tap.c +t_helpopt_SOURCES = t/helpopt.c src/help.c src/tap.c + +t_helpopt2_SOURCES = t/helpopt.c src/tap.c +t_helpopt2_LDADD = $(libglohelp_a_OBJECTS) +EXTRA_t_helpopt2_DEPENDENCIES = $(t_helpopt2_LDADD) + +t_helpopt3_SOURCES = t/helpopt.c src/tap.c +t_helpopt3_LDADD = $(libnlshelp_a_OBJECTS) +EXTRA_t_helpopt3_DEPENDENCIES = $(t_helpopt3_LDADD) + +check_PROGRAMS += t/copysym +t_copysym_SOURCES = t/copysym.c src/tap.c +t_copysym_LDADD = $(libnlscopysym_a_OBJECTS) +EXTRA_t_copysym_DEPENDENCIES = $(t_copysym_LDADD) + +EXTRA_LIBRARIES += libnlscopysym.a +libnlscopysym_a_SOURCES = src/copysym.c +libnlscopysym_a_CPPFLAGS = $(AM_CPPFLAGS) -DENABLE_NLS +libnlscopysym_a_SHORTNAME = nls + +check_PROGRAMS += t/getline +t_getline_SOURCES = t/getline.c src/tap.c + +DISTCLEANFILES = SUFFIXES = include $(top_srcdir)/snippet/autotest.mk