moved make.md to directory make and added example makefile

This commit is contained in:
scbj
2025-03-03 13:53:24 +01:00
parent 1865027156
commit 2b823350a1
4 changed files with 119 additions and 0 deletions

13
make/sources.mk Normal file
View File

@@ -0,0 +1,13 @@
AS_FILES := ./startup_stm32l552xx.s
C_FILES := ./main.c
C_FILES += ./system_stm32l5xx.c
C_FILES += ./sysmem.c
C_FILES += ./syscalls.c
# determine path and prefix sources
SRC_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
SRC_PATH := $(notdir $(patsubst %/,%,$(dir $(SRC_PATH))))
AS_SOURCES += $(addprefix $(SRC_PATH)/,$(notdir $(AS_FILES)))
C_SOURCES += $(addprefix $(SRC_PATH)/,$(notdir $(C_FILES)))