From 2c8ea52f1dd7daefc88af315229c9e82ddea930d Mon Sep 17 00:00:00 2001 From: Meiye-lj <71107931+Meiye-lj@users.noreply.github.com> Date: Tue, 18 Jun 2024 21:15:25 +0800 Subject: [PATCH] fix(makefile): Add missing dependencies from src/common/*h (#311) * fix Missing dependenies * updated fixing missing dependencies --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cf39ed5..36f88ed 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,7 @@ ODEPS = $(SDEPS:.c=.o) DEPS = $(filter-out $(ODEPS), $(SDEPS)) OBJS = $(DEPS:.c=.o) MAKEFILES = $(wildcard deps/*/Makefile) +HEADERS_BINS = src/common/*.h src/version.h deps/logger/logger.h export CC @@ -49,7 +50,7 @@ all: $(BINS) build: $(BINS) -$(BINS): $(SRC) $(COMMON_SRC) $(MAKEFILES) $(OBJS) +$(BINS): $(SRC) $(COMMON_SRC) $(MAKEFILES) $(OBJS) $(HEADERS_BINS) $(CC) $(CFLAGS) -o $@ $(COMMON_SRC) src/$(@:.exe=).c $(OBJS) $(LDFLAGS) $(MAKEFILES):