summaryrefslogtreecommitdiff
path: root/Makefile
blob: 89b2a3d6f30fe0c9f5694679c9bfe850868e5970 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
EXAMPLES := $(wildcard example/*)
BINARIES := $(patsubst example/%.cc, out/%, $(EXAMPLES))

all: $(BINARIES)

out/%: example/%.cc
	@mkdir -p out
	g++ -o $@ -g -O2 $^ -I $(PWD)

clean:
	$(RM) -r out