From aab25b804f3ff519efe88b390650ee7cc1346f5d Mon Sep 17 00:00:00 2001 From: ploetz Date: Wed, 14 Feb 2007 23:06:42 +0000 Subject: Simplify compile options (either --enable-ccid or --enable-openct implies --enable-reader-cm5121, so that is not needed as an explicit option) (Andreas Jellinghaus ) git-svn-id: https://svn.gnumonks.org/trunk/librfid@1977 e0336214-984f-0b4b-a45f-81c69e1f0ede --- src/Makefile.am | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index 78f9645..7c87dde 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -18,31 +18,25 @@ ASIC=rfid_asic_rc632.c READER=rfid_reader_openpcd.c MISC=rfid_access_mifare_classic.c -if ENABLE_CM5121 -READER_CM5121=rfid_reader_cm5121.c -AM_CFLAGS_CM5121= -DENABLE_CM5121 - if ENABLE_CCID -READER_LOW_CCID=ccid/rfid_reader_cm5121_ccid_direct.c ccid/ccid-driver.c +READER_CM5121=rfid_reader_cm5121.c ccid/rfid_reader_cm5121_ccid_direct.c ccid/ccid-driver.c +AM_CFLAGS_CM5121= -DENABLE_CM5121 endif if HAVE_OPENCT -READER_LOW_OPENCT=rfid_reader_cm5121_openct.c -LDFLAGS_OPENCT=-lopenct -endif - +READER_CM5121=rfid_reader_cm5121.c rfid_reader_cm5121_openct.c +AM_CFLAGS_CM5121= -DENABLE_CM5121 endif INCLUDES = $(all_includes) -I$(top_srcdir)/include $(INCLUDES_FIRMWARE) \ - $(INCLUDES_STATIC) $(OPENCT_CFLAGS) + $(INCLUDES_STATIC) @OPENCT_CFLAGS@ 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) $(LDFLAGS_OPENCT) +librfid_la_LDFLAGS = -Wc,-nostartfiles -version-info $(LIBVERSION) @OPENCT_LIBS@ librfid_la_SOURCES = $(CORE) $(L2) $(PROTO) $(ASIC) $(MISC) \ - $(READER) \ - $(READER_CM5121) $(READER_LOW_CCID) $(READER_LOW_OPENCT) + $(READER) $(READER_CM5121) pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = librfid.pc -- cgit v1.2.3