-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathmakefile
150 lines (121 loc) · 10 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# this is the build file for project
# it is autogenerated by the xmake build system.
# do not edit by hand.
ifneq ($(VERBOSE),1)
VV=@
endif
CC=/usr/bin/gcc
CXX=/usr/bin/gcc
AS=/usr/bin/gcc
MXX=/usr/bin/gcc
MM=/usr/bin/gcc
AR=/usr/bin/ar
LD=/usr/bin/g++
SH=/usr/bin/g++
example.out_LD=/usr/bin/g++
example.out_CXX=/usr/bin/gcc
example.out_CXX=/usr/bin/gcc
iclient_AR=/usr/bin/ar
iclient_CXX=/usr/bin/gcc
iclient_CXX=/usr/bin/gcc
example.out_CXXFLAGS=-m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++11 -Iinclude -Wreturn-type -Wsign-compare -Wunused -Wswitch -Wno-deprecated-declarations -DNDEBUG
example.out_CXXFLAGS=-m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++11 -Iinclude -Wreturn-type -Wsign-compare -Wunused -Wswitch -Wno-deprecated-declarations -DNDEBUG
example.out_LDFLAGS=-m64 -Llib/linux/x86_64 -s -liclient -lcurl -lpthread -ldl
iclient_CXXFLAGS=-m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++11 -Iinclude -Wreturn-type -Wsign-compare -Wunused -Wswitch -Wno-deprecated-declarations -DNDEBUG
iclient_CXXFLAGS=-m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++11 -Iinclude -Wreturn-type -Wsign-compare -Wunused -Wswitch -Wno-deprecated-declarations -DNDEBUG
iclient_ARFLAGS=-cr
default: example.out iclient
all: example.out iclient
.PHONY: default all example.out iclient
example.out: bin/example.out
bin/example.out: lib/linux/x86_64/libiclient.a build/.objs/example.out/linux/x86_64/release/example/test_url.cpp.o build/.objs/example.out/linux/x86_64/release/example/test_download_range.cpp.o build/.objs/example.out/linux/x86_64/release/example/test_http_post.cpp.o build/.objs/example.out/linux/x86_64/release/example/test_download_speed_limit.cpp.o build/.objs/example.out/linux/x86_64/release/example/test_download.cpp.o build/.objs/example.out/linux/x86_64/release/example/main.cpp.o build/.objs/example.out/linux/x86_64/release/example/test_download_resume.cpp.o build/.objs/example.out/linux/x86_64/release/example/test_http_put.cpp.o build/.objs/example.out/linux/x86_64/release/example/test_http_get.cpp.o
@echo linking.release example.out
@mkdir -p bin
$(VV)$(example.out_LD) -o bin/example.out build/.objs/example.out/linux/x86_64/release/example/test_url.cpp.o build/.objs/example.out/linux/x86_64/release/example/test_download_range.cpp.o build/.objs/example.out/linux/x86_64/release/example/test_http_post.cpp.o build/.objs/example.out/linux/x86_64/release/example/test_download_speed_limit.cpp.o build/.objs/example.out/linux/x86_64/release/example/test_download.cpp.o build/.objs/example.out/linux/x86_64/release/example/main.cpp.o build/.objs/example.out/linux/x86_64/release/example/test_download_resume.cpp.o build/.objs/example.out/linux/x86_64/release/example/test_http_put.cpp.o build/.objs/example.out/linux/x86_64/release/example/test_http_get.cpp.o $(example.out_LDFLAGS)
build/.objs/example.out/linux/x86_64/release/example/test_url.cpp.o: example/test_url.cpp
@echo compiling.release example/test_url.cpp
@mkdir -p build/.objs/example.out/linux/x86_64/release/example
$(VV)$(example.out_CXX) -c $(example.out_CXXFLAGS) -o build/.objs/example.out/linux/x86_64/release/example/test_url.cpp.o example/test_url.cpp
build/.objs/example.out/linux/x86_64/release/example/test_download_range.cpp.o: example/test_download_range.cpp
@echo compiling.release example/test_download_range.cpp
@mkdir -p build/.objs/example.out/linux/x86_64/release/example
$(VV)$(example.out_CXX) -c $(example.out_CXXFLAGS) -o build/.objs/example.out/linux/x86_64/release/example/test_download_range.cpp.o example/test_download_range.cpp
build/.objs/example.out/linux/x86_64/release/example/test_http_post.cpp.o: example/test_http_post.cpp
@echo compiling.release example/test_http_post.cpp
@mkdir -p build/.objs/example.out/linux/x86_64/release/example
$(VV)$(example.out_CXX) -c $(example.out_CXXFLAGS) -o build/.objs/example.out/linux/x86_64/release/example/test_http_post.cpp.o example/test_http_post.cpp
build/.objs/example.out/linux/x86_64/release/example/test_download_speed_limit.cpp.o: example/test_download_speed_limit.cpp
@echo compiling.release example/test_download_speed_limit.cpp
@mkdir -p build/.objs/example.out/linux/x86_64/release/example
$(VV)$(example.out_CXX) -c $(example.out_CXXFLAGS) -o build/.objs/example.out/linux/x86_64/release/example/test_download_speed_limit.cpp.o example/test_download_speed_limit.cpp
build/.objs/example.out/linux/x86_64/release/example/test_download.cpp.o: example/test_download.cpp
@echo compiling.release example/test_download.cpp
@mkdir -p build/.objs/example.out/linux/x86_64/release/example
$(VV)$(example.out_CXX) -c $(example.out_CXXFLAGS) -o build/.objs/example.out/linux/x86_64/release/example/test_download.cpp.o example/test_download.cpp
build/.objs/example.out/linux/x86_64/release/example/main.cpp.o: example/main.cpp
@echo compiling.release example/main.cpp
@mkdir -p build/.objs/example.out/linux/x86_64/release/example
$(VV)$(example.out_CXX) -c $(example.out_CXXFLAGS) -o build/.objs/example.out/linux/x86_64/release/example/main.cpp.o example/main.cpp
build/.objs/example.out/linux/x86_64/release/example/test_download_resume.cpp.o: example/test_download_resume.cpp
@echo compiling.release example/test_download_resume.cpp
@mkdir -p build/.objs/example.out/linux/x86_64/release/example
$(VV)$(example.out_CXX) -c $(example.out_CXXFLAGS) -o build/.objs/example.out/linux/x86_64/release/example/test_download_resume.cpp.o example/test_download_resume.cpp
build/.objs/example.out/linux/x86_64/release/example/test_http_put.cpp.o: example/test_http_put.cpp
@echo compiling.release example/test_http_put.cpp
@mkdir -p build/.objs/example.out/linux/x86_64/release/example
$(VV)$(example.out_CXX) -c $(example.out_CXXFLAGS) -o build/.objs/example.out/linux/x86_64/release/example/test_http_put.cpp.o example/test_http_put.cpp
build/.objs/example.out/linux/x86_64/release/example/test_http_get.cpp.o: example/test_http_get.cpp
@echo compiling.release example/test_http_get.cpp
@mkdir -p build/.objs/example.out/linux/x86_64/release/example
$(VV)$(example.out_CXX) -c $(example.out_CXXFLAGS) -o build/.objs/example.out/linux/x86_64/release/example/test_http_get.cpp.o example/test_http_get.cpp
iclient: lib/linux/x86_64/libiclient.a
lib/linux/x86_64/libiclient.a: build/.objs/iclient/linux/x86_64/release/src/request.cpp.o build/.objs/iclient/linux/x86_64/release/src/response.cpp.o build/.objs/iclient/linux/x86_64/release/src/executor.cpp.o build/.objs/iclient/linux/x86_64/release/src/http.cpp.o build/.objs/iclient/linux/x86_64/release/src/url.cpp.o build/.objs/iclient/linux/x86_64/release/src/util.cpp.o
@echo linking.release libiclient.a
@mkdir -p lib/linux/x86_64
$(VV)$(iclient_AR) $(iclient_ARFLAGS) lib/linux/x86_64/libiclient.a build/.objs/iclient/linux/x86_64/release/src/request.cpp.o build/.objs/iclient/linux/x86_64/release/src/response.cpp.o build/.objs/iclient/linux/x86_64/release/src/executor.cpp.o build/.objs/iclient/linux/x86_64/release/src/http.cpp.o build/.objs/iclient/linux/x86_64/release/src/url.cpp.o build/.objs/iclient/linux/x86_64/release/src/util.cpp.o
build/.objs/iclient/linux/x86_64/release/src/request.cpp.o: src/request.cpp
@echo compiling.release src/request.cpp
@mkdir -p build/.objs/iclient/linux/x86_64/release/src
$(VV)$(iclient_CXX) -c $(iclient_CXXFLAGS) -o build/.objs/iclient/linux/x86_64/release/src/request.cpp.o src/request.cpp
build/.objs/iclient/linux/x86_64/release/src/response.cpp.o: src/response.cpp
@echo compiling.release src/response.cpp
@mkdir -p build/.objs/iclient/linux/x86_64/release/src
$(VV)$(iclient_CXX) -c $(iclient_CXXFLAGS) -o build/.objs/iclient/linux/x86_64/release/src/response.cpp.o src/response.cpp
build/.objs/iclient/linux/x86_64/release/src/executor.cpp.o: src/executor.cpp
@echo compiling.release src/executor.cpp
@mkdir -p build/.objs/iclient/linux/x86_64/release/src
$(VV)$(iclient_CXX) -c $(iclient_CXXFLAGS) -o build/.objs/iclient/linux/x86_64/release/src/executor.cpp.o src/executor.cpp
build/.objs/iclient/linux/x86_64/release/src/http.cpp.o: src/http.cpp
@echo compiling.release src/http.cpp
@mkdir -p build/.objs/iclient/linux/x86_64/release/src
$(VV)$(iclient_CXX) -c $(iclient_CXXFLAGS) -o build/.objs/iclient/linux/x86_64/release/src/http.cpp.o src/http.cpp
build/.objs/iclient/linux/x86_64/release/src/url.cpp.o: src/url.cpp
@echo compiling.release src/url.cpp
@mkdir -p build/.objs/iclient/linux/x86_64/release/src
$(VV)$(iclient_CXX) -c $(iclient_CXXFLAGS) -o build/.objs/iclient/linux/x86_64/release/src/url.cpp.o src/url.cpp
build/.objs/iclient/linux/x86_64/release/src/util.cpp.o: src/util.cpp
@echo compiling.release src/util.cpp
@mkdir -p build/.objs/iclient/linux/x86_64/release/src
$(VV)$(iclient_CXX) -c $(iclient_CXXFLAGS) -o build/.objs/iclient/linux/x86_64/release/src/util.cpp.o src/util.cpp
clean: clean_example.out clean_iclient
clean_example.out: clean_iclient
@rm -rf bin/example.out
@rm -rf bin/example.out.sym
@rm -rf build/.objs/example.out/linux/x86_64/release/example/test_url.cpp.o
@rm -rf build/.objs/example.out/linux/x86_64/release/example/test_download_range.cpp.o
@rm -rf build/.objs/example.out/linux/x86_64/release/example/test_http_post.cpp.o
@rm -rf build/.objs/example.out/linux/x86_64/release/example/test_download_speed_limit.cpp.o
@rm -rf build/.objs/example.out/linux/x86_64/release/example/test_download.cpp.o
@rm -rf build/.objs/example.out/linux/x86_64/release/example/main.cpp.o
@rm -rf build/.objs/example.out/linux/x86_64/release/example/test_download_resume.cpp.o
@rm -rf build/.objs/example.out/linux/x86_64/release/example/test_http_put.cpp.o
@rm -rf build/.objs/example.out/linux/x86_64/release/example/test_http_get.cpp.o
clean_iclient:
@rm -rf lib/linux/x86_64/libiclient.a
@rm -rf lib/linux/x86_64/iclient.sym
@rm -rf build/.objs/iclient/linux/x86_64/release/src/request.cpp.o
@rm -rf build/.objs/iclient/linux/x86_64/release/src/response.cpp.o
@rm -rf build/.objs/iclient/linux/x86_64/release/src/executor.cpp.o
@rm -rf build/.objs/iclient/linux/x86_64/release/src/http.cpp.o
@rm -rf build/.objs/iclient/linux/x86_64/release/src/url.cpp.o
@rm -rf build/.objs/iclient/linux/x86_64/release/src/util.cpp.o