3 # Copyright (c) 2013, Ben Noordhuis <info@bnoordhuis.nl>
5 # Permission to use, copy, modify, and/or distribute this software for any
6 # purpose with or without fee is hereby granted, provided that the above
7 # copyright notice and this permission notice appear in all copies.
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 SPARSE=${SPARSE:-sparse}
19 SPARSE_FLAGS=${SPARSE_FLAGS:-"
23 -Wno-transparent-union
30 include/uv-private/ngx-queue.h
31 include/uv-private/tree.h
32 include/uv-private/uv-unix.h
41 src/unix/getaddrinfo.c
43 src/unix/loop-watcher.c
61 test/benchmark-async-pummel.c
62 test/benchmark-async.c
63 test/benchmark-fs-stat.c
64 test/benchmark-getaddrinfo.c
65 test/benchmark-loop-count.c
66 test/benchmark-million-async.c
67 test/benchmark-million-timers.c
68 test/benchmark-multi-accept.c
69 test/benchmark-ping-pongs.c
70 test/benchmark-pound.c
72 test/benchmark-sizes.c
73 test/benchmark-spawn.c
74 test/benchmark-tcp-write-batch.c
75 test/benchmark-thread.c
76 test/benchmark-udp-pummel.c
77 test/blackhole-server.c
90 test/test-callback-order.c
91 test/test-callback-stack.c
93 test/test-connection-fail.c
94 test/test-cwd-and-chdir.c
95 test/test-delayed-accept.c
99 test/test-fail-always.c
103 test/test-get-currentexe.c
104 test/test-get-loadavg.c
105 test/test-get-memory.c
106 test/test-getaddrinfo.c
107 test/test-getsockname.c
110 test/test-ipc-send-recv.c
112 test/test-loop-handles.c
113 test/test-multiple-listen.c
115 test/test-pass-always.c
116 test/test-ping-pong.c
117 test/test-pipe-bind-error.c
118 test/test-pipe-connect-error.c
119 test/test-platform-output.c
120 test/test-poll-close.c
122 test/test-process-title.c
124 test/test-run-nowait.c
126 test/test-semaphore.c
127 test/test-shutdown-close.c
128 test/test-shutdown-eof.c
129 test/test-signal-multiple-loops.c
132 test/test-stdio-over-pipes.c
133 test/test-tcp-bind-error.c
134 test/test-tcp-bind6-error.c
135 test/test-tcp-close-while-connecting.c
136 test/test-tcp-close-accept.c
137 test/test-tcp-close.c
138 test/test-tcp-connect-error-after-write.c
139 test/test-tcp-connect-error.c
140 test/test-tcp-connect-timeout.c
141 test/test-tcp-connect6-error.c
142 test/test-tcp-flags.c
144 test/test-tcp-read-stop.c
145 test/test-tcp-shutdown-after-write.c
146 test/test-tcp-unexpected-read.c
147 test/test-tcp-write-error.c
148 test/test-tcp-write-to-half-open-connection.c
149 test/test-tcp-writealot.c
151 test/test-threadpool-cancel.c
152 test/test-threadpool.c
153 test/test-timer-again.c
156 test/test-udp-dgram-too-big.c
158 test/test-udp-multicast-join.c
159 test/test-udp-multicast-ttl.c
161 test/test-udp-options.c
162 test/test-udp-send-and-recv.c
164 test/test-walk-handles.c
165 test/test-watcher-cross-stop.c
170 SPARSE_FLAGS="$SPARSE_FLAGS -D_AIX=1"
175 SPARSE_FLAGS="$SPARSE_FLAGS -D__APPLE__=1"
177 include/uv-private/uv-bsd.h
183 SPARSE_FLAGS="$SPARSE_FLAGS -D__DragonFly__=1"
185 include/uv-private/uv-bsd.h
190 SPARSE_FLAGS="$SPARSE_FLAGS -D__FreeBSD__=1"
192 include/uv-private/uv-bsd.h
197 SPARSE_FLAGS="$SPARSE_FLAGS -D__linux__=1"
199 include/uv-private/uv-linux.h
200 src/unix/linux-inotify.c
201 src/unix/linux-core.c
202 src/unix/linux-syscalls.c
203 src/unix/linux-syscalls.h"
206 SPARSE_FLAGS="$SPARSE_FLAGS -D__NetBSD__=1"
208 include/uv-private/uv-bsd.h
213 SPARSE_FLAGS="$SPARSE_FLAGS -D__OpenBSD__=1"
215 include/uv-private/uv-bsd.h
220 SPARSE_FLAGS="$SPARSE_FLAGS -D__sun=1"
222 include/uv-private/uv-sunos.h
227 for ARCH in __i386__ __x86_64__ __arm__ __mips__; do
228 $SPARSE $SPARSE_FLAGS -D$ARCH=1 $SOURCES
231 # Tests are architecture independent.
232 $SPARSE $SPARSE_FLAGS -Itest $TESTS