diff --git a/.gitignore b/.gitignore index 4ed279e..5338f88 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ -build/ -.vscode/ +/build/ +/.vscode/ + +/local.mk *.swp diff --git a/Makefile b/Makefile index f934c2d..e01c636 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,6 @@ EXEC := bogofilter-smtpd -CXX=/usr/local/Cellar/gcc/9.3.0_1/bin/g++-9 CXXFLAGS=-std=gnu++17 -Iinclude CPPFLAGS=-MMD -MP @@ -14,6 +13,8 @@ SRCS := $(shell find src -name '*.cpp') OBJS := $(SRCS:%=$(BUILDDIR)/%.o) DEPS := $(OBJS:.o=.d) +-include local.mk + $(BUILDDIR)/$(EXEC) : $(OBJS) $(CXX) -o $@ $^