Skip to content

Commit

Permalink
updated fixing missing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Meiye-lj committed May 7, 2024
1 parent d024c93 commit 1fc20aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
AUTOFIX_BINS = src/common/*.h src/version.h deps/logger/logger.h
CC ?= cc
PREFIX ?= /usr/local

Expand All @@ -21,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 All @@ -36,7 +36,7 @@ endif

ifneq (0,$(PTHREADS))
ifndef NO_PTHREADS
CFLAGS += $(shell ./scripts/feature-test-pthreads && echo "-DHAVE_PTHREADS=1 -pthread" || echo "-DHAVE_PTHREADS=0")
CFLAGS += $(shell ./scripts/feature-test-pthreads && echo "-DHAVE_PTHREADS=1 -pthread")
endif
endif

Expand All @@ -50,7 +50,7 @@ all: $(BINS)

build: $(BINS)

$(BINS): $(SRC) $(COMMON_SRC) $(MAKEFILES) $(OBJS) $(AUTOFIX_BINS)
$(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 1fc20aa

Please sign in to comment.