From 23af021e70d3d04072537c65b136420e7c6f58f1 Mon Sep 17 00:00:00 2001 From: Yasushi SHOJI Date: Wed, 28 Feb 2024 16:53:11 +0900 Subject: [PATCH] Makefile: Remove generated files under ioboard/ The old $(CF) doesn't have generated files under ioboard, or any files in other directories for that matter. CF should be generated from SRCS or OBJS so that we can remove them all. Signed-off-by: Yasushi SHOJI --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 49e97f7..e4eabd1 100644 --- a/Makefile +++ b/Makefile @@ -39,8 +39,11 @@ LIB_OBJS := $(LIB_SRCS:.c=.p1) LIBDEVICE := src/libdevice.a +ALL_OBJS := $(OBJS) $(LIB_OBJS) +ALL_DEPS := $(patsubst %.p1,%.d,$(ALL_OBJS)) + # Clean File -CF = $(HEXDIR) src/*.p1 src/*.a src/*.d MPLABXLog.* log.* +CF = $(HEXDIR) $(ALL_OBJS) $(ALL_DEPS) $(LIBDEVICE) MPLABXLog.* log.* # Quiets ifndef V