projects
/
my-code
/
arm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added a bitmap to betty lcd ram conversion tool
[my-code/arm.git]
/
betty
/
Makefile
diff --git
a/betty/Makefile
b/betty/Makefile
index
54f1d34
..
3807986
100644
(file)
--- 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
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
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 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)
@@
-41,7
+51,7
@@
arm: arm_clean $(CROSS_TARGET)
# betty is special ;)
betty.elf: betty.o startup.o $(BETTY_DEPS)
# 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
$(CROSS_LD) $(CROSS_RAM_LDFLAGS) startup.o $(BETTY_DEPS) -o $@ $<
# .hex out of .elf