diff options
Diffstat (limited to '2023/02/Makefile')
-rw-r--r-- | 2023/02/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/2023/02/Makefile b/2023/02/Makefile new file mode 100644 index 0000000..d1ec8c6 --- /dev/null +++ b/2023/02/Makefile | |||
@@ -0,0 +1,19 @@ | |||
1 | SRC := src/game.cpp | ||
2 | HDR := $(SRC:.cpp=.h) | ||
3 | OBJ := $(SRC:.cpp=.o) | ||
4 | EXE := part1 part2 | ||
5 | |||
6 | CXXFLAGS := -std=c++17 | ||
7 | |||
8 | .PHONY: run clean | ||
9 | |||
10 | all: $(EXE) | ||
11 | |||
12 | %.o: %.cpp | ||
13 | $(CXX) -c $(CXXFLAGS) $< -o $@ | ||
14 | |||
15 | clean: | ||
16 | rm -rf $(EXE) $(OBJ) | ||
17 | |||
18 | %: src/%.o $(OBJ) | ||
19 | $(CXX) $^ -o $@ | ||