-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (31 loc) · 1.32 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
OUT=bin/
WTIME=wtime.go
TP1=simple-queue
TP2=const-goroutines
TP3=const-goroutines-taskwait
TP4=goroutine-dispatch
TP5=goroutine-dispatch-taskwait
TP6=notaskpool
TP7=seq
all: nqueens sparselu
nqueens:
go build -o $(OUT)$@-$(TP3) [email protected] taskpool-$(TP3).go $(WTIME)
go build -o $(OUT)$@-$(TP5) [email protected] taskpool-$(TP5).go $(WTIME)
go build -o $(OUT)$@-$(TP6) $@-$(TP6).go $(WTIME)
go build -o $(OUT)$@-$(TP7) $@-$(TP7).go $(WTIME)
gccgo -O3 -o $(OUT)$@-gccgo-$(TP3) [email protected] taskpool-$(TP3).go $(WTIME)
gccgo -O3 -o $(OUT)$@-gccgo-$(TP5) [email protected] taskpool-$(TP5).go $(WTIME)
gccgo -O3 -o $(OUT)$@-gccgo-$(TP6) $@-$(TP6).go $(WTIME)
gccgo -O3 -o $(OUT)$@-gccgo-$(TP7) $@-$(TP7).go $(WTIME)
sparselu:
go build -o $(OUT)$@-$(TP1) [email protected] taskpool-$(TP1)-chan.go $(WTIME)
go build -o $(OUT)$@-$(TP3) [email protected] taskpool-$(TP3).go $(WTIME)
go build -o $(OUT)$@-$(TP5) [email protected] taskpool-$(TP5).go $(WTIME)
go build -o $(OUT)$@-$(TP6) $@-$(TP6).go $(WTIME)
go build -o $(OUT)$@-$(TP7) $@-$(TP7).go $(WTIME)
gccgo -O3 -o $(OUT)$@-gccgo-$(TP3) [email protected] taskpool-$(TP3).go $(WTIME)
gccgo -O3 -o $(OUT)$@-gccgo-$(TP5) [email protected] taskpool-$(TP5).go $(WTIME)
gccgo -O3 -o $(OUT)$@-gccgo-$(TP6) $@-$(TP6).go $(WTIME)
gccgo -O3 -o $(OUT)$@-gccgo-$(TP7) $@-$(TP7).go $(WTIME)
clean:
rm bin/*