summaryrefslogtreecommitdiff
path: root/2023/18/Makefile
blob: af6a294bb2271e7c2bd096def8a63451059f8b61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CXXFLAGS := -std=c++17
CPPFLAGS := -I../include
EXE := part1 part2

.PHONY: all clean configure

all: $(EXE)

configure:
	bear -- $(MAKE) all

%.o: %.cpp
	$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@

clean:
	rm -rf $(EXE) src/*.o compile_commands.json

%: src/%.o
	$(CXX) $^ -o $@