From e599fe5b2af108f1c7c0b7174ae36a624dc47244 Mon Sep 17 00:00:00 2001 From: miguelboing Date: Fri, 30 Dec 2022 18:25:41 -0300 Subject: [PATCH] firmware: libs: containers: Adding separe rules #43 --- firmware/libs/containers/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/firmware/libs/containers/Makefile b/firmware/libs/containers/Makefile index 6ca5721..60727c2 100644 --- a/firmware/libs/containers/Makefile +++ b/firmware/libs/containers/Makefile @@ -19,8 +19,13 @@ GDB=arm-none-eabi-gdb CFLAGS=-c -mcpu=cortex-m3 -mthumb -O0 .PHONY: all -all: - $(CC) $(CFLAGS) queue.c buffer.c -o $(BUILD_DIR)/$(TARGET).o +all: queue buffer + +queue: queue.c + $(CC) $(CFLAGS) $< -o $(BUILD_DIR)/$@.o + +buffer: buffer.c + $(CC) $(CFLAGS) $< -o $(BUILD_DIR)/$@.o .PHONY: clean