OUTPUT_DIR = build
CFLAGS = -Ilibwebsockets/include -Llibwebsockets/lib
-can_compile = $(shell set -x; if echo '$(1)' | $(CC) $(CFLAGS) -c -xc - -o /dev/null >/dev/null 2>&1; then echo yes; fi)
+can_compile = $(shell if echo '$(1)' | $(CC) $(CFLAGS) -c -xc - -o /dev/null >/dev/null 2>&1; then echo yes; fi)
HAVE_RFID := $(call can_compile,\#include <uFCoder.h>)
ifeq ($(HAVE_RFID),yes)
mtrfid_SRCS = signal_exit.c mt_rfid.c
mtrfid_LIBS = -lev -luFCoder-armhf
+mtrfid_DEFS = -DHAVE_RFID=1
mtserver_SRCS = signal_exit.c mt_server.c
mtserver_LIBS = -lev -lwebsockets