diff options
| author | Keith Packard <keithp@keithp.com> | 2019-02-18 12:59:05 -0800 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2019-02-18 13:08:23 -0800 |
| commit | 7a89aa1ea7e1b02b5cd310986adf4239ec0ce91d (patch) | |
| tree | 74e5fe54f95ab21e513a1c9a14b8a02c1c8cffea /src/stm/Makefile-stm.defs | |
| parent | 889518aeee080b0f8bb954db86d08105898d8161 (diff) | |
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 <keithp@keithp.com>
Diffstat (limited to 'src/stm/Makefile-stm.defs')
| -rw-r--r-- | src/stm/Makefile-stm.defs | 13 |
1 files changed, 13 insertions, 0 deletions
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) |
