summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAmir Hammad <amir.hammad@hotmail.com>2016-06-24 01:16:57 +0200
committerAmir Hammad <amir.hammad@hotmail.com>2016-06-25 10:09:55 +0200
commite59f23ad5c60dc08f281ccc7a794f4482e55ad00 (patch)
treef8f16c81d856a003d9b455a2bf04028506491556 /Makefile
parent40192caee01bd5fe6c8ed2c61798c95782ccfdd2 (diff)
downloadsecure-hid-e59f23ad5c60dc08f281ccc7a794f4482e55ad00.tar.gz
secure-hid-e59f23ad5c60dc08f281ccc7a794f4482e55ad00.tar.bz2
secure-hid-e59f23ad5c60dc08f281ccc7a794f4482e55ad00.zip
Don't compile usart_helpers.o when USART_DEBUG is not defined
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1052d3a..9f42be3 100644
--- a/Makefile
+++ b/Makefile
@@ -98,6 +98,11 @@ SRCS := $(sort $(notdir $(wildcard $(SRCDIR)/*.cpp)))
OBJSDEMO += $(patsubst %.cpp, build/%.o ,$(SRCS))
OBJS = $(filter-out $(BINARY).o, $(OBJSDEMO))
+ifndef USART_DEBUG
+OBJS := $(filter-out build/usart_helpers.o, $(OBJS))
+OBJSDEMO := $(filter-out build/usart_helpers.o, $(OBJSDEMO))
+endif
+
INCLUDE_DIR = $(OPENCM3_DIR)/include
LIB_DIR = $(OPENCM3_DIR)/lib