]> git.draconx.ca Git - dxcommon.git/blobdiff - Makefile.am
help: Add a single-dash long option mode.
[dxcommon.git] / Makefile.am
index a9f793484145c4d3769e1ff319b90aece2cb5692..3f976b1052b058bb5c03e00e4a82473cf1a3c6ee 100644 (file)
@@ -18,10 +18,17 @@ t_packtestu64_SOURCES = t/packtestu64.c src/pack.c src/tap.c
 t_packtests64_SOURCES = t/packtests64.c src/pack.c src/tap.c
 
 if HAVE_STRUCT_OPTION
-check_PROGRAMS += t/helpdesc t/helpopt
+check_PROGRAMS += t/helpdesc t/helpopt t/helpopt2
 endif
 
+EXTRA_LIBRARIES = libglohelp.a
+libglohelp_a_SOURCES = src/help.c
+libglohelp_a_CFLAGS = -DHELP_GETOPT_LONG_ONLY
+libglohelp_a_SHORTNAME = glo
+
 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)
 t_helpdesc_SOURCES = t/helpdesc.c src/help.c src/tap.c
 
 DISTCLEANFILES =