From b65bbf7f7b1fe097f3ea671803a0cb017e319e77 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 1 Jul 2023 11:42:08 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@16308 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- demos/SPC5/NIL-SPC560D-EVB/Makefile | 47 +++++++++++++++++------------ 1 file changed, 27 insertions(+), 20 deletions(-) diff --git a/demos/SPC5/NIL-SPC560D-EVB/Makefile b/demos/SPC5/NIL-SPC560D-EVB/Makefile index 31b47283b..9772b8162 100644 --- a/demos/SPC5/NIL-SPC560D-EVB/Makefile +++ b/demos/SPC5/NIL-SPC560D-EVB/Makefile @@ -80,8 +80,14 @@ endif # Define project name here PROJECT = ch -# Imported source files and paths -CHIBIOS = ../../.. +# Imported source files and paths. +CHIBIOS := ../../.. +CONFDIR := . +BUILDDIR := ./build +DEPDIR := ./.dep + +# Licensing files. +include $(CHIBIOS)/os/license/license.mk # Startup files. include $(CHIBIOS)/os/common/startup/e200/compilers/GCC/mk/startup_spc560dxx.mk # HAL-OSAL files (optional). @@ -100,29 +106,30 @@ include $(CHIBIOS)/test/oslib/oslib_test.mk # Define linker script file here LDSCRIPT= $(STARTUPLD)/SPC560D40.ld -# C sources here. -CSRC = $(STARTUPSRC) \ - $(KERNSRC) \ - $(LIBSRC) \ - $(PORTSRC) \ - $(OSALSRC) \ - $(HALSRC) \ - $(PLATFORMSRC) \ - $(BOARDSRC) \ +# C sources that can be compiled in ARM or THUMB mode depending on the global +# setting. +CSRC = $(ALLCSRC) \ $(TESTSRC) \ main.c -# C++ sources here. -CPPSRC = +# C++ sources that can be compiled in ARM or THUMB mode depending on the global +# setting. +CPPSRC = $(ALLCPPSRC) -# List ASM source files here -ASMSRC = -ASMXSRC = $(STARTUPASM) $(PORTASM) $(OSALASM) +# List ASM source files here. +ASMSRC = $(ALLASMSRC) -INCDIR = $(CHIBIOS)/os/license \ - $(STARTUPINC) $(KERNINC) $(LIBINC) $(PORTINC) $(OSALINC) \ - $(HALINC) $(PLATFORMINC) $(BOARDINC) $(TESTINC) \ - $(CHIBIOS)/os/various +# List ASM with preprocessor source files here. +ASMXSRC = $(ALLXASMSRC) + +# Inclusion directories. +INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC) + +# Define C warning options here. +CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes + +# Define C++ warning options here. +CPPWARN = -Wall -Wextra -Wundef # # Project, sources and paths