Skip to content

Commit

Permalink
fix(makefile): Add missing dependencies from src/common/*h (#311)
Browse files Browse the repository at this point in the history
* fix Missing dependenies

* updated fixing missing dependencies
  • Loading branch information
Meiye-lj committed Jun 18, 2024
1 parent d6b744f commit 2c8ea52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 2c8ea52

Please sign in to comment.