summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2006-10-23 16:06:33 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2006-10-23 16:06:33 +0000
commitcc2845b1dd16c6c096a5487a5b9d4a3f8ab765be (patch)
tree8cd474382a7e13c5a4cbb8fae927aca8162f53e6
parentc9d3bf338933f4119847dc5663cea88a2011d381 (diff)
fix conditionals / variable definitions (automake madness)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1915 e0336214-984f-0b4b-a45f-81c69e1f0ede
-rw-r--r--src/Makefile.am27
1 files changed, 16 insertions, 11 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 0c4be7c..86663a4 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,17 +1,14 @@
LIBVERSION= 0:0:0
-INCLUDES = $(all_includes) -I$(top_srcdir)/include
-AM_CFLAGS = -std=gnu99 -D__LIBRFID__
if ENABLE_FIRMWARE
-INCLUDES += -I$(FIRMWARE_PATH)/include -I$(GNUARM_PATH)/arm-elf/include
-AM_CFLAGS += -DLIBRFID_FIRMWARE -DLIBRFID_STATIC -D__MS_types__
+INCLUDES_FIRMWARE = -I$(FIRMWARE_PATH)/include -I$(GNUARM_PATH)/arm-elf/include
+AM_CFLAGS_FIRMWARE = -DLIBRFID_FIRMWARE -DLIBRFID_STATIC -D__MS_types__
endif
if ENABLE_STATIC
-AM_CFLAGS += -DLIBRFID_STATIC
+AM_CFLAGS_STATIC = -DLIBRFID_STATIC
endif
-lib_LTLIBRARIES = librfid.la
CORE=rfid.c rfid_layer2.c rfid_protocol.c rfid_reader.c rfid_scan.c
L2=rfid_layer2_iso14443a.c rfid_layer2_iso14443b.c rfid_layer2_iso15693.c rfid_iso14443_common.c
@@ -20,19 +17,27 @@ ASIC=rfid_asic_rc632.c
READER=rfid_reader_openpcd.c
if ENABLE_CM5121
-READER += rfid_reader_cm5121.c
-AM_CFLAGS += -DENABLE_CM5121
+READER_CM5121=rfid_reader_cm5121.c
+AM_CFLAGS_CM5121= -DENABLE_CM5121
if ENABLE_CCID
-READER_LOW=ccid/rfid_reader_cm5121_ccid_direct.c ccid/ccid-driver.c
+READER_LOW_CCID=ccid/rfid_reader_cm5121_ccid_direct.c ccid/ccid-driver.c
endif
if ENABLE_OPENCT
-READER_LOW=rfid_reader_cm5121_openct.c
+READER_LOW_OPENCT=rfid_reader_cm5121_openct.c
endif
endif
+INCLUDES = $(all_includes) -I$(top_srcdir)/include $(INCLUDES_FIRMWARE) \
+ $(INCLUDES_STATIC)
+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_SOURCES = $(CORE) $(L2) $(PROTO) $(READER) $(READER_LOW) $(ASIC)
+librfid_la_SOURCES = $(CORE) $(L2) $(PROTO) $(ASIC) \
+ $(READER) \
+ $(READER_CM5121) $(READER_LOW_CCID) $(READER_LOW_OPENCT)
personal git repositories of Harald Welte. Your mileage may vary