From 5677f3526000f0c55193a7a5ade96e5ace96ca77 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Tue, 16 Feb 2021 11:32:37 +0100 Subject: [PATCH] tune makefile --- cube/Makefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/cube/Makefile b/cube/Makefile index d397de3..837978f 100644 --- a/cube/Makefile +++ b/cube/Makefile @@ -148,10 +148,6 @@ AS_INCLUDES = C_INCLUDES = \ -Ihottislib \ -IUser/Inc \ --IioLibrary_Driver/Internet/SNTP \ --IioLibrary_Driver/Internet/DNS \ --IioLibrary_Driver/Internet/DHCP \ --IioLibrary_Driver/Ethernet \ -ICore/Inc \ -IDrivers/STM32F1xx_HAL_Driver/Inc \ -IDrivers/STM32F1xx_HAL_Driver/Inc/Legacy \ @@ -160,6 +156,15 @@ C_INCLUDES = \ -IDrivers/CMSIS/Include +ifeq ($(NETWORK), 1) +C_INCLUDES += \ +-IioLibrary_Driver/Internet/SNTP \ +-IioLibrary_Driver/Internet/DNS \ +-IioLibrary_Driver/Internet/DHCP \ +-IioLibrary_Driver/Ethernet +endif + + # compile gcc flags ASFLAGS = $(MCU) $(AS_DEFS) $(AS_INCLUDES) $(OPT) -Wall -Werror -fdata-sections -ffunction-sections