init vector implementation
[cortex-from-scratch] / Makefile
index f75c606..58ae9ac 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -14,11 +14,12 @@ all:
        $(AS) $(CFLAGS) -o start.o start.asm
        $(CC) $(CFLAGS) -c -I./include -ffreestanding -o main.o main.c
        $(CC) $(CFLAGS) -c -I./include -ffreestanding -o uart.o uart.c
-       $(LD) -nostartfiles -T link.ld -o start.out start.o main.o uart.o
+       $(CC) $(CFLAGS) -c -I./include -ffreestanding -o ivt.o ivt.c 
+       $(LD) -nostartfiles -T link.ld -o start.out start.o main.o uart.o ivt.o
        $(MKIMG) -Obinary -R .data start.out kernel.bin
 
 run:
-       qemu-system-arm -serial stdio -M lm3s6965evb -kernel kernel.bin
+       qemu-system-arm -serial stdio  -M lm3s6965evb -kernel kernel.bin
 
 examine:
        arm-none-eabi-objdump -S start.out