From 65dfb9cf7d95ccd5a608bc85065c8af2650c1641 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Tue, 5 Dec 2023 22:03:30 +0100 Subject: tidy up build system --- compile_flags.txt | 2 -- config.mk | 3 +-- makefile | 6 +++--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/compile_flags.txt b/compile_flags.txt index 46ec652..966e06b 100644 --- a/compile_flags.txt +++ b/compile_flags.txt @@ -5,5 +5,3 @@ -Wdouble-promotion -pedantic -std=c++20 --Iinclude --I/usr/local/include diff --git a/config.mk b/config.mk index 1d11b04..8f815b3 100644 --- a/config.mk +++ b/config.mk @@ -1,2 +1 @@ -CPPFLAGS=-Wall -Werror -Wextra -Wconversion -Wdouble-promotion -pedantic -std=c++20 -O2 -Iinclude -I/usr/local/include -DNDEBUG -LDFLAGS=-L/usr/local/lib +CPPFLAGS=-Wall -Werror -Wextra -Wconversion -Wdouble-promotion -pedantic -std=c++20 -O2 -DNDEBUG diff --git a/makefile b/makefile index 1fda65a..a9b0da4 100644 --- a/makefile +++ b/makefile @@ -6,13 +6,13 @@ all: bin/day01 \ bin/day04 \ bin/day05 +bin: + mkdir $@ + bin/%: src/%.cpp | bin c++ $(CPPFLAGS) $^ -o $@ clean: rm -rf bin -bin: - mkdir $@ - .PHONY: all clean -- cgit v1.3