diff options
author | Konstantin Oblaukhov <oblaukhov.konstantin@gmail.com> | 2018-09-24 20:31:28 +0700 |
---|---|---|
committer | Konstantin Oblaukhov <oblaukhov.konstantin@gmail.com> | 2018-09-24 20:31:28 +0700 |
commit | 2db0e3fd7877253bf82766fb0666ab16234639b3 (patch) | |
tree | f054157368fa404d1dc71f6d71e083eb11dc669b /testhal/STM32/STM32F4xx/USB_HOST/Makefile | |
parent | 7ab18994e7ac71872b9aa4684546dffe01c5c3f0 (diff) | |
download | ChibiOS-Contrib-2db0e3fd7877253bf82766fb0666ab16234639b3.tar.gz ChibiOS-Contrib-2db0e3fd7877253bf82766fb0666ab16234639b3.tar.bz2 ChibiOS-Contrib-2db0e3fd7877253bf82766fb0666ab16234639b3.zip |
New style makefiles for demos and tests.
Diffstat (limited to 'testhal/STM32/STM32F4xx/USB_HOST/Makefile')
-rw-r--r-- | testhal/STM32/STM32F4xx/USB_HOST/Makefile | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/testhal/STM32/STM32F4xx/USB_HOST/Makefile b/testhal/STM32/STM32F4xx/USB_HOST/Makefile index a29150e..bf0d11a 100644 --- a/testhal/STM32/STM32F4xx/USB_HOST/Makefile +++ b/testhal/STM32/STM32F4xx/USB_HOST/Makefile @@ -88,6 +88,8 @@ PROJECT = ch # Imported source files and paths
CHIBIOS = ../../../../../ChibiOS-RT
CHIBIOS_CONTRIB = $(CHIBIOS)/../ChibiOS-Contrib
+# Licensing files.
+include $(CHIBIOS)/os/license/license.mk
# Startup files.
include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk
# HAL-OSAL files (optional).
@@ -111,22 +113,13 @@ LDSCRIPT= $(STARTUPLD)/STM32F407xG.ld # C sources that can be compiled in ARM or THUMB mode depending on the global
# setting.
-CSRC = $(STARTUPSRC) \
- $(KERNSRC) \
- $(PORTSRC) \
- $(OSALSRC) \
- $(HALSRC) \
- $(PLATFORMSRC) \
- $(BOARDSRC) \
- $(TESTSRC) \
- $(FATFSSRC) \
- $(STREAMSSRC) \
- $(SHELLSRC) \
+CSRC = $(ALLCSRC) \
+ $(TESTSRC) \
main.c usbh_custom_class_example.c
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
# setting.
-CPPSRC =
+CPPSRC = $(ALLCPPSRC)
# C sources to be compiled in ARM mode regardless of the global setting.
# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler
@@ -149,14 +142,10 @@ TCSRC = TCPPSRC =
# List ASM source files here
-ASMSRC =
-ASMXSRC = $(STARTUPASM) $(PORTASM) $(OSALASM)
-
-INCDIR = $(CHIBIOS)/os/license \
- $(STARTUPINC) $(KERNINC) $(PORTINC) $(OSALINC) \
- $(HALINC) $(PLATFORMINC) $(BOARDINC) $(TESTINC) \
- $(STREAMSINC) $(SHELLINC) $(FATFSINC) \
- $(CHIBIOS_CONTRIB)/os/various
+ASMSRC = $(ALLASMSRC)
+ASMXSRC = $(ALLXASMSRC)
+
+INCDIR = $(ALLINC) $(TESTINC)
#
# Project, sources and paths
|