move the cli stuff to subdir tool

This commit is contained in:
Klas Lindfors
2014-06-16 09:24:18 +02:00
parent 27f4047852
commit f19405fdb1
7 changed files with 57 additions and 28 deletions
+1 -28
View File
@@ -24,39 +24,12 @@
# non-source form of such a combination shall include the source code
# for the parts of OpenSSL used as well as that of the covered work.
SUBDIRS = . tests
AM_CFLAGS = $(WERROR_CFLAGS) $(WARN_CFLAGS)
AM_CPPFLAGS = $(OPENSSL_CFLAGS) $(PCSC_CFLAGS)
SUBDIRS = tool tests
ACLOCAL_AMFLAGS = -I m4
bin_PROGRAMS = yubico-piv-tool
yubico_piv_tool_SOURCES = yubico-piv-tool.c yubico-piv-tool.h2m
yubico_piv_tool_SOURCES += cmdline.ggo cmdline.c cmdline.h
yubico_piv_tool_LDADD = $(OPENSSL_LIBS) $(PCSC_LIBS)
yubico_piv_tool_LDADD += $(LTLIBWINSCARD) $(PCSC_MACOSX_LIBS)
cmdline.c cmdline.h: cmdline.ggo Makefile.am
gengetopt --input $^
BUILT_SOURCES = cmdline.c cmdline.h
MAINTAINERCLEANFILES = $(BUILT_SOURCES)
# Doc.
dist_man_MANS = yubico-piv-tool.1
MAINTAINERCLEANFILES += $(dist_man_MANS)
EXTRA_DIST = windows.mk mac.mk tests/basic.sh
yubico-piv-tool.1: $(yubico_piv_tool_SOURCES) \
$(top_srcdir)/configure.ac
$(HELP2MAN) --no-info \
--name="Yubico PIV tool" \
--include=$(top_srcdir)/yubico-piv-tool.h2m \
--output=$@ $(top_builddir)/yubico-piv-tool$(EXEEXT)
# Maintainer rules.
ChangeLog: