diff options
| author | Orfeas <38209077+0xfea5@users.noreply.github.com> | 2025-08-27 04:18:43 +0300 |
|---|---|---|
| committer | Orfeas <38209077+0xfea5@users.noreply.github.com> | 2025-09-01 04:51:37 +0300 |
| commit | e0879b1fc2608befa6eee4dd8c2a82ade94e94ce (patch) | |
| tree | 5de27d72fa3131477b0b08815a8b663b47f022b4 /day01/Makefile | |
| parent | Add ‘skel/‘ as template directory for each day (diff) | |
| download | aoc24-e0879b1fc2608befa6eee4dd8c2a82ade94e94ce.tar.gz aoc24-e0879b1fc2608befa6eee4dd8c2a82ade94e94ce.zip | |
day01/: rewrite solution to be in line with the template
Diffstat (limited to 'day01/Makefile')
| -rw-r--r-- | day01/Makefile | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/day01/Makefile b/day01/Makefile index c1bc66d..2fa98c0 100644 --- a/day01/Makefile +++ b/day01/Makefile | |||
| @@ -1,13 +1 @@ | |||
| 1 | CXX := g++ | include ../aoc.mk | |
| 2 | CXX_FLAGS := -std=c++23 | ||
| 3 | SOLUTION := solution.cpp | ||
| 4 | INPUT := input.txt | ||
| 5 | TARGET := solution.out | ||
| 6 | |||
| 7 | all: compile run | ||
| 8 | |||
| 9 | compile: | ||
| 10 | ${CXX} ${CXX_FLAGS} ${SOLUTION} -o ${TARGET} | ||
| 11 | |||
| 12 | run: compile | ||
| 13 | ./${TARGET} < ${INPUT} | ||
