diff --git a/lib/efm32/efm32g/Makefile b/lib/efm32/efm32g/Makefile index c3687941..1dd44850 100644 --- a/lib/efm32/efm32g/Makefile +++ b/lib/efm32/efm32g/Makefile @@ -30,7 +30,7 @@ CFLAGS = -Os -g -Wall -Wextra -I../../../include -fno-common \ -ffunction-sections -fdata-sections -MD -D$(FAMILY) # ARFLAGS = rcsv ARFLAGS = rcs -OBJS = vector.o systick.o scb.o nvic.o assert.o +OBJS = VPATH += ../:../../cm3 diff --git a/lib/efm32/efm32gg/Makefile b/lib/efm32/efm32gg/Makefile index 27e2235e..24078592 100644 --- a/lib/efm32/efm32gg/Makefile +++ b/lib/efm32/efm32gg/Makefile @@ -30,7 +30,7 @@ CFLAGS = -Os -g -Wall -Wextra -I../../../include -fno-common \ -ffunction-sections -fdata-sections -MD -D$(FAMILY) # ARFLAGS = rcsv ARFLAGS = rcs -OBJS = vector.o systick.o scb.o nvic.o assert.o +OBJS = VPATH += ../:../../cm3 diff --git a/lib/efm32/efm32lg/Makefile b/lib/efm32/efm32lg/Makefile index 73dd6f64..9b6343c0 100644 --- a/lib/efm32/efm32lg/Makefile +++ b/lib/efm32/efm32lg/Makefile @@ -30,7 +30,7 @@ CFLAGS = -Os -g -Wall -Wextra -I../../../include -fno-common \ -ffunction-sections -fdata-sections -MD -D$(FAMILY) # ARFLAGS = rcsv ARFLAGS = rcs -OBJS = vector.o systick.o scb.o nvic.o assert.o +OBJS = VPATH += ../:../../cm3 diff --git a/lib/efm32/efm32tg/Makefile b/lib/efm32/efm32tg/Makefile index a065b6d5..605438a0 100644 --- a/lib/efm32/efm32tg/Makefile +++ b/lib/efm32/efm32tg/Makefile @@ -30,7 +30,7 @@ CFLAGS = -Os -g -Wall -Wextra -I../../../include -fno-common \ -ffunction-sections -fdata-sections -MD -D$(FAMILY) # ARFLAGS = rcsv ARFLAGS = rcs -OBJS = vector.o systick.o scb.o nvic.o assert.o +OBJS = VPATH += ../:../../cm3