bootmii/stub/Makefile

28 lines
423 B
Makefile
Raw Permalink Normal View History

2022-08-08 08:33:53 +02:00
include ../starlet.mk
CFLAGS += -fpic
LDSCRIPT = stub.ld
LIBS = -lgcc
TARGET = bootmii.elf
TARGET_BIN = bootmii.bin
OBJS = start.o stub.o loader.o utils.o
include ../common.mk
all: $(TARGET_BIN)
$(TARGET_BIN): $(TARGET)
@echo " OBJCPY $@"
@$(OBJCOPY) -O binary $< $@
loader.o : ../loader/bootmii.elf
@echo " BIN2O $@"
@$(BIN2S) -a 32 $< | $(AS) -o $(@)
clean: myclean
myclean:
-rm -f $(TARGET_BIN)