diff options
| author | Thomas Schmucker <ts@its1.de> | 2023-12-01 21:27:31 +0100 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2023-12-01 21:27:31 +0100 |
| commit | 9a164c3f65c01e31a9d1a8578e29b358972ddfed (patch) | |
| tree | d32346277a335540af4967ebdfee38a787529690 /makefile | |
| download | advent-of-code-9a164c3f65c01e31a9d1a8578e29b358972ddfed.tar.gz advent-of-code-9a164c3f65c01e31a9d1a8578e29b358972ddfed.tar.bz2 advent-of-code-9a164c3f65c01e31a9d1a8578e29b358972ddfed.zip | |
Lösung für Tag1
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..69242b1 --- /dev/null +++ b/makefile | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | include config.mk | ||
| 2 | |||
| 3 | all: bin/01a bin/01b | ||
| 4 | |||
| 5 | bin/01a: obj/01a.o | bin | ||
| 6 | c++ $(LDFLAGS) $^ -o $@ | ||
| 7 | |||
| 8 | bin/01b: obj/01b.o | bin | ||
| 9 | c++ $(LDFLAGS) $^ -o $@ | ||
| 10 | |||
| 11 | obj/%.o: src/%.cpp | obj | ||
| 12 | c++ $(CPPFLAGS) -c $< -o $@ | ||
| 13 | |||
| 14 | clean: | ||
| 15 | rm -rf bin obj | ||
| 16 | |||
| 17 | bin obj: | ||
| 18 | mkdir $@ | ||
| 19 | |||
| 20 | .PHONY: all clean | ||
