summaryrefslogtreecommitdiff
path: root/2023/04/Makefile
blob: 37efa3e5b6bd195a05747e1e4f9a5fcb20443d0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CXXFLAGS := -std=c++17 -O3
EXE := part1 part2

.PHONY: all clean configure

all: $(EXE)

configure:
	bear -- $(MAKE) all

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

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

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