Update Makefile

add support for shelf toolchain
This commit is contained in:
Milang 2020-01-05 20:54:37 +01:00
parent 124cc9b422
commit 6d94d7a382
1 changed files with 3 additions and 2 deletions

5
Makefile Normal file → Executable file
View File

@ -18,7 +18,7 @@ endif
cflags := -m3 -mb -ffreestanding -nostdlib -fstrict-volatile-bitfields -Wall \
-Wextra -Os -I . $(modelflag)
target ?= sh3eb-elf
target ?= sh-elf
lib := liblog-$(MODEL).a
header := liblog.h
@ -45,7 +45,8 @@ build-$(MODEL)/%.c.o: %.c | build-$(MODEL)/
# Misc rules
clean:
@ rm -rf build
@ rm -rf build-fx
@ rm -rf build-cg
distclean: clean
@ rm -f $(lib)