Move master key detection and authentication in a convenience library.

The autohell hack sucks and should be fixed, but I was unable to find the magic
trick to prevent automake from building broken libtool rules which produce
warnings about portability :-/.
This commit is contained in:
Romain Tartiere 2010-11-21 00:10:04 +00:00
parent 9011bc01e3
commit 02c9d33ce1
4 changed files with 100 additions and 34 deletions

View file

@ -12,6 +12,7 @@ TESTS = run-test.sh
TESTS_ENVIRONMENT = NO_MAKE=yes CUTTER="$(CUTTER)"
noinst_LTLIBRARIES = \
mifare_desfire_auto_authenticate.la \
test_mad.la \
test_mifare_application.la \
test_mifare_classic.la \
@ -26,6 +27,9 @@ noinst_LTLIBRARIES = \
AM_LDFLAGS = -module -rpath $(libdir) -avoid-version -no-undefined
mifare_desfire_auto_authenticate_la_SOURCES = mifare_desfire_auto_authenticate.c \
mifare_desfire_auto_authenticate.h
test_mad_la_SOURCES = test_mad.c
test_mad_la_LIBADD = $(top_builddir)/libfreefare/libfreefare.la
@ -47,7 +51,8 @@ test_mifare_classic_create_trailer_block_la_LIBADD = $(top_builddir)/libfreefare
test_mifare_desfire_la_SOURCES = test_mifare_desfire.c \
mifare_desfire_fixture.c \
mifare_desfire_fixture.h
test_mifare_desfire_la_LIBADD = $(top_builddir)/libfreefare/libfreefare.la -lutil
test_mifare_desfire_la_LIBADD = $(top_builddir)/libfreefare/libfreefare.la \
mifare_desfire_auto_authenticate.lo
test_mifare_desfire_aid_la_SOURCES = test_mifare_desfire_aid.c
test_mifare_desfire_aid_la_LIBADD = $(top_builddir)/libfreefare/libfreefare.la