Fixing missing dependencies in Makefile (#1230)

This commit is contained in:
Jun Lyu
2026-03-02 22:37:59 +01:00
committed by GitHub
parent 682555ffde
commit fe5f738174
+8
View File
@@ -97,6 +97,13 @@ N2N_OBJS=\
src/tuntap_osx.o \
src/wire.o \
DEPFILES = $(N2N_OBJS:.o=.d)
%.o: %.c
$(CC) $(CFLAGS) -MMD -MP -c -o $@ $<
-include $(DEPFILES)
N2N_DEPS=$(wildcard include/*.h) $(wildcard src/*.c) config.mak
# As source files pass the linter, they can be added here (If all the source
@@ -273,6 +280,7 @@ clean:
rm -f src/edge.o src/supernode.o
rm -rf $(N2N_OBJS) $(N2N_LIB) $(APPS) $(DOCS) $(COVERAGEDIR)/ *.dSYM *~
rm -f tests/*.out src/*.gcno src/*.gcda
rm -f $(DEPFILES)
for dir in $(SUBDIRS); do $(MAKE) -C $$dir clean; done
.PHONY: distclean