mirror of
https://github.com/fail0verflow/bootmii.git
synced 2024-11-28 14:35:44 +01:00
28 lines
423 B
Makefile
28 lines
423 B
Makefile
|
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)
|
||
|
|