Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 327 lines (280 sloc) 10.528 kB
14b04b0 @ry Remove SCONS deprecate WAF
ry authored
1 BUILDTYPE ?= Release
90ab079 @ry Use --jobs=1 with WAF
ry authored
2
14b04b0 @ry Remove SCONS deprecate WAF
ry authored
3 all: out/Makefile
4 $(MAKE) -C out BUILDTYPE=$(BUILDTYPE)
5 -ln -fs out/Release/node node
6 -ln -fs out/Debug/node node_g
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
7
14b04b0 @ry Remove SCONS deprecate WAF
ry authored
8 out/Release/node: all
e5a0fbe @rsms Added support for cross compilation and also fixed DEST_CPU to repres…
rsms authored
9
eda1538 build: regenerate out/Makefile from within the main Makefile
eddy_me08@yahoo.com authored
10 out/Makefile: common.gypi deps/uv/uv.gyp deps/http_parser/http_parser.gyp deps/zlib/zlib.gyp deps/v8/build/common.gypi deps/v8/tools/gyp/v8.gyp node.gyp options.gypi
11 tools/gyp_node -f make
e5a0fbe @rsms Added support for cross compilation and also fixed DEST_CPU to repres…
rsms authored
12
be23c51 @indutny Implement make install
indutny authored
13 install: all
14 out/Release/node tools/installer.js ./options.gypi install
15
16 uninstall:
17 out/Release/node tools/installer.js ./options.gypi uninstall
1db9a2a @bnoordhuis build: print "not yet implemented" warning on `make install`
bnoordhuis authored
18
14b04b0 @ry Remove SCONS deprecate WAF
ry authored
19 clean:
20 rm -rf out
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
21
14b04b0 @ry Remove SCONS deprecate WAF
ry authored
22 distclean:
48d21dd @ry Force makefile generation in gyp
ry authored
23 -rm -rf out
5859361 @ry Add missing rm
ry authored
24 -rm options.gypi
15594ea @ry Replace WAF with make/autoconf
ry authored
25
97c9745 @ry Back to WAF
ry authored
26 test: all
125b868 @ry Add message tests
ry authored
27 python tools/test.py --mode=release simple message
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
28
38f948a @bnoordhuis http: make http2 the default, legacy backend is available with --use-…
bnoordhuis authored
29 test-http1: all
30 python tools/test.py --mode=release --use-http1 simple message
e1bb241 @bnoordhuis test: add targets `test-http2` and `test-all-http2`
bnoordhuis authored
31
d02131d @ry Add 'make test-valgrind'
ry authored
32 test-valgrind: all
33 python tools/test.py --mode=release --valgrind simple message
34
97c9745 @ry Back to WAF
ry authored
35 test-all: all
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
36 python tools/test.py --mode=debug,release
37
38f948a @bnoordhuis http: make http2 the default, legacy backend is available with --use-…
bnoordhuis authored
38 test-all-http1: all
39 python tools/test.py --mode=debug,release --use-http1
e1bb241 @bnoordhuis test: add targets `test-http2` and `test-all-http2`
bnoordhuis authored
40
d02131d @ry Add 'make test-valgrind'
ry authored
41 test-all-valgrind: all
42 python tools/test.py --mode=debug,release --valgrind
43
97c9745 @ry Back to WAF
ry authored
44 test-release: all
6670154 @ry 'make test' only runs the simple test
ry authored
45 python tools/test.py --mode=release
46
97c9745 @ry Back to WAF
ry authored
47 test-debug: all
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
48 python tools/test.py --mode=debug
49
97c9745 @ry Back to WAF
ry authored
50 test-message: all
125b868 @ry Add message tests
ry authored
51 python tools/test.py message
52
97c9745 @ry Back to WAF
ry authored
53 test-simple: all
04fac19 @arlolra Split tests.
arlolra authored
54 python tools/test.py simple
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
55
97c9745 @ry Back to WAF
ry authored
56 test-pummel: all
04fac19 @arlolra Split tests.
arlolra authored
57 python tools/test.py pummel
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
58
97c9745 @ry Back to WAF
ry authored
59 test-internet: all
04fac19 @arlolra Split tests.
arlolra authored
60 python tools/test.py internet
61
14b04b0 @ry Remove SCONS deprecate WAF
ry authored
62 UVTEST += simple/test-assert
63 UVTEST += simple/test-buffer
64 UVTEST += simple/test-c-ares
65 UVTEST += simple/test-chdir
66 UVTEST += simple/test-delayed-require
67 UVTEST += simple/test-eio-race2
68 UVTEST += simple/test-eio-race4
69 UVTEST += simple/test-event-emitter-add-listeners
70 UVTEST += simple/test-event-emitter-modify-in-emit
71 UVTEST += simple/test-event-emitter-num-args
72 UVTEST += simple/test-event-emitter-once
73 UVTEST += simple/test-event-emitter-remove-all-listeners
74 UVTEST += simple/test-event-emitter-remove-listeners
75 UVTEST += simple/test-exception-handler
76 UVTEST += simple/test-exception-handler2
77 UVTEST += simple/test-exception-handler
78 UVTEST += simple/test-executable-path
79 UVTEST += simple/test-file-read-noexist
80 UVTEST += simple/test-file-write-stream
81 UVTEST += simple/test-fs-fsync
82 UVTEST += simple/test-fs-open
83 UVTEST += simple/test-fs-readfile-empty
84 UVTEST += simple/test-fs-read-file-sync
85 UVTEST += simple/test-fs-read-file-sync-hostname
86 UVTEST += simple/test-fs-sir-writes-alot
87 UVTEST += simple/test-fs-write
88 UVTEST += simple/test-fs-write-buffer
89 UVTEST += simple/test-fs-write-file
90 UVTEST += simple/test-fs-write-file-buffer
91 UVTEST += simple/test-fs-write-stream
92 UVTEST += simple/test-fs-write-stream-end
93 UVTEST += simple/test-fs-write-sync
94 UVTEST += simple/test-global
95 UVTEST += simple/test-http
96 UVTEST += simple/test-http-1.0
97 UVTEST += simple/test-http-abort-client
98 UVTEST += simple/test-http-allow-req-after-204-res
99 UVTEST += simple/test-http-blank-header
100 UVTEST += simple/test-http-buffer-sanity
101 UVTEST += simple/test-http-cat
102 UVTEST += simple/test-http-chunked
103 UVTEST += simple/test-http-client-abort
104 UVTEST += simple/test-http-client-parse-error
105 UVTEST += simple/test-http-client-race
106 UVTEST += simple/test-http-client-race-2
107 UVTEST += simple/test-http-client-upload
108 UVTEST += simple/test-http-client-upload-buf
109 UVTEST += simple/test-http-contentLength0
110 UVTEST += simple/test-http-default-encoding
111 UVTEST += simple/test-http-dns-fail
112 UVTEST += simple/test-http-eof-on-connect
113 UVTEST += simple/test-http-exceptions
114 UVTEST += simple/test-http-expect-continue
115 UVTEST += simple/test-http-extra-response
116 UVTEST += simple/test-http-head-request
117 UVTEST += simple/test-http-head-response-has-no-body
118 UVTEST += simple/test-http-keep-alive
119 UVTEST += simple/test-http-keep-alive-close-on-header
120 UVTEST += simple/test-http-malformed-request
121 UVTEST += simple/test-http-many-keep-alive-connections
122 UVTEST += simple/test-http-mutable-headers
123 UVTEST += simple/test-http-parser
124 UVTEST += simple/test-http-proxy
125 UVTEST += simple/test-http-request-end
126 UVTEST += simple/test-http-response-close
127 UVTEST += simple/test-http-response-readable
128 UVTEST += simple/test-http-unix-socket
129 UVTEST += simple/test-http-server
130 UVTEST += simple/test-http-server-multiheaders
131 UVTEST += simple/test-http-set-cookies
132 UVTEST += simple/test-http-set-timeout
133 UVTEST += simple/test-http-set-trailers
134 UVTEST += simple/test-http-upgrade-agent
135 UVTEST += simple/test-http-upgrade-client
136 UVTEST += simple/test-http-upgrade-client2
137 UVTEST += simple/test-http-upgrade-server
138 UVTEST += simple/test-http-upgrade-server2
139 UVTEST += simple/test-http-wget
140 UVTEST += simple/test-http-write-empty-string
141 UVTEST += simple/test-http-wget
142 UVTEST += simple/test-mkdir-rmdir
143 UVTEST += simple/test-net-binary
144 UVTEST += simple/test-net-pingpong
145 UVTEST += simple/test-net-can-reset-timeout
146 UVTEST += simple/test-net-connect-buffer
147 UVTEST += simple/test-net-connect-timeout
148 UVTEST += simple/test-net-create-connection
149 UVTEST += simple/test-net-eaddrinuse
150 UVTEST += simple/test-net-isip
151 UVTEST += simple/test-net-keepalive
152 UVTEST += simple/test-net-pingpong
153 UVTEST += simple/test-net-reconnect
154 UVTEST += simple/test-net-remote-address-port
155 UVTEST += simple/test-net-server-bind
156 UVTEST += simple/test-net-server-max-connections
157 UVTEST += simple/test-net-server-try-ports
158 UVTEST += simple/test-net-stream
159 UVTEST += simple/test-net-socket-timeout
160 UVTEST += simple/test-next-tick
161 UVTEST += simple/test-next-tick-doesnt-hang
162 UVTEST += simple/test-next-tick-errors
163 UVTEST += simple/test-next-tick-ordering
164 UVTEST += simple/test-next-tick-ordering2
165 UVTEST += simple/test-next-tick-starvation
166 UVTEST += simple/test-module-load-list
167 UVTEST += simple/test-path
168 UVTEST += simple/test-pipe-stream
169 UVTEST += simple/test-pump-file2tcp
170 UVTEST += simple/test-pump-file2tcp-noexist
171 UVTEST += simple/test-punycode
172 UVTEST += simple/test-querystring
173 UVTEST += simple/test-readdir
174 UVTEST += simple/test-readdouble
175 UVTEST += simple/test-readfloat
176 UVTEST += simple/test-readint
177 UVTEST += simple/test-readuint
178 UVTEST += simple/test-regress-GH-819
179 UVTEST += simple/test-regress-GH-897
180 UVTEST += simple/test-regression-object-prototype
181 UVTEST += simple/test-require-cache
182 UVTEST += simple/test-require-cache-without-stat
183 UVTEST += simple/test-require-exceptions
184 UVTEST += simple/test-require-resolve
185 UVTEST += simple/test-script-context
186 UVTEST += simple/test-script-new
187 UVTEST += simple/test-script-static-context
188 UVTEST += simple/test-script-static-new
189 UVTEST += simple/test-script-static-this
190 UVTEST += simple/test-script-this
191 UVTEST += simple/test-stream-pipe-cleanup
192 UVTEST += simple/test-stream-pipe-error-handling
193 UVTEST += simple/test-stream-pipe-event
194 UVTEST += simple/test-stream-pipe-multi
195 UVTEST += simple/test-string-decoder
196 UVTEST += simple/test-sys
197 UVTEST += simple/test-tcp-wrap
198 UVTEST += simple/test-tcp-wrap-connect
199 UVTEST += simple/test-tcp-wrap-listen
200 UVTEST += simple/test-timers-linked-list
201 UVTEST += simple/test-tty-stdout-end
202 UVTEST += simple/test-url
203 UVTEST += simple/test-utf8-scripts
204 UVTEST += simple/test-vm-create-context-circular-reference
205 UVTEST += simple/test-writedouble
206 UVTEST += simple/test-writefloat
207 UVTEST += simple/test-writeint
208 UVTEST += simple/test-writeuint
209 UVTEST += simple/test-zerolengthbufferbug
210 UVTEST += pummel/test-http-client-reconnect-bug
211 UVTEST += pummel/test-http-upload-timeout
212 UVTEST += pummel/test-net-many-clients
213 UVTEST += pummel/test-net-pause
214 UVTEST += pummel/test-net-pingpong-delay
215 UVTEST += pummel/test-net-timeout
216 UVTEST += pummel/test-timers
217 UVTEST += pummel/test-timer-wrap
218 UVTEST += pummel/test-timer-wrap2
219 UVTEST += pummel/test-vm-memleak
220 UVTEST += internet/test-dns
221 UVTEST += simple/test-tls-client-abort
222 UVTEST += simple/test-tls-client-verify
223 UVTEST += simple/test-tls-connect
224 #UVTEST += simple/test-tls-ext-key-usage # broken
225 UVTEST += simple/test-tls-junk-closes-server
226 UVTEST += simple/test-tls-npn-server-client
227 UVTEST += simple/test-tls-request-timeout
228 #UVTEST += simple/test-tls-securepair-client # broken
229 UVTEST += simple/test-tls-securepair-server
230 #UVTEST += simple/test-tls-server-verify # broken
231 UVTEST += simple/test-tls-set-encoding
232
233 # child_process
234 UVTEST += simple/test-child-process-exit-code
235 UVTEST += simple/test-child-process-buffering
236 UVTEST += simple/test-child-process-exec-cwd
237 UVTEST += simple/test-child-process-cwd
238 UVTEST += simple/test-child-process-env
239 UVTEST += simple/test-child-process-stdin
240 UVTEST += simple/test-child-process-ipc
241 UVTEST += simple/test-child-process-deprecated-api
242
243
244 test-uv: all
245 NODE_USE_UV=1 python tools/test.py $(UVTEST)
246
247 test-uv-debug: all
248 NODE_USE_UV=1 python tools/test.py --mode=debug $(UVTEST)
15286c8 @ry Start 'make test-uv' command
ry authored
249
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
250
251 apidoc_sources = $(wildcard doc/api/*.markdown)
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
252 apidocs = $(addprefix out/,$(apidoc_sources:.markdown=.html))
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
253
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
254 apidoc_dirs = out/doc out/doc/api/ out/doc/api/assets
2392775 @ry Fix make doc
ry authored
255
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
256 apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_assets/*)))
320e002 @ry fix 'make doc'
ry authored
257
90d1e47 @ry make doc improvements
ry authored
258 website_files = \
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
259 out/doc/index.html \
260 out/doc/v0.4_announcement.html \
261 out/doc/cla.html \
262 out/doc/sh_main.js \
263 out/doc/sh_javascript.min.js \
264 out/doc/sh_vim-dark.css \
265 out/doc/logo.png \
266 out/doc/sponsored.png \
267 out/doc/favicon.ico \
268 out/doc/pipe.css
269
14b04b0 @ry Remove SCONS deprecate WAF
ry authored
270 doc: out/Release/node $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs)
320e002 @ry fix 'make doc'
ry authored
271
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
272 $(apidoc_dirs):
273 mkdir -p $@
2392775 @ry Fix make doc
ry authored
274
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
275 out/doc/api/assets/%: doc/api_assets/% out/doc/api/assets/
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
276 cp $< $@
277
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
278 out/doc/%: doc/%
90d1e47 @ry make doc improvements
ry authored
279 cp $< $@
280
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
281 out/doc/api/%.html: doc/api/%.markdown out/Release/node $(apidoc_dirs) $(apiassets) tools/doctool/doctool.js
282 out/Release/node tools/doctool/doctool.js doc/template.html $< > $@
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
283
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
284 out/doc/%:
2392775 @ry Fix make doc
ry authored
285
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
286 website-upload: doc
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
287 scp -r out/doc/* $(web_root)
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
288
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
289 docopen: out/doc/api/all.html
290 -google-chrome out/doc/api/all.html
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
291
2c016ba @ry 'make distclean' should not call 'waf clean'
ry authored
292 docclean:
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
293 -rm -rf out/doc
2c016ba @ry 'make distclean' should not call 'waf clean'
ry authored
294
14b04b0 @ry Remove SCONS deprecate WAF
ry authored
295 VERSION=$(shell git describe)
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
296 TARNAME=node-$(VERSION)
297
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
298 #dist: doc/node.1 doc/api
14b04b0 @ry Remove SCONS deprecate WAF
ry authored
299 dist: doc
a1138c6 @miksago Cleanup Makefile for JSLint, CPPLint
miksago authored
300 git archive --format=tar --prefix=$(TARNAME)/ HEAD | tar xf -
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
301 mkdir -p $(TARNAME)/doc
302 cp doc/node.1 $(TARNAME)/doc/node.1
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
303 cp -r out/doc/api $(TARNAME)/doc/api
ce2d5ad @ry Change the 'make dist' to remove v8 test dir
ry authored
304 rm -rf $(TARNAME)/deps/v8/test # too big
a0198d0 @ry Remove logos from package
ry authored
305 rm -rf $(TARNAME)/doc/logos # too big
ce2d5ad @ry Change the 'make dist' to remove v8 test dir
ry authored
306 tar -cf $(TARNAME).tar $(TARNAME)
307 rm -rf $(TARNAME)
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
308 gzip -f -9 $(TARNAME).tar
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
309
ff456b3 @ry Add 'make bench' script
ry authored
310 bench:
311 benchmark/http_simple_bench.sh
312
3cf4827 @ry Add idle connection test
ry authored
313 bench-idle:
314 ./node benchmark/idle_server.js &
315 sleep 1
316 ./node benchmark/idle_clients.js &
317
ac58d3a @ry Import cpplint.py
ry authored
318 jslint:
558e5ba @ry lint util.js and src/node.js
ry authored
319 PYTHONPATH=tools/closure_linter/ python tools/closure_linter/closure_linter/gjslint.py --unix_mode --strict --nojsdoc -r lib/ -r src/ -r test/
3cf4827 @ry Add idle connection test
ry authored
320
ac58d3a @ry Import cpplint.py
ry authored
321 cpplint:
a1138c6 @miksago Cleanup Makefile for JSLint, CPPLint
miksago authored
322 @python tools/cpplint.py $(wildcard src/*.cc src/*.h src/*.c)
ac58d3a @ry Import cpplint.py
ry authored
323
324 lint: jslint cpplint
a128451 @ry Import Google's closure_linter
ry authored
325
be23c51 @indutny Implement make install
indutny authored
326 .PHONY: lint cpplint jslint bench clean docopen docclean doc dist distclean check uninstall install install-includes install-bin all program staticlib dynamiclib test test-all website-upload
Something went wrong with that request. Please try again.