summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am6
-rw-r--r--src/librfid.pc.in11
2 files changed, 15 insertions, 2 deletions
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}
personal git repositories of Harald Welte. Your mileage may vary