-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
38 lines (29 loc) · 786 Bytes
/
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
.PHONY: go gccgo gcc clang gxx clangxx clean
all: clean go gccgo gcc clang gxx clangxx
@echo ""
go: Go.go
@echo ""
go build -compiler=gc -o run-gcgo Go.go
time (./run-gcgo -v=1234 &> /dev/null)
gccgo: Go.go
@echo ""
go build -compiler=gccgo -gccgoflags="-O3" -o run-gccgo Go.go
time (./run-gccgo -v=1234 &> /dev/null)
gcc: C.c
@echo ""
gcc -o run-gcc -O3 C.c
time (./run-gcc 1234 &> /dev/null)
clang: C.c
@echo ""
clang -o run-clang -O3 C.c
time (./run-clang 1234 &> /dev/null)
gxx: CPP.cpp
@echo ""
g++ --std=c++11 -o run-gxx -O3 CPP.cpp
time (./run-gxx 1234 &> /dev/null)
clangxx: CPP.cpp
@echo ""
clang++ --std=c++11 -o run-clangxx -O3 CPP.cpp
time (./run-clangxx 1234 &> /dev/null)
clean:
rm -f run-gcgo run-gccgo run-gcc run-clang run-gxx run-clangxx