summaryrefslogtreecommitdiff
path: root/2023/05/Makefile
blob: f15fa162e063416d1204dd1d7b9f5919aaba7ea5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CPPFLAGS := -I../include
CXXFLAGS := -std=c++17
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 $@