summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2007-01-06 14:39:59 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2007-01-06 14:39:59 +0000
commitc013e93217b652cce1538a250bc348d1c8c75fdb (patch)
tree368405c586659998a889127f3b1f35326e436621 /src
parentd7650b956f19c0bff282c81344c155f1c6018acb (diff)
- change --with-openct to --enable-openct
- try to be more intelligent to detect openct library location - add librfid.pc file (pkgconfig) (Andreas Jellinghaus <aj@dungeon.inka.de>) git-svn-id: https://svn.gnumonks.org/trunk/librfid@1955 e0336214-984f-0b4b-a45f-81c69e1f0ede
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