From bfa6cc4dc0f0f3e99cc30e8d69f5c7b898dfab63 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Thu, 15 Oct 2026 10:08:00 +0200 Subject: [PATCH] Remove pattern rule The built-in pattern rule for compiling a C++ source file already considers CXXFLAGS, so this default behaviour is exactly what we want. This Makefile really is now stripped to its bare form. --- tpl/Makefile.simple | 3 --- 1 file changed, 3 deletions(-) diff --git a/tpl/Makefile.simple b/tpl/Makefile.simple index 8e24003..c552dd4 100644 --- a/tpl/Makefile.simple +++ b/tpl/Makefile.simple @@ -8,9 +8,6 @@ endif .PHONY: clean -%.o: %.cpp - c++ $(CXXFLAGS) -c $< - {PROJECT}: {PROJECT}.o c++ -o {PROJECT} {PROJECT}.o