X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Farm.git;a=blobdiff_plain;f=betty%2FMakefile;h=0af33acaa0f98a8e698c9ee1cd58dc35c8dc8854;hp=dfd3feee50e390e20f276f1f8995c31205e89d0f;hb=2cbc6d2f18a38237fcd1df2ef67ba315af080f03;hpb=0f5679e8fd5b03c53a332a94f85008b0494fbd2e diff --git a/betty/Makefile b/betty/Makefile index dfd3fee..0af33ac 100644 --- a/betty/Makefile +++ b/betty/Makefile @@ -16,7 +16,7 @@ CROSS_ROM_LDFLAGS = -Tlpc2220_rom.ld -nostartfiles -nostdlib # build objects HOST_TARGET = lpcload fwdump -CROSS_TARGET = fwbc.hex fwflash.hex fwflash.elf # debug: .elf for objdump +CROSS_TARGET = fwbc.hex fwflash.hex betty.hex # all projects all: $(HOST_TARGET) $(CROSS_TARGET) @@ -36,6 +36,10 @@ arm: arm_clean $(CROSS_TARGET) %.elf: %.o startup.o $(CROSS_LD) $(CROSS_RAM_LDFLAGS) startup.o -o $@ $< +# special linker case ... +betty.elf: betty.o startup.o + $(CROSS_LD) $(CROSS_ROM_LDFLAGS) startup.o -o $@ $< + # .hex out of .elf %.hex: %.elf $(CROSS_OBJCOPY) -O ihex $< $@