From c013e93217b652cce1538a250bc348d1c8c75fdb Mon Sep 17 00:00:00 2001 From: laforge Date: Sat, 6 Jan 2007 14:39:59 +0000 Subject: - change --with-openct to --enable-openct - try to be more intelligent to detect openct library location - add librfid.pc file (pkgconfig) (Andreas Jellinghaus ) git-svn-id: https://svn.gnumonks.org/trunk/librfid@1955 e0336214-984f-0b4b-a45f-81c69e1f0ede --- src/Makefile.am | 6 ++++-- src/librfid.pc.in | 11 +++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 src/librfid.pc.in (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index 692273b..78f9645 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -26,7 +26,7 @@ if ENABLE_CCID READER_LOW_CCID=ccid/rfid_reader_cm5121_ccid_direct.c ccid/ccid-driver.c endif -if ENABLE_OPENCT +if HAVE_OPENCT READER_LOW_OPENCT=rfid_reader_cm5121_openct.c LDFLAGS_OPENCT=-lopenct endif @@ -34,7 +34,7 @@ endif endif INCLUDES = $(all_includes) -I$(top_srcdir)/include $(INCLUDES_FIRMWARE) \ - $(INCLUDES_STATIC) + $(INCLUDES_STATIC) $(OPENCT_CFLAGS) AM_CFLAGS = -std=gnu99 -D__LIBRFID__ $(AM_CFLAGS_FIRMWARE) $(AM_CFLAGS_STATIC) \ $(AM_CFLAGS_CM5121) @@ -44,3 +44,5 @@ librfid_la_SOURCES = $(CORE) $(L2) $(PROTO) $(ASIC) $(MISC) \ $(READER) \ $(READER_CM5121) $(READER_LOW_CCID) $(READER_LOW_OPENCT) +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = librfid.pc diff --git a/src/librfid.pc.in b/src/librfid.pc.in new file mode 100644 index 0000000..6c64c00 --- /dev/null +++ b/src/librfid.pc.in @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ +sysincludedir=@sysincludedir@ + +Name: librfid +Description: librfid +Version: @VERSION@ +Libs: -L${libdir} @LIBS@ -lrfid +Cflags: -I${sysincludedir} -I${includedir} -- cgit v1.2.3