From b249af35a956cf94d53a86e03d46662c9e919cf2 Mon Sep 17 00:00:00 2001 From: Thor Harald Johansen Date: Sat, 6 Jun 2020 13:27:49 +0200 Subject: [PATCH] Allow local build settings in local.mk --- .gitignore | 6 ++++-- Makefile | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) 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 $@ $^