-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
103 lines (87 loc) · 3.21 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#ARCH
ARCH="`uname -s`"
LINUX="Linux"
all: clean build-test-linux build-test-windows
build-test-linux:
GOOS=linux GOARCH=amd64 go build -o dist/linux/ ./src/gensipptest.go
GOOS=linux GOARCH=amd64 go build -o dist/linux/ ./src/genpjtest.go
build-test-windows:
GOOS=windows GOARCH=amd64 go build -o dist/windows/ ./src/gensipptest.go
GOOS=windows GOARCH=amd64 go build -o dist/windows/ ./src/genpjtest.go
build-diskbench-windows:
GOOS=windows GOARCH=amd64
GOOS=windows GOARCH=amd64 go build -o dist/windows/ ./src/diskbench.go
build-diskbench-linux:
GOOS=linux GOARCH=amd64 go build -o dist/linux/ ./src/diskbench.go
build-genusers-windows:
GOOS=windows GOARCH=amd64 go build -o dist/windows/ ./src/genusers.go
build-reportlog2db-windows:
GOOS=windows GOARCH=amd64 go build -o dist/windows/ ./src/reportlog2db.go
build-reportlog2db-linux:
GOOS=linux GOARCH=amd64 go build -o dist/linux/ ./src/reportlog2db.go
clean:
go clean
rm -rf dist
real-clean: clean
rm -rf release
rm -rf genfile
THEME_PATH=theme1
release-theme1 : clean build-test-windows
rm -rf release/$(THEME_PATH)
mkdir -p release/$(THEME_PATH)
@if [ $(ARCH) = $(LINUX) ]; \
then \
echo $(ARCH); \
else \
echo $(ARCH); \
dist/windows/genpjtest.exe -group 10003_ -idip 172.16.23.52 -reg 172.16.23.52:6060 -password 888888 -set "6101,6001,99|6300,6200,100"; \
dist/windows/gensipptest.exe -group 10003_ -set "6101,6001,99|6300,6200,100"; \
cp -r genfile/* release/$(THEME_PATH); \
cp resource/pjsua/* release/$(THEME_PATH)/pj_test/; \
cp resource/sipp/* release/$(THEME_PATH)/sipp_test/; \
fi
THEME_PATH=theme-chitu
release-theme-chitu : clean build-test-windows
rm -rf release/$(THEME_PATH)
mkdir -p release/$(THEME_PATH)
@if [ $(ARCH) = $(LINUX) ]; \
then \
echo $(ARCH); \
else \
echo $(ARCH); \
dist/windows/genpjtest.exe -group 10000_ -idip 172.16.23.123 -reg 172.16.23.123:6060 -password 888888 -set "1000,6000,400"; \
dist/windows/gensipptest.exe -group 10003 -set "6101,6001,100"; \
cp -r genfile/* release/$(THEME_PATH); \
cp resource/pjsua/* release/$(THEME_PATH)/pj_test/; \
cp resource/sipp/* release/$(THEME_PATH)/sipp_test/; \
fi
THEME_PATH=theme-prod
release-theme-prod : clean build-test-windows
rm -rf release/$(THEME_PATH)
mkdir -p release/$(THEME_PATH)
@if [ $(ARCH) = $(LINUX) ]; \
then \
echo $(ARCH); \
else \
echo $(ARCH); \
dist/windows/genpjtest.exe -idip 10.150.94.4 -reg 10.150.94.4:5060 -password 888888 -set "10001,11001,400"; \
dist/windows/gensipptest.exe -set "10001,9999001,300"; \
cp -r genfile/* release/$(THEME_PATH); \
cp resource/pjsua/* release/$(THEME_PATH)/pj_test/; \
cp resource/sipp/* release/$(THEME_PATH)/sipp_test/; \
fi
THEME_PATH=theme-test
release-theme-test : clean build-test-windows
rm -rf release/$(THEME_PATH)
mkdir -p release/$(THEME_PATH)
@if [ $(ARCH) = $(LINUX) ]; \
then \
echo $(ARCH); \
else \
echo $(ARCH); \
dist/windows/genpjtest.exe -group 10003_ -idip 10.150.94.5 -reg 10.150.94.5:6060 -password 888888 -set "6000,6000,451"; \
dist/windows/gensipptest.exe -group 10003_ -set "6500,87790001,400"; \
cp -r genfile/* release/$(THEME_PATH); \
cp resource/pjsua/* release/$(THEME_PATH)/pj_test/; \
cp resource/sipp/* release/$(THEME_PATH)/sipp_test/; \
fi