diff options
| -rw-r--r-- | compile_flags.txt | 2 | ||||
| -rw-r--r-- | config.mk | 3 | ||||
| -rw-r--r-- | 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 @@ | |||
| 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 | ||
| @@ -1,2 +1 @@ | |||
| 1 | CPPFLAGS=-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 | |
| 2 | LDFLAGS=-L/usr/local/lib | ||
| @@ -6,13 +6,13 @@ all: bin/day01 \ | |||
| 6 | bin/day04 \ | 6 | bin/day04 \ |
| 7 | bin/day05 | 7 | bin/day05 |
| 8 | 8 | ||
| 9 | bin: | ||
| 10 | mkdir $@ | ||
| 11 | |||
| 9 | bin/%: src/%.cpp | bin | 12 | bin/%: src/%.cpp | bin |
| 10 | c++ $(CPPFLAGS) $^ -o $@ | 13 | c++ $(CPPFLAGS) $^ -o $@ |
| 11 | 14 | ||
| 12 | clean: | 15 | clean: |
| 13 | rm -rf bin | 16 | rm -rf bin |
| 14 | 17 | ||
| 15 | bin: | ||
| 16 | mkdir $@ | ||
| 17 | |||
| 18 | .PHONY: all clean | 18 | .PHONY: all clean |
