-#in the next section to remove that particular feature from compilation
-APP_CFLAGS = -DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH_LEGICRF -DWITH_HITAG -DWITH_CRC -DON_DEVICE \
- -fno-strict-aliasing -ffunction-sections -fdata-sections
-#-DWITH_LCD
-
-#SRC_LCD = fonts.c LCD.c
-SRC_LF = lfops.c hitag2.c lfsampling.c
+#in the next section to remove that particular feature from compilation
+APP_CFLAGS = -DON_DEVICE \
+ -fno-strict-aliasing -ffunction-sections -fdata-sections
+
+include ../common/Makefile_Enabled_Options.common
+
+ifneq (,$(findstring WITH_LCD,$(APP_CFLAGS)))
+ SRC_LCD = fonts.c LCD.c
+else
+ SRC_LCD =
+endif
+SRC_LF = lfops.c hitag2.c hitagS.c lfsampling.c pcf7931.c lfdemod.c protocols.c