From e59f23ad5c60dc08f281ccc7a794f4482e55ad00 Mon Sep 17 00:00:00 2001 From: Amir Hammad Date: Fri, 24 Jun 2016 01:16:57 +0200 Subject: Don't compile usart_helpers.o when USART_DEBUG is not defined Signed-off-by: Amir Hammad --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') 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 -- cgit