CROSS_OPTS = -mcpu=arm7tdmi-s
CROSS_CFLAGS = $(CROSS_OPTS) -Wall -Os
CROSS_ASLAGS = $(CROSS_OPTS) --gstabs
-CROSS_RAM_LDFLAGS = -Tlpc2220_ram.ld -nostartfiles -nostdlib
+CROSS_RAM_LDFLAGS = -Tlpc2220_ram.ld -nostartfiles -nostdlib
CROSS_ROM_LDFLAGS = -Tlpc2220_rom.ld -nostartfiles -nostdlib
# build objects
# betty deps
BETTY_DEPS = system.o uart.o buttons.o spi.o display.o flash.o functions.o
-#BETTY_DEPS += pffs.o
+BETTY_DEPS += interrupts.o #pffs.o
# all projects
all: $(HOST_TARGET) $(CROSS_TARGET)
$(CROSS_AS) $(CROSS_ASLAGS) -o $@ $<
# .elf out of .o
-%.elf: %.o startup.o
- $(CROSS_LD) $(CROSS_RAM_LDFLAGS) startup.o -o $@ $<
+%.elf: %.o startup.o interrupts.o
+ $(CROSS_LD) $(CROSS_RAM_LDFLAGS) startup.o interrupts.o -o $@ $<
# betty is special ;)
betty.elf: betty.o startup.o $(BETTY_DEPS)