diff options
| author | Xavi Del Campo <xavi.dcr@tutanota.com> | 2019-11-06 05:15:59 +0100 |
|---|---|---|
| committer | Xavi Del Campo <xavi.dcr@tutanota.com> | 2019-11-06 05:17:27 +0100 |
| commit | 471e326e65d241c2a9ef003d36ab717b4bf47208 (patch) | |
| tree | c0f0b73075f6012ac81c8a2ef30312fda8a2bf7c /Makefile | |
| parent | fddb50051bef9355d3f3d7c618f3ee9216d4e033 (diff) | |
Renamed linker script as memory definitions are tied to STM8S003F3.
Improved linker script so "flash" matches available user code size.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -15,7 +15,7 @@ INCLUDE = $(addprefix -I, inc/) AS_FLAGS = # Compiler flags -CC_FLAGS = -mstm8 --out-fmt-elf -c --debug --opt-code-size --gas --function-sections --data-sections $(INCLUDE) +CC_FLAGS = -mstm8 --out-fmt-elf -c --debug --opt-code-size --asm=gas --function-sections --data-sections $(INCLUDE) # Path definitions PROJECT = STM8 @@ -27,9 +27,8 @@ VPATH += src OBJECTS = $(addprefix $(OBJ_DIR)/, main.o bar.o) # Linker flags -LD_FLAGS = -T./elf32stm8.x --print-memory-usage --gc-sections -Map $(OBJ_DIR)/map_$(PROJECT).map -LIB_DIRS = $(addprefix -L, /usr/local/share/sdcc/lib/stm8 lib) -LIBS = $(apprefix -l, stm8 stm8s) +LD_FLAGS = -T./elf32stm8s003f3.x --print-memory-usage --gc-sections -Map $(OBJ_DIR)/map_$(PROJECT).map +LIB_DIRS = $(addprefix -L, /usr/local/share/sdcc/lib/stm8) # Source dependencies: DEPS = $(OBJECTS:.o=.d) |
