From 7a89aa1ea7e1b02b5cd310986adf4239ec0ce91d Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 18 Feb 2019 12:59:05 -0800 Subject: altos: Move common build definitions to src/Makefile.defs This cleans up the build process for all architectures, providing a common place to specify vpath, cflags and build rules for various common files. Signed-off-by: Keith Packard --- src/stm/Makefile-stm.defs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/stm/Makefile-stm.defs (limited to 'src/stm/Makefile-stm.defs') diff --git a/src/stm/Makefile-stm.defs b/src/stm/Makefile-stm.defs new file mode 100644 index 00000000..cce28f00 --- /dev/null +++ b/src/stm/Makefile-stm.defs @@ -0,0 +1,13 @@ +ifndef TOPDIR +TOPDIR=.. +endif + +include $(TOPDIR)/Makefile.defs + +vpath % $(TOPDIR)/stm:$(AO_VPATH) + +CC=$(ARM_CC) +LIBS=-L$(NEWLIB_NANO)/arm-none-eabi/lib/thumb/v7-m -lm -lc -lgcc + +STM_CFLAGS=-mlittle-endian -mcpu=cortex-m3 -mthumb \ + -I$(TOPDIR)/stm $(AO_CFLAGS) $(NEWLIB_CFLAGS) -- cgit v1.2.3