aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: 69242b1986ce57cfbd86879082c132de2e411b6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
include config.mk

all: bin/01a bin/01b

bin/01a: obj/01a.o | bin
	c++ $(LDFLAGS) $^ -o $@

bin/01b: obj/01b.o | bin
	c++ $(LDFLAGS) $^ -o $@

obj/%.o: src/%.cpp | obj
	c++ $(CPPFLAGS) -c $< -o $@

clean:
	rm -rf bin obj

bin obj:
	mkdir $@

.PHONY: all clean