]> rtime.felk.cvut.cz Git - coffee/mt-apps.git/blobdiff - Makefile
Fix Makefile to work under buildroot
[coffee/mt-apps.git] / Makefile
index 6cad9192f275f9ee14d52be9bff78ee94279e78f..9aa981771c75f5e3b5ac5100137c5a1f60cda04b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 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)
@@ -12,6 +12,7 @@ endif
 
 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
@@ -19,7 +20,7 @@ mtserver_LIBS = -lev -lwebsockets
 mtkeys_SRCS   = signal_exit.c mt_keys.c
 mtkeys_LIBS   = -lev
 
-mtaio_SRCS    = signal_exit.c mt_keys.c mt_server.c mt_aio.c
+mtaio_SRCS    = signal_exit.c mt_keys.c mt_server.c mt_aio.c mt_blank.c
 mtaio_LIBS    = -lev -lwebsockets
 mtaio_DEFS    = -DNO_MAIN -DHAVE_RFID=$(if $(HAVE_RFID),1,0)