projects
/
my-code
/
arm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
button support
[my-code/arm.git]
/
betty
/
Makefile
diff --git
a/betty/Makefile
b/betty/Makefile
index
dfd3fee
..
54f1d34
100644
(file)
--- a/
betty/Makefile
+++ b/
betty/Makefile
@@
-16,7
+16,10
@@
CROSS_ROM_LDFLAGS = -Tlpc2220_rom.ld -nostartfiles -nostdlib
# build objects
HOST_TARGET = lpcload fwdump
# 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
+
+# betty deps
+BETTY_DEPS = buttons.o
# all projects
all: $(HOST_TARGET) $(CROSS_TARGET)
# all projects
all: $(HOST_TARGET) $(CROSS_TARGET)
@@
-36,13
+39,18
@@
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 $@ $<
+# betty is special ;)
+betty.elf: betty.o startup.o $(BETTY_DEPS)
+ #$(CROSS_LD) $(CROSS_ROM_LDFLAGS) startup.o -o $@ $<
+ $(CROSS_LD) $(CROSS_RAM_LDFLAGS) startup.o $(BETTY_DEPS) -o $@ $<
+
# .hex out of .elf
%.hex: %.elf
$(CROSS_OBJCOPY) -O ihex $< $@
# host clean
clean:
# .hex out of .elf
%.hex: %.elf
$(CROSS_OBJCOPY) -O ihex $< $@
# host clean
clean:
- rm -f lpcload fwdump
+ rm -
v
f lpcload fwdump
# arm clean
arm_clean:
# arm clean
arm_clean: