X-Git-Url: https://robinkrens.nl/gitweb/?a=blobdiff_plain;f=Makefile;h=949e28733c7ffff460e766d5449e81aa01fec813;hb=2047bc5ccc9d077af532eed0b148e4e0394adc15;hp=5cc5791dc34668307068b91de4ce69a1ffa62531;hpb=6e00544afe1ae83fcf51f262cfa744953dc8d023;p=cortex-from-scratch diff --git a/Makefile b/Makefile index 5cc5791..949e287 100644 --- a/Makefile +++ b/Makefile @@ -10,11 +10,11 @@ AS=arm-none-eabi-as MKIMG=arm-none-eabi-objcopy # Compiler flags -# TODO:Cortex-m3 or Cortex-m0? LDFLAGS+= -mthumb -mcpu=cortex-m3 ASFLAGS+= -mcpu=cortex-m3 -mthumb -g CFLAGS+= -mcpu=cortex-m3 -mthumb -g -ffreestanding +# Include directory INCLUDE+= -Iinclude BIN = bin @@ -24,11 +24,11 @@ _OBJ = ivt.o systick.o sysinfo.o term.o main.o clock.o rtc.o OBJ = $(patsubst %, $(ODIR)/%,$(_OBJ)) DDIR = obj/drivers -_DRIVERS = uart.o tm1637.o led.o +_DRIVERS = uart.o tm1637.o led.o tsensor.o at24c.o DRIVERS = $(patsubst %, $(DDIR)/%,$(_DRIVERS)) LDIR = obj/lib -_LIBS = string.o stdio.o regfunc.o pool.o +_LIBS = string.o stdio.o regfunc.o pool.o tinyprintf.o LIBS = $(patsubst %, $(LDIR)/%,$(_LIBS)) $(DDIR)/%.o: drivers/%.c