Move examples into src/examples subdirectory.

Change examples names to nfc-* (or nfcip-*).
This commit is contained in:
Romuald Conty 2009-10-06 08:32:50 +00:00
parent de537473a0
commit 6aae96e1e1
18 changed files with 37 additions and 33 deletions

View file

@ -149,6 +149,7 @@ fi
AC_CONFIG_FILES([
Makefile
src/Makefile
src/examples/Makefile
libnfc.pc
])

View file

@ -1,15 +1,11 @@
enable_pcsc_lite = @enable_pcsc_lite@
bin_PROGRAMS = nfc-anticol nfc-list nfc-mftool nfc-mfultool nfc-relay nfc-emulate nfcip-target nfcip-initiator
SUBDIRS = . examples
# set the include path found by configure
INCLUDES= $(all_includes)
nfc_devices_headers = dev_arygon.h
nfc_examples_headers = mifaretag.h mifareultag.h
nfcinclude_HEADERS = libnfc.h bitutils.h defines.h types.h rs232.h devices.h messages.h
nfcinclude_HEADERS += $(nfc_devices_headers)
nfcinclude_HEADERS += $(nfc_examples_headers)
nfcincludedir = $(includedir)/libnfc
lib_LTLIBRARIES = libnfc.la
@ -31,31 +27,3 @@ if LIBUSB_ENABLED
libnfc_la_LIBADD += @LIBUSB_LIBS@
endif
nfc_anticol_SOURCES = anticol.c
nfc_anticol_LDADD = libnfc.la
nfc_list_SOURCES = list.c
nfc_list_LDADD = libnfc.la
nfc_mfultool_SOURCES = mfultool.c
nfc_mfultool_LDADD = libnfc.la
nfc_mftool_SOURCES = mftool.c
nfc_mftool_LDADD = libnfc.la
nfc_relay_SOURCES = relay.c
nfc_relay_LDADD = libnfc.la
nfc_emulate_SOURCES = emulate.c
nfc_emulate_LDADD = libnfc.la
nfcip_target_SOURCES = target.c
nfcip_target_LDADD = libnfc.la
nfcip_initiator_SOURCES = initiator.c
nfcip_initiator_LDADD = libnfc.la
dist_man_MANS = nfc-anticol.1 nfc-emulate.1 nfc-list.1 nfc-mftool.1 nfc-relay.1
#dist_man_MANS = $(man_MANS)
#EXTRA_DIST = $(man_MANS)

35
src/examples/Makefile.am Normal file
View file

@ -0,0 +1,35 @@
bin_PROGRAMS = nfc-anticol nfc-list nfc-mftool nfc-mfultool nfc-relay nfc-emulate nfcip-target nfcip-initiator
# set the include path found by configure
INCLUDES= $(all_includes)
AM_CFLAGS = -I$(top_srcdir)/src
nfc_anticol_SOURCES = nfc-anticol.c
nfc_anticol_LDADD = $(top_builddir)/src/libnfc.la
nfc_list_SOURCES = nfc-list.c
nfc_list_LDADD = $(top_builddir)/src/libnfc.la
nfc_mfultool_SOURCES = nfc-mfultool.c mifareultag.h
nfc_mfultool_LDADD = $(top_builddir)/src/libnfc.la
nfc_mftool_SOURCES = nfc-mftool.c mifaretag.h
nfc_mftool_LDADD = $(top_builddir)/src/libnfc.la
nfc_relay_SOURCES = nfc-relay.c
nfc_relay_LDADD = $(top_builddir)/src/libnfc.la
nfc_emulate_SOURCES = nfc-emulate.c
nfc_emulate_LDADD = $(top_builddir)/src/libnfc.la
nfcip_target_SOURCES = nfcip-target.c
nfcip_target_LDADD = $(top_builddir)/src/libnfc.la
nfcip_initiator_SOURCES = nfcip-initiator.c
nfcip_initiator_LDADD = $(top_builddir)/src/libnfc.la
dist_man_MANS = nfc-anticol.1 nfc-emulate.1 nfc-list.1 nfc-mftool.1 nfc-relay.1
#dist_man_MANS = $(man_MANS)
#EXTRA_DIST = $(man_MANS)