switched to command line handling with gengetopt
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@737 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
@@ -1,10 +1,29 @@
|
||||
EXTRA_DIST = picc.py
|
||||
do_subst = sed \
|
||||
-e 's,[@]PACKAGE[@],$(PACKAGE),g' \
|
||||
-e 's,[@]PACKAGE_NAME[@],$(PACKAGE_NAME),g' \
|
||||
-e 's,[@]PACKAGE_TARNAME[@],$(PACKAGE_TARNAME),g' \
|
||||
-e 's,[@]PACKAGE_BUGREPORT[@],$(PACKAGE_BUGREPORT),g' \
|
||||
-e 's,[@]PACKAGE_URL[@],$(PACKAGE_URL),g' \
|
||||
-e 's,[@]PACKAGE_VERSION[@],$(PACKAGE_VERSION),g'
|
||||
|
||||
BUILT_SOURCES = cmdline.h cmdline.c
|
||||
|
||||
EXTRA_DIST = pcsc-relay.ggo pcsc-relay.ggo.in
|
||||
EXTRA_DIST += picc.py
|
||||
|
||||
bin_PROGRAMS = pcsc-relay
|
||||
bin_SCRIPTS = picc.py
|
||||
|
||||
pcsc_relay_SOURCES = pcsc-relay.c pcscutil.c opicc.c lnfc.c binutil.c
|
||||
pcsc_relay_SOURCES = pcsc-relay.c pcscutil.c opicc.c lnfc.c $(BUILT_SOURCES)
|
||||
pcsc_relay_LDADD = $(PCSC_LIBS) $(LIBNFC_LIBS)
|
||||
pcsc_relay_CFLAGS = $(PCSC_CFLAGS) $(LIBNFC_CFLAGS)
|
||||
|
||||
noinst_HEADERS = pcscutil.h pcsc-relay.h binutil.h
|
||||
noinst_HEADERS = pcscutil.h pcsc-relay.h
|
||||
|
||||
pcsc-relay.c: $(BUILT_SOURCES)
|
||||
|
||||
$(BUILT_SOURCES): pcsc-relay.ggo
|
||||
gengetopt --output-dir=$(srcdir) < $<
|
||||
|
||||
pcsc-relay.ggo: pcsc-relay.ggo.in
|
||||
$(do_subst) < $< > $(srcdir)/$@
|
||||
|
||||
Reference in New Issue
Block a user