x1 experimental libbrain

This commit is contained in:
Suguru Saito
2021-12-15 01:27:08 +09:00
parent cd917143b7
commit 373c554708
26 changed files with 260 additions and 2 deletions

View File

@@ -7,8 +7,10 @@ OBJCOPY := $(CROSS_COMPILE)objcopy
TARGET := AppMain
OBJS := crt0.o main.o
LIBS := libbrain/libbrain.a
ASFLAGS := -W
CFLAGS := -Wall -ffreestanding -fomit-frame-pointer -Os
CFLAGS := -Wall -ffreestanding -fomit-frame-pointer -Os -Ilibbrain
LDFLAGS := -T x1.ld
.PHONY:
@@ -25,7 +27,7 @@ clean:
$(CC) -c $(CFLAGS) $<
$(TARGET).elf: $(OBJS)
$(LD) $(LDFLAGS) $^ -o $@
$(LD) $(LDFLAGS) $^ $(LIBS) -o $@
$(TARGET).bin: $(TARGET).elf
$(OBJCOPY) -O binary $< $@