aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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