diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -7,9 +7,7 @@ CPP=sdcpp ASM=crt0.asm\ isr.asm\ delay.asm -SRC=crc16.c\ - bootloader.c\ - font.c\ +SRC=font.c\ i2c.c\ input.c\ main.c\ @@ -22,6 +20,7 @@ OBJ=$(ASM:%.asm=build/%.rel)\ IHX=build/$(PROJECT).ihx TARGET=build/$(PROJECT).hex +BOOTLOADER=build/boot/bootloader.hex INCLUDE=include CFLAGS=-mz80 -I$(INCLUDE) --Werror @@ -53,8 +52,12 @@ $(IHX) : $(OBJ) @echo ' (LD)' $(OBJ) @$(CC) $(LDFLAGS) -o $@ $(OBJ) -$(TARGET) : $(IHX) - @hex2bin.py $< $@ +$(TARGET) : $(IHX) $(BOOTLOADER) + @hex2bin.py -l 32768 $< $@ + @dd if=$(BOOTLOADER) of=$@ obs=1024 seek=28 conv=notrunc + +$(BOOTLOADER) : + make -C boot .PHONE : flash flash : |