+#ifdef WITH_EMV
+SRC_EMV = tlv.c emvdataels.c emvutil.c emvcmd.c
+#endif
+#ifdef WITH_ICLASS
+SRC_ICLASS = iclass.c optimized_cipher.c
+#endif
+#ifdef WITH_LEGIC
+SRC_LEGIC = legicrf.c legic_prng.c
+#endif
+
+#the FPGA bitstream files. Note: order matters!
+FPGA_BITSTREAMS = fpga_lf.bit fpga_hf.bit
+
+#the zlib source files required for decompressing the fpga config at run time
+SRC_ZLIB = inflate.c inffast.c inftrees.c adler32.c zutil.c
+#additional defines required to compile zlib
+ZLIB_CFLAGS = -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
+APP_CFLAGS += $(ZLIB_CFLAGS)
+# zlib includes:
+APP_CFLAGS += -I../zlib
+
+# stdint.h provided locally until GCC 4.5 becomes C99 compliant
+APP_CFLAGS += -I.
+
+# Compile these in thumb mode (small size)