From: Michal Sojka Date: Tue, 7 Aug 2018 08:39:18 +0000 (+0200) Subject: Fix Makefile to work under buildroot X-Git-Url: https://rtime.felk.cvut.cz/gitweb/coffee/mt-apps.git/commitdiff_plain/7fccc7fb7579d876583f280a55098fc5ead69263 Fix Makefile to work under buildroot --- diff --git a/Makefile b/Makefile index 4479467..9aa9817 100644 --- 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 ) 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