libnfc can now be compiled using autotools and libtool.
It now provide a pkg-config file allowing a simplified compilation against libnfc.
This commit is contained in:
parent
bbc4c424b1
commit
0b979eaee2
12 changed files with 1621 additions and 0 deletions
31
Makefile.am
Normal file
31
Makefile.am
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
bin_PROGRAMS = anticol list mftool relay emulate
|
||||
|
||||
# set the include path found by configure
|
||||
INCLUDES= $(all_includes)
|
||||
|
||||
nfcinclude_HEADERS = libnfc.h bitutils.h defines.h dev_acr122.h dev_pn531.h types.h mifaretag.h devices.h
|
||||
nfcincludedir = $(includedir)/libnfc
|
||||
|
||||
lib_LTLIBRARIES = libnfc.la
|
||||
|
||||
libnfc_la_CFLAGS = @LIBUSB_CFLAGS@ @LIBPCSCLITE_CFLAGS@
|
||||
libnfc_la_SOURCES = dev_pn531.c dev_acr122.c bitutils.c libnfc.c
|
||||
libnfc_la_LIBADD = @LIBUSB_LIBS@ @LIBPCSCLITE_LIBS@
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = libnfc.pc
|
||||
|
||||
anticol_SOURCES = anticol.c
|
||||
anticol_LDADD = libnfc.la
|
||||
|
||||
list_SOURCES = list.c
|
||||
list_LDADD = libnfc.la
|
||||
|
||||
mftool_SOURCES = mftool.c
|
||||
mftool_LDADD = libnfc.la
|
||||
|
||||
relay_SOURCES = relay.c
|
||||
relay_LDADD = libnfc.la
|
||||
|
||||
emulate_SOURCES = emulate.c
|
||||
emulate_LDADD = libnfc.la
|
||||
Loading…
Add table
Add a link
Reference in a new issue