X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=betty%2FMakefile;h=3807986fd7b6403768b82b4243ded301b47cc46b;hb=285ca541c9a479d7658eb0a7239df086dbdc53f3;hp=54f1d34b60df3feadbe7140a3ba3d56f42b7a773;hpb=60432148802391c2ba390e9c56f999514653c969;p=my-code%2Farm.git diff --git a/betty/Makefile b/betty/Makefile index 54f1d34..3807986 100644 --- a/betty/Makefile +++ b/betty/Makefile @@ -15,14 +15,24 @@ CROSS_RAM_LDFLAGS = -Tlpc2220_ram.ld -nostartfiles -nostdlib CROSS_ROM_LDFLAGS = -Tlpc2220_rom.ld -nostartfiles -nostdlib # build objects -HOST_TARGET = lpcload fwdump +HOST_TARGET = lpcload fwdump bmp2b CROSS_TARGET = fwbc.hex fwflash.hex betty.hex # betty deps -BETTY_DEPS = buttons.o +BETTY_DEPS = system.o uart.o buttons.o spi.o display.o flash.o functions.o +#BETTY_DEPS += pffs.o # all projects -all: $(HOST_TARGET) $(CROSS_TARGET) +all: links $(HOST_TARGET) $(CROSS_TARGET) + +# bmp2b +links: + ln -sfv ../../api/bmp/bmp.{c,h} . + +bmp.o: bmp.c + $(CC) -c $(CFLAGS) -o $@ $< + +bmp2b: bmp.o # arm code arm: arm_clean $(CROSS_TARGET) @@ -41,7 +51,7 @@ arm: arm_clean $(CROSS_TARGET) # betty is special ;) betty.elf: betty.o startup.o $(BETTY_DEPS) - #$(CROSS_LD) $(CROSS_ROM_LDFLAGS) startup.o -o $@ $< + #$(CROSS_LD) $(CROSS_ROM_LDFLAGS) startup.o $(BETTY_DEPS) -o $@ $< $(CROSS_LD) $(CROSS_RAM_LDFLAGS) startup.o $(BETTY_DEPS) -o $@ $< # .hex out of .elf