aboutsummaryrefslogtreecommitdiffhomepage
path: root/development/c++/Makefile
blob: 2c53e47552d1068f709b703f192518d517cc46b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
SRC = concepts-11.cc concepts-20.cc meta.cc meta2.cc meta4.cc tmpl-pair.cc tmpl-void_t.cc fwd.cc fwd-perfect.cc
BIN = $(SRC:.cc=)

all: $(BIN)

%: %.cc
	$(CXX) -o $* $^ -std=c++17 -g -fsanitize=address -fsanitize=undefined -fsanitize=leak

concepts-20: concepts-20.cc
	$(CXX) -fsyntax-only $^ -std=c++20

fmt:
	clang-format -i $(SRC)

clean:
	$(RM) $(BIN)