projects
/
my-code
/
arm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
create a bmp copy with 4 colors + modified default log
[my-code/arm.git]
/
betty
/
Makefile
diff --git
a/betty/Makefile
b/betty/Makefile
index
0af33ac
..
3807986
100644
(file)
--- a/
betty/Makefile
+++ b/
betty/Makefile
@@
-15,11
+15,24
@@
CROSS_RAM_LDFLAGS = -Tlpc2220_ram.ld -nostartfiles -nostdlib
CROSS_ROM_LDFLAGS = -Tlpc2220_rom.ld -nostartfiles -nostdlib
# build objects
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
CROSS_TARGET = fwbc.hex fwflash.hex betty.hex
+# betty deps
+BETTY_DEPS = system.o uart.o buttons.o spi.o display.o flash.o functions.o
+#BETTY_DEPS += pffs.o
+
# all projects
# 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)
# arm code
arm: arm_clean $(CROSS_TARGET)
@@
-36,9
+49,10
@@
arm: arm_clean $(CROSS_TARGET)
%.elf: %.o startup.o
$(CROSS_LD) $(CROSS_RAM_LDFLAGS) startup.o -o $@ $<
%.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 $@ $<
+# betty is special ;)
+betty.elf: betty.o startup.o $(BETTY_DEPS)
+ #$(CROSS_LD) $(CROSS_ROM_LDFLAGS) startup.o $(BETTY_DEPS) -o $@ $<
+ $(CROSS_LD) $(CROSS_RAM_LDFLAGS) startup.o $(BETTY_DEPS) -o $@ $<
# .hex out of .elf
%.hex: %.elf
# .hex out of .elf
%.hex: %.elf
@@
-46,7
+60,7
@@
betty.elf: betty.o startup.o
# host clean
clean:
# host clean
clean:
- rm -f lpcload fwdump
+ rm -
v
f lpcload fwdump
# arm clean
arm_clean:
# arm clean
arm_clean: