summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2006-12-04 07:16:05 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2006-12-04 07:16:05 +0000
commit00efa8f03d10fb83d6ffbdc1eb5bea28a2501ac1 (patch)
treef56eaf32ab3723f07357b749812916541fd61964 /src
parentf0a3a3f8c4f39dfacf2d370bd23b27cd5b3358bf (diff)
- only link with openct if we need it
- don't try to build the utilities if we're cross-compiling for in-firmware git-svn-id: https://svn.gnumonks.org/trunk/librfid@1931 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 3e2bf95..6a4ce6e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -27,6 +27,7 @@ endif
if ENABLE_OPENCT
READER_LOW_OPENCT=rfid_reader_cm5121_openct.c
+LDFLAGS_OPENCT=-lopenct
endif
endif
@@ -37,7 +38,7 @@ AM_CFLAGS = -std=gnu99 -D__LIBRFID__ $(AM_CFLAGS_FIRMWARE) $(AM_CFLAGS_STATIC) \
$(AM_CFLAGS_CM5121)
lib_LTLIBRARIES = librfid.la
-librfid_la_LDFLAGS = -Wc,-nostartfiles -version-info $(LIBVERSION) -lopenct
+librfid_la_LDFLAGS = -Wc,-nostartfiles -version-info $(LIBVERSION) $(LDFLAGS_OPENCT)
librfid_la_SOURCES = $(CORE) $(L2) $(PROTO) $(ASIC) $(MISC) \
$(READER) \
$(READER_CM5121) $(READER_LOW_CCID) $(READER_LOW_OPENCT)
personal git repositories of Harald Welte. Your mileage may vary