-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (35 loc) · 1.18 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
SOL=./solutions/
BIN=$(SOL)/bin/
all: \
$(BIN)/bknumerals \
$(BIN)/dragon \
$(BIN)/primes \
$(BIN)/maxsum \
$(BIN)/taxi \
$(BIN)/treesearch \
$(BIN)/paperfold \
$(BIN)/wordsearch \
$(BIN)/coins \
$(BIN)/flag
$(BIN)/bknumerals: $(SOL)/bknumerals/bknumerals.go
go build -o $(BIN)/bknumerals $(SOL)/bknumerals/bknumerals.go
$(BIN)/dragon: $(SOL)/dragon/dragon.go
go build -o $(BIN)/dragon $(SOL)/dragon/dragon.go
$(BIN)/primes: $(SOL)/primes/primes.go
go build -o $(BIN)/primes $(SOL)/primes/primes.go
$(BIN)/maxsum: $(SOL)/maxsum/maxsum.go
go build -o $(BIN)/maxsum $(SOL)/maxsum/maxsum.go
$(BIN)/taxi: $(SOL)/taxi/taxi.go
go build -o $(BIN)/taxi $(SOL)/taxi/taxi.go
$(BIN)/treesearch: $(SOL)/treesearch/treesearch.go
go build -o $(BIN)/treesearch $(SOL)/treesearch/treesearch.go
$(BIN)/paperfold: $(SOL)/paperfold/paperfold.go
go build -o $(BIN)/paperfold $(SOL)/paperfold/paperfold.go
$(BIN)/wordsearch: $(SOL)/wordsearch/wordsearch.go
go build -o $(BIN)/wordsearch $(SOL)/wordsearch/wordsearch.go
$(BIN)/coins: $(SOL)/coins/coins.go
go build -o $(BIN)/coins $(SOL)/coins/coins.go
$(BIN)/flag: $(SOL)/flag/flag.go
go build -o $(BIN)/flag $(SOL)/flag/flag.go
clean:
rm $(BIN)/*