further ivt and isr implementation
[cortex-from-scratch] / Makefile
index 9f7f517..c4803b9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ AR=$(TOOLROOT)/arm-none-eabi-ar
 AS=arm-none-eabi-as
 MKIMG=arm-none-eabi-objcopy
 
-LDFLAGS+= -mthumb -mcpu=cortex-m3 
+LDFLAGS+= -mthumb -mcpu=cortex-m0 
 CFLAGS+= -mcpu=cortex-m3 -mthumb -g 
 
 as: 
@@ -19,7 +19,8 @@ all:
        $(CC) $(CFLAGS) -c -I./include -ffreestanding -o sysinfo.o sysinfo.c 
        $(CC) $(CFLAGS) -c -I./include -ffreestanding -o lib.o lib.c 
        $(CC) $(CFLAGS) -c -I./include -ffreestanding -o mm.o mm.c 
-       $(LD) -nostartfiles -T link.ld -o start.out start.o main.o uart.o ivt.o systick.o sysinfo.o lib.o mm.o
+       $(CC) $(CFLAGS) -c -I./include -ffreestanding -o regf.o regf.c 
+       $(LD) -nostartfiles -T link.ld -o start.out start.o main.o uart.o ivt.o systick.o sysinfo.o lib.o mm.o regf.o
        $(MKIMG) -Obinary -R .data start.out kernel.bin
 
 run: