From 3cc21611338083eea37a3cf1b92dbc1cfb1c42e7 Mon Sep 17 00:00:00 2001 From: IOsetting Date: Fri, 10 Mar 2023 02:20:48 +0800 Subject: [PATCH] feat: update makefile --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Makefile b/Makefile index 5c24b12..25a2016 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,8 @@ ENABLE_PRINTF_FLOAT ?= n USE_FREERTOS ?= n # Build with CMSIS DSP functions, y:yes, n:no USE_DSP ?= n +# Build with Waveshare e-paper lib, y:yes, n:no +USE_EPAPER ?= y # Programmer, jlink or pyocd FLASH_PROGRM ?= pyocd @@ -109,7 +111,18 @@ CFILES += Libraries/CMSIS/DSP/Source/BasicMathFunctions/BasicMathFunctions.c \ Libraries/CMSIS/DSP/Source/TransformFunctions/TransformFunctions.c INCLUDES += Libraries/CMSIS/DSP/Include \ Libraries/CMSIS/DSP/PrivateInclude +endif +ifeq ($(USE_EPAPER),y) +CDIRS += Libraries/EPaper/Lib \ + Libraries/EPaper/Examples \ + Libraries/EPaper/Fonts \ + Libraries/EPaper/GUI + +INCLUDES += Libraries/EPaper/Lib \ + Libraries/EPaper/Examples \ + Libraries/EPaper/Fonts \ + Libraries/EPaper/GUI endif include ./rules.mk