aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2023-12-05 22:03:30 +0100
committerThomas Schmucker <ts@its1.de>2023-12-05 22:03:30 +0100
commit65dfb9cf7d95ccd5a608bc85065c8af2650c1641 (patch)
tree66fa9dbfd62f3cd17e7aff89b0a9d2134c5a643a
parentb66a424a290f188c43a7cec061a70d2c3f6ec7d2 (diff)
downloadadvent-of-code-65dfb9cf7d95ccd5a608bc85065c8af2650c1641.tar.gz
advent-of-code-65dfb9cf7d95ccd5a608bc85065c8af2650c1641.tar.bz2
advent-of-code-65dfb9cf7d95ccd5a608bc85065c8af2650c1641.zip
tidy up build system
-rw-r--r--compile_flags.txt2
-rw-r--r--config.mk3
-rw-r--r--makefile6
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 @@
5-Wdouble-promotion 5-Wdouble-promotion
6-pedantic 6-pedantic
7-std=c++20 7-std=c++20
8-Iinclude
9-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 @@
1CPPFLAGS=-Wall -Werror -Wextra -Wconversion -Wdouble-promotion -pedantic -std=c++20 -O2 -Iinclude -I/usr/local/include -DNDEBUG CPPFLAGS=-Wall -Werror -Wextra -Wconversion -Wdouble-promotion -pedantic -std=c++20 -O2 -DNDEBUG
2LDFLAGS=-L/usr/local/lib
diff --git a/makefile b/makefile
index 1fda65a..a9b0da4 100644
--- a/makefile
+++ b/makefile
@@ -6,13 +6,13 @@ all: bin/day01 \
6 bin/day04 \ 6 bin/day04 \
7 bin/day05 7 bin/day05
8 8
9bin:
10 mkdir $@
11
9bin/%: src/%.cpp | bin 12bin/%: src/%.cpp | bin
10 c++ $(CPPFLAGS) $^ -o $@ 13 c++ $(CPPFLAGS) $^ -o $@
11 14
12clean: 15clean:
13 rm -rf bin 16 rm -rf bin
14 17
15bin:
16 mkdir $@
17
18.PHONY: all clean 18.PHONY: all clean