11cb0ef41Sopenharmony_ci# Copyright (c) 2013, Ben Noordhuis <info@bnoordhuis.nl> 21cb0ef41Sopenharmony_ci# 31cb0ef41Sopenharmony_ci# Permission to use, copy, modify, and/or distribute this software for any 41cb0ef41Sopenharmony_ci# purpose with or without fee is hereby granted, provided that the above 51cb0ef41Sopenharmony_ci# copyright notice and this permission notice appear in all copies. 61cb0ef41Sopenharmony_ci# 71cb0ef41Sopenharmony_ci# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 81cb0ef41Sopenharmony_ci# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 91cb0ef41Sopenharmony_ci# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 101cb0ef41Sopenharmony_ci# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 111cb0ef41Sopenharmony_ci# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 121cb0ef41Sopenharmony_ci# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 131cb0ef41Sopenharmony_ci# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 141cb0ef41Sopenharmony_ci 151cb0ef41Sopenharmony_ciACLOCAL_AMFLAGS = -I m4 161cb0ef41Sopenharmony_ci 171cb0ef41Sopenharmony_ciAM_CPPFLAGS = -I$(top_srcdir)/include \ 181cb0ef41Sopenharmony_ci -I$(top_srcdir)/src 191cb0ef41Sopenharmony_ci 201cb0ef41Sopenharmony_ciinclude_HEADERS=include/uv.h 211cb0ef41Sopenharmony_ci 221cb0ef41Sopenharmony_ciuvincludedir = $(includedir)/uv 231cb0ef41Sopenharmony_ciuvinclude_HEADERS = include/uv/errno.h \ 241cb0ef41Sopenharmony_ci include/uv/threadpool.h \ 251cb0ef41Sopenharmony_ci include/uv/version.h 261cb0ef41Sopenharmony_ci 271cb0ef41Sopenharmony_ciCLEANFILES = 281cb0ef41Sopenharmony_ci 291cb0ef41Sopenharmony_cilib_LTLIBRARIES = libuv.la 301cb0ef41Sopenharmony_cilibuv_la_CFLAGS = $(AM_CFLAGS) 311cb0ef41Sopenharmony_cilibuv_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined -version-info 1:0:0 321cb0ef41Sopenharmony_cilibuv_la_SOURCES = src/fs-poll.c \ 331cb0ef41Sopenharmony_ci src/heap-inl.h \ 341cb0ef41Sopenharmony_ci src/idna.c \ 351cb0ef41Sopenharmony_ci src/idna.h \ 361cb0ef41Sopenharmony_ci src/inet.c \ 371cb0ef41Sopenharmony_ci src/queue.h \ 381cb0ef41Sopenharmony_ci src/random.c \ 391cb0ef41Sopenharmony_ci src/strscpy.c \ 401cb0ef41Sopenharmony_ci src/strscpy.h \ 411cb0ef41Sopenharmony_ci src/threadpool.c \ 421cb0ef41Sopenharmony_ci src/timer.c \ 431cb0ef41Sopenharmony_ci src/uv-data-getter-setters.c \ 441cb0ef41Sopenharmony_ci src/uv-common.c \ 451cb0ef41Sopenharmony_ci src/uv-common.h \ 461cb0ef41Sopenharmony_ci src/version.c \ 471cb0ef41Sopenharmony_ci src/strtok.c \ 481cb0ef41Sopenharmony_ci src/strtok.h 491cb0ef41Sopenharmony_ci 501cb0ef41Sopenharmony_ciif SUNOS 511cb0ef41Sopenharmony_ci# Can't be turned into a CC_CHECK_CFLAGS in configure.ac, it makes compilers 521cb0ef41Sopenharmony_ci# on other platforms complain that the argument is unused during compilation. 531cb0ef41Sopenharmony_cilibuv_la_CFLAGS += -pthreads 541cb0ef41Sopenharmony_ciendif 551cb0ef41Sopenharmony_ci 561cb0ef41Sopenharmony_ciif WINNT 571cb0ef41Sopenharmony_ci 581cb0ef41Sopenharmony_ciuvinclude_HEADERS += include/uv/win.h include/uv/tree.h 591cb0ef41Sopenharmony_ciAM_CPPFLAGS += -I$(top_srcdir)/src/win \ 601cb0ef41Sopenharmony_ci -DWIN32_LEAN_AND_MEAN \ 611cb0ef41Sopenharmony_ci -D_WIN32_WINNT=0x0602 621cb0ef41Sopenharmony_cilibuv_la_SOURCES += src/win/async.c \ 631cb0ef41Sopenharmony_ci src/win/atomicops-inl.h \ 641cb0ef41Sopenharmony_ci src/win/core.c \ 651cb0ef41Sopenharmony_ci src/win/detect-wakeup.c \ 661cb0ef41Sopenharmony_ci src/win/dl.c \ 671cb0ef41Sopenharmony_ci src/win/error.c \ 681cb0ef41Sopenharmony_ci src/win/fs-event.c \ 691cb0ef41Sopenharmony_ci src/win/fs.c \ 701cb0ef41Sopenharmony_ci src/win/getaddrinfo.c \ 711cb0ef41Sopenharmony_ci src/win/getnameinfo.c \ 721cb0ef41Sopenharmony_ci src/win/handle.c \ 731cb0ef41Sopenharmony_ci src/win/handle-inl.h \ 741cb0ef41Sopenharmony_ci src/win/internal.h \ 751cb0ef41Sopenharmony_ci src/win/loop-watcher.c \ 761cb0ef41Sopenharmony_ci src/win/pipe.c \ 771cb0ef41Sopenharmony_ci src/win/poll.c \ 781cb0ef41Sopenharmony_ci src/win/process-stdio.c \ 791cb0ef41Sopenharmony_ci src/win/process.c \ 801cb0ef41Sopenharmony_ci src/win/req-inl.h \ 811cb0ef41Sopenharmony_ci src/win/signal.c \ 821cb0ef41Sopenharmony_ci src/win/stream.c \ 831cb0ef41Sopenharmony_ci src/win/stream-inl.h \ 841cb0ef41Sopenharmony_ci src/win/tcp.c \ 851cb0ef41Sopenharmony_ci src/win/thread.c \ 861cb0ef41Sopenharmony_ci src/win/tty.c \ 871cb0ef41Sopenharmony_ci src/win/udp.c \ 881cb0ef41Sopenharmony_ci src/win/util.c \ 891cb0ef41Sopenharmony_ci src/win/winapi.c \ 901cb0ef41Sopenharmony_ci src/win/winapi.h \ 911cb0ef41Sopenharmony_ci src/win/winsock.c \ 921cb0ef41Sopenharmony_ci src/win/winsock.h 931cb0ef41Sopenharmony_ci 941cb0ef41Sopenharmony_cielse # WINNT 951cb0ef41Sopenharmony_ci 961cb0ef41Sopenharmony_ciuvinclude_HEADERS += include/uv/unix.h 971cb0ef41Sopenharmony_ciAM_CPPFLAGS += -I$(top_srcdir)/src/unix 981cb0ef41Sopenharmony_cilibuv_la_SOURCES += src/unix/async.c \ 991cb0ef41Sopenharmony_ci src/unix/atomic-ops.h \ 1001cb0ef41Sopenharmony_ci src/unix/core.c \ 1011cb0ef41Sopenharmony_ci src/unix/dl.c \ 1021cb0ef41Sopenharmony_ci src/unix/fs.c \ 1031cb0ef41Sopenharmony_ci src/unix/getaddrinfo.c \ 1041cb0ef41Sopenharmony_ci src/unix/getnameinfo.c \ 1051cb0ef41Sopenharmony_ci src/unix/internal.h \ 1061cb0ef41Sopenharmony_ci src/unix/loop-watcher.c \ 1071cb0ef41Sopenharmony_ci src/unix/loop.c \ 1081cb0ef41Sopenharmony_ci src/unix/pipe.c \ 1091cb0ef41Sopenharmony_ci src/unix/poll.c \ 1101cb0ef41Sopenharmony_ci src/unix/process.c \ 1111cb0ef41Sopenharmony_ci src/unix/random-devurandom.c \ 1121cb0ef41Sopenharmony_ci src/unix/signal.c \ 1131cb0ef41Sopenharmony_ci src/unix/spinlock.h \ 1141cb0ef41Sopenharmony_ci src/unix/stream.c \ 1151cb0ef41Sopenharmony_ci src/unix/tcp.c \ 1161cb0ef41Sopenharmony_ci src/unix/thread.c \ 1171cb0ef41Sopenharmony_ci src/unix/tty.c \ 1181cb0ef41Sopenharmony_ci src/unix/udp.c 1191cb0ef41Sopenharmony_ci 1201cb0ef41Sopenharmony_ciendif # WINNT 1211cb0ef41Sopenharmony_ci 1221cb0ef41Sopenharmony_ciEXTRA_DIST = test/fixtures/empty_file \ 1231cb0ef41Sopenharmony_ci test/fixtures/load_error.node \ 1241cb0ef41Sopenharmony_ci test/fixtures/lorem_ipsum.txt \ 1251cb0ef41Sopenharmony_ci include \ 1261cb0ef41Sopenharmony_ci docs \ 1271cb0ef41Sopenharmony_ci img \ 1281cb0ef41Sopenharmony_ci CONTRIBUTING.md \ 1291cb0ef41Sopenharmony_ci LICENSE \ 1301cb0ef41Sopenharmony_ci README.md 1311cb0ef41Sopenharmony_ci 1321cb0ef41Sopenharmony_ci 1331cb0ef41Sopenharmony_ci 1341cb0ef41Sopenharmony_ciTESTS = test/run-tests 1351cb0ef41Sopenharmony_cicheck_PROGRAMS = test/run-tests 1361cb0ef41Sopenharmony_citest_run_tests_CFLAGS = $(AM_CFLAGS) 1371cb0ef41Sopenharmony_ci 1381cb0ef41Sopenharmony_ciif SUNOS 1391cb0ef41Sopenharmony_ci# Can't be turned into a CC_CHECK_CFLAGS in configure.ac, it makes compilers 1401cb0ef41Sopenharmony_ci# on other platforms complain that the argument is unused during compilation. 1411cb0ef41Sopenharmony_citest_run_tests_CFLAGS += -pthreads 1421cb0ef41Sopenharmony_ciendif 1431cb0ef41Sopenharmony_ci 1441cb0ef41Sopenharmony_citest_run_tests_LDFLAGS = $(AM_LDFLAGS) 1451cb0ef41Sopenharmony_citest_run_tests_SOURCES = test/blackhole-server.c \ 1461cb0ef41Sopenharmony_ci test/echo-server.c \ 1471cb0ef41Sopenharmony_ci test/run-tests.c \ 1481cb0ef41Sopenharmony_ci test/runner.c \ 1491cb0ef41Sopenharmony_ci test/runner.h \ 1501cb0ef41Sopenharmony_ci test/task.h \ 1511cb0ef41Sopenharmony_ci test/test-active.c \ 1521cb0ef41Sopenharmony_ci test/test-async.c \ 1531cb0ef41Sopenharmony_ci test/test-async-null-cb.c \ 1541cb0ef41Sopenharmony_ci test/test-barrier.c \ 1551cb0ef41Sopenharmony_ci test/test-callback-stack.c \ 1561cb0ef41Sopenharmony_ci test/test-close-fd.c \ 1571cb0ef41Sopenharmony_ci test/test-close-order.c \ 1581cb0ef41Sopenharmony_ci test/test-condvar.c \ 1591cb0ef41Sopenharmony_ci test/test-connect-unspecified.c \ 1601cb0ef41Sopenharmony_ci test/test-connection-fail.c \ 1611cb0ef41Sopenharmony_ci test/test-cwd-and-chdir.c \ 1621cb0ef41Sopenharmony_ci test/test-default-loop-close.c \ 1631cb0ef41Sopenharmony_ci test/test-delayed-accept.c \ 1641cb0ef41Sopenharmony_ci test/test-dlerror.c \ 1651cb0ef41Sopenharmony_ci test/test-eintr-handling.c \ 1661cb0ef41Sopenharmony_ci test/test-embed.c \ 1671cb0ef41Sopenharmony_ci test/test-emfile.c \ 1681cb0ef41Sopenharmony_ci test/test-env-vars.c \ 1691cb0ef41Sopenharmony_ci test/test-error.c \ 1701cb0ef41Sopenharmony_ci test/test-fail-always.c \ 1711cb0ef41Sopenharmony_ci test/test-fs-copyfile.c \ 1721cb0ef41Sopenharmony_ci test/test-fs-event.c \ 1731cb0ef41Sopenharmony_ci test/test-fs-poll.c \ 1741cb0ef41Sopenharmony_ci test/test-fs.c \ 1751cb0ef41Sopenharmony_ci test/test-fs-readdir.c \ 1761cb0ef41Sopenharmony_ci test/test-fs-fd-hash.c \ 1771cb0ef41Sopenharmony_ci test/test-fs-open-flags.c \ 1781cb0ef41Sopenharmony_ci test/test-fork.c \ 1791cb0ef41Sopenharmony_ci test/test-getters-setters.c \ 1801cb0ef41Sopenharmony_ci test/test-get-currentexe.c \ 1811cb0ef41Sopenharmony_ci test/test-get-loadavg.c \ 1821cb0ef41Sopenharmony_ci test/test-get-memory.c \ 1831cb0ef41Sopenharmony_ci test/test-get-passwd.c \ 1841cb0ef41Sopenharmony_ci test/test-getaddrinfo.c \ 1851cb0ef41Sopenharmony_ci test/test-gethostname.c \ 1861cb0ef41Sopenharmony_ci test/test-getnameinfo.c \ 1871cb0ef41Sopenharmony_ci test/test-getsockname.c \ 1881cb0ef41Sopenharmony_ci test/test-gettimeofday.c \ 1891cb0ef41Sopenharmony_ci test/test-handle-fileno.c \ 1901cb0ef41Sopenharmony_ci test/test-homedir.c \ 1911cb0ef41Sopenharmony_ci test/test-hrtime.c \ 1921cb0ef41Sopenharmony_ci test/test-idle.c \ 1931cb0ef41Sopenharmony_ci test/test-idna.c \ 1941cb0ef41Sopenharmony_ci test/test-ip4-addr.c \ 1951cb0ef41Sopenharmony_ci test/test-ip6-addr.c \ 1961cb0ef41Sopenharmony_ci test/test-ip-name.c \ 1971cb0ef41Sopenharmony_ci test/test-ipc-heavy-traffic-deadlock-bug.c \ 1981cb0ef41Sopenharmony_ci test/test-ipc-send-recv.c \ 1991cb0ef41Sopenharmony_ci test/test-ipc.c \ 2001cb0ef41Sopenharmony_ci test/test-list.h \ 2011cb0ef41Sopenharmony_ci test/test-loop-handles.c \ 2021cb0ef41Sopenharmony_ci test/test-loop-alive.c \ 2031cb0ef41Sopenharmony_ci test/test-loop-close.c \ 2041cb0ef41Sopenharmony_ci test/test-loop-stop.c \ 2051cb0ef41Sopenharmony_ci test/test-loop-time.c \ 2061cb0ef41Sopenharmony_ci test/test-loop-configure.c \ 2071cb0ef41Sopenharmony_ci test/test-metrics.c \ 2081cb0ef41Sopenharmony_ci test/test-multiple-listen.c \ 2091cb0ef41Sopenharmony_ci test/test-mutexes.c \ 2101cb0ef41Sopenharmony_ci test/test-not-readable-nor-writable-on-read-error.c \ 2111cb0ef41Sopenharmony_ci test/test-not-writable-after-shutdown.c \ 2121cb0ef41Sopenharmony_ci test/test-osx-select.c \ 2131cb0ef41Sopenharmony_ci test/test-pass-always.c \ 2141cb0ef41Sopenharmony_ci test/test-ping-pong.c \ 2151cb0ef41Sopenharmony_ci test/test-pipe-bind-error.c \ 2161cb0ef41Sopenharmony_ci test/test-pipe-connect-error.c \ 2171cb0ef41Sopenharmony_ci test/test-pipe-connect-multiple.c \ 2181cb0ef41Sopenharmony_ci test/test-pipe-connect-prepare.c \ 2191cb0ef41Sopenharmony_ci test/test-pipe-getsockname.c \ 2201cb0ef41Sopenharmony_ci test/test-pipe-pending-instances.c \ 2211cb0ef41Sopenharmony_ci test/test-pipe-sendmsg.c \ 2221cb0ef41Sopenharmony_ci test/test-pipe-server-close.c \ 2231cb0ef41Sopenharmony_ci test/test-pipe-close-stdout-read-stdin.c \ 2241cb0ef41Sopenharmony_ci test/test-pipe-set-non-blocking.c \ 2251cb0ef41Sopenharmony_ci test/test-pipe-set-fchmod.c \ 2261cb0ef41Sopenharmony_ci test/test-platform-output.c \ 2271cb0ef41Sopenharmony_ci test/test-poll.c \ 2281cb0ef41Sopenharmony_ci test/test-poll-close.c \ 2291cb0ef41Sopenharmony_ci test/test-poll-close-doesnt-corrupt-stack.c \ 2301cb0ef41Sopenharmony_ci test/test-poll-closesocket.c \ 2311cb0ef41Sopenharmony_ci test/test-poll-multiple-handles.c \ 2321cb0ef41Sopenharmony_ci test/test-poll-oob.c \ 2331cb0ef41Sopenharmony_ci test/test-process-priority.c \ 2341cb0ef41Sopenharmony_ci test/test-process-title.c \ 2351cb0ef41Sopenharmony_ci test/test-process-title-threadsafe.c \ 2361cb0ef41Sopenharmony_ci test/test-queue-foreach-delete.c \ 2371cb0ef41Sopenharmony_ci test/test-random.c \ 2381cb0ef41Sopenharmony_ci test/test-readable-on-eof.c \ 2391cb0ef41Sopenharmony_ci test/test-ref.c \ 2401cb0ef41Sopenharmony_ci test/test-run-nowait.c \ 2411cb0ef41Sopenharmony_ci test/test-run-once.c \ 2421cb0ef41Sopenharmony_ci test/test-semaphore.c \ 2431cb0ef41Sopenharmony_ci test/test-shutdown-close.c \ 2441cb0ef41Sopenharmony_ci test/test-shutdown-eof.c \ 2451cb0ef41Sopenharmony_ci test/test-shutdown-simultaneous.c \ 2461cb0ef41Sopenharmony_ci test/test-shutdown-twice.c \ 2471cb0ef41Sopenharmony_ci test/test-signal-multiple-loops.c \ 2481cb0ef41Sopenharmony_ci test/test-signal-pending-on-close.c \ 2491cb0ef41Sopenharmony_ci test/test-signal.c \ 2501cb0ef41Sopenharmony_ci test/test-socket-buffer-size.c \ 2511cb0ef41Sopenharmony_ci test/test-spawn.c \ 2521cb0ef41Sopenharmony_ci test/test-stdio-over-pipes.c \ 2531cb0ef41Sopenharmony_ci test/test-strscpy.c \ 2541cb0ef41Sopenharmony_ci test/test-strtok.c \ 2551cb0ef41Sopenharmony_ci test/test-tcp-alloc-cb-fail.c \ 2561cb0ef41Sopenharmony_ci test/test-tcp-bind-error.c \ 2571cb0ef41Sopenharmony_ci test/test-tcp-bind6-error.c \ 2581cb0ef41Sopenharmony_ci test/test-tcp-close-accept.c \ 2591cb0ef41Sopenharmony_ci test/test-tcp-close-while-connecting.c \ 2601cb0ef41Sopenharmony_ci test/test-tcp-close-after-read-timeout.c \ 2611cb0ef41Sopenharmony_ci test/test-tcp-close.c \ 2621cb0ef41Sopenharmony_ci test/test-tcp-close-reset.c \ 2631cb0ef41Sopenharmony_ci test/test-tcp-create-socket-early.c \ 2641cb0ef41Sopenharmony_ci test/test-tcp-connect-error-after-write.c \ 2651cb0ef41Sopenharmony_ci test/test-tcp-connect-error.c \ 2661cb0ef41Sopenharmony_ci test/test-tcp-connect-timeout.c \ 2671cb0ef41Sopenharmony_ci test/test-tcp-connect6-error.c \ 2681cb0ef41Sopenharmony_ci test/test-tcp-flags.c \ 2691cb0ef41Sopenharmony_ci test/test-tcp-open.c \ 2701cb0ef41Sopenharmony_ci test/test-tcp-read-stop.c \ 2711cb0ef41Sopenharmony_ci test/test-tcp-read-stop-start.c \ 2721cb0ef41Sopenharmony_ci test/test-tcp-rst.c \ 2731cb0ef41Sopenharmony_ci test/test-tcp-shutdown-after-write.c \ 2741cb0ef41Sopenharmony_ci test/test-tcp-unexpected-read.c \ 2751cb0ef41Sopenharmony_ci test/test-tcp-oob.c \ 2761cb0ef41Sopenharmony_ci test/test-tcp-write-to-half-open-connection.c \ 2771cb0ef41Sopenharmony_ci test/test-tcp-write-after-connect.c \ 2781cb0ef41Sopenharmony_ci test/test-tcp-writealot.c \ 2791cb0ef41Sopenharmony_ci test/test-tcp-write-fail.c \ 2801cb0ef41Sopenharmony_ci test/test-tcp-try-write.c \ 2811cb0ef41Sopenharmony_ci test/test-tcp-try-write-error.c \ 2821cb0ef41Sopenharmony_ci test/test-tcp-write-queue-order.c \ 2831cb0ef41Sopenharmony_ci test/test-test-macros.c \ 2841cb0ef41Sopenharmony_ci test/test-thread-equal.c \ 2851cb0ef41Sopenharmony_ci test/test-thread.c \ 2861cb0ef41Sopenharmony_ci test/test-threadpool-cancel.c \ 2871cb0ef41Sopenharmony_ci test/test-threadpool.c \ 2881cb0ef41Sopenharmony_ci test/test-timer-again.c \ 2891cb0ef41Sopenharmony_ci test/test-timer-from-check.c \ 2901cb0ef41Sopenharmony_ci test/test-timer.c \ 2911cb0ef41Sopenharmony_ci test/test-tmpdir.c \ 2921cb0ef41Sopenharmony_ci test/test-tty-duplicate-key.c \ 2931cb0ef41Sopenharmony_ci test/test-tty-escape-sequence-processing.c \ 2941cb0ef41Sopenharmony_ci test/test-tty.c \ 2951cb0ef41Sopenharmony_ci test/test-udp-alloc-cb-fail.c \ 2961cb0ef41Sopenharmony_ci test/test-udp-bind.c \ 2971cb0ef41Sopenharmony_ci test/test-udp-connect.c \ 2981cb0ef41Sopenharmony_ci test/test-udp-connect6.c \ 2991cb0ef41Sopenharmony_ci test/test-udp-create-socket-early.c \ 3001cb0ef41Sopenharmony_ci test/test-udp-dgram-too-big.c \ 3011cb0ef41Sopenharmony_ci test/test-udp-ipv6.c \ 3021cb0ef41Sopenharmony_ci test/test-udp-mmsg.c \ 3031cb0ef41Sopenharmony_ci test/test-udp-multicast-interface.c \ 3041cb0ef41Sopenharmony_ci test/test-udp-multicast-interface6.c \ 3051cb0ef41Sopenharmony_ci test/test-udp-multicast-join.c \ 3061cb0ef41Sopenharmony_ci test/test-udp-multicast-join6.c \ 3071cb0ef41Sopenharmony_ci test/test-udp-multicast-ttl.c \ 3081cb0ef41Sopenharmony_ci test/test-udp-open.c \ 3091cb0ef41Sopenharmony_ci test/test-udp-options.c \ 3101cb0ef41Sopenharmony_ci test/test-udp-send-and-recv.c \ 3111cb0ef41Sopenharmony_ci test/test-udp-send-hang-loop.c \ 3121cb0ef41Sopenharmony_ci test/test-udp-send-immediate.c \ 3131cb0ef41Sopenharmony_ci test/test-udp-sendmmsg-error.c \ 3141cb0ef41Sopenharmony_ci test/test-udp-send-unreachable.c \ 3151cb0ef41Sopenharmony_ci test/test-udp-try-send.c \ 3161cb0ef41Sopenharmony_ci test/test-uname.c \ 3171cb0ef41Sopenharmony_ci test/test-walk-handles.c \ 3181cb0ef41Sopenharmony_ci test/test-watcher-cross-stop.c 3191cb0ef41Sopenharmony_citest_run_tests_LDADD = libuv.la 3201cb0ef41Sopenharmony_ci 3211cb0ef41Sopenharmony_ciif WINNT 3221cb0ef41Sopenharmony_citest_run_tests_SOURCES += test/runner-win.c \ 3231cb0ef41Sopenharmony_ci test/runner-win.h 3241cb0ef41Sopenharmony_cielse 3251cb0ef41Sopenharmony_citest_run_tests_SOURCES += test/runner-unix.c \ 3261cb0ef41Sopenharmony_ci test/runner-unix.h 3271cb0ef41Sopenharmony_ciendif 3281cb0ef41Sopenharmony_ci 3291cb0ef41Sopenharmony_ciif AIX 3301cb0ef41Sopenharmony_citest_run_tests_CFLAGS += -D_ALL_SOURCE \ 3311cb0ef41Sopenharmony_ci -D_XOPEN_SOURCE=500 \ 3321cb0ef41Sopenharmony_ci -D_LINUX_SOURCE_COMPAT 3331cb0ef41Sopenharmony_ciendif 3341cb0ef41Sopenharmony_ci 3351cb0ef41Sopenharmony_ciif OS400 3361cb0ef41Sopenharmony_citest_run_tests_CFLAGS += -D_ALL_SOURCE \ 3371cb0ef41Sopenharmony_ci -D_XOPEN_SOURCE=500 \ 3381cb0ef41Sopenharmony_ci -D_LINUX_SOURCE_COMPAT 3391cb0ef41Sopenharmony_ciendif 3401cb0ef41Sopenharmony_ci 3411cb0ef41Sopenharmony_ciif HAIKU 3421cb0ef41Sopenharmony_citest_run_tests_CFLAGS += -D_BSD_SOURCE 3431cb0ef41Sopenharmony_ciendif 3441cb0ef41Sopenharmony_ci 3451cb0ef41Sopenharmony_ciif LINUX 3461cb0ef41Sopenharmony_citest_run_tests_CFLAGS += -D_GNU_SOURCE 3471cb0ef41Sopenharmony_ciendif 3481cb0ef41Sopenharmony_ci 3491cb0ef41Sopenharmony_ciif SUNOS 3501cb0ef41Sopenharmony_citest_run_tests_CFLAGS += -D__EXTENSIONS__ \ 3511cb0ef41Sopenharmony_ci -D_XOPEN_SOURCE=500 \ 3521cb0ef41Sopenharmony_ci -D_REENTRANT 3531cb0ef41Sopenharmony_ciendif 3541cb0ef41Sopenharmony_ci 3551cb0ef41Sopenharmony_ciif OS390 3561cb0ef41Sopenharmony_citest_run_tests_CFLAGS += -D_ISOC99_SOURCE \ 3571cb0ef41Sopenharmony_ci -D_UNIX03_THREADS \ 3581cb0ef41Sopenharmony_ci -D_UNIX03_SOURCE \ 3591cb0ef41Sopenharmony_ci -D_OPEN_SYS_IF_EXT=1 \ 3601cb0ef41Sopenharmony_ci -D_OPEN_SYS_SOCK_IPV6 \ 3611cb0ef41Sopenharmony_ci -D_OPEN_MSGQ_EXT \ 3621cb0ef41Sopenharmony_ci -D_XOPEN_SOURCE_EXTENDED \ 3631cb0ef41Sopenharmony_ci -D_ALL_SOURCE \ 3641cb0ef41Sopenharmony_ci -D_LARGE_TIME_API \ 3651cb0ef41Sopenharmony_ci -D_OPEN_SYS_FILE_EXT \ 3661cb0ef41Sopenharmony_ci -DPATH_MAX=255 \ 3671cb0ef41Sopenharmony_ci -qCHARS=signed \ 3681cb0ef41Sopenharmony_ci -qXPLINK \ 3691cb0ef41Sopenharmony_ci -qFLOAT=IEEE 3701cb0ef41Sopenharmony_ciendif 3711cb0ef41Sopenharmony_ci 3721cb0ef41Sopenharmony_ciif AIX 3731cb0ef41Sopenharmony_cilibuv_la_CFLAGS += -D_ALL_SOURCE \ 3741cb0ef41Sopenharmony_ci -D_XOPEN_SOURCE=500 \ 3751cb0ef41Sopenharmony_ci -D_LINUX_SOURCE_COMPAT \ 3761cb0ef41Sopenharmony_ci -D_THREAD_SAFE \ 3771cb0ef41Sopenharmony_ci -DHAVE_SYS_AHAFS_EVPRODS_H 3781cb0ef41Sopenharmony_ciuvinclude_HEADERS += include/uv/aix.h 3791cb0ef41Sopenharmony_cilibuv_la_SOURCES += src/unix/aix.c src/unix/aix-common.c 3801cb0ef41Sopenharmony_ciendif 3811cb0ef41Sopenharmony_ci 3821cb0ef41Sopenharmony_ciif OS400 3831cb0ef41Sopenharmony_cilibuv_la_CFLAGS += -D_ALL_SOURCE \ 3841cb0ef41Sopenharmony_ci -D_XOPEN_SOURCE=500 \ 3851cb0ef41Sopenharmony_ci -D_LINUX_SOURCE_COMPAT \ 3861cb0ef41Sopenharmony_ci -D_THREAD_SAFE 3871cb0ef41Sopenharmony_ciuvinclude_HEADERS += include/uv/posix.h 3881cb0ef41Sopenharmony_cilibuv_la_SOURCES += src/unix/aix-common.c \ 3891cb0ef41Sopenharmony_ci src/unix/ibmi.c \ 3901cb0ef41Sopenharmony_ci src/unix/posix-poll.c \ 3911cb0ef41Sopenharmony_ci src/unix/no-fsevents.c 3921cb0ef41Sopenharmony_ciendif 3931cb0ef41Sopenharmony_ci 3941cb0ef41Sopenharmony_ciif ANDROID 3951cb0ef41Sopenharmony_cilibuv_la_CFLAGS += -D_GNU_SOURCE 3961cb0ef41Sopenharmony_cilibuv_la_SOURCES += src/unix/pthread-fixes.c 3971cb0ef41Sopenharmony_ciendif 3981cb0ef41Sopenharmony_ci 3991cb0ef41Sopenharmony_ciif CYGWIN 4001cb0ef41Sopenharmony_ciuvinclude_HEADERS += include/uv/posix.h 4011cb0ef41Sopenharmony_cilibuv_la_CFLAGS += -D_GNU_SOURCE 4021cb0ef41Sopenharmony_cilibuv_la_SOURCES += src/unix/cygwin.c \ 4031cb0ef41Sopenharmony_ci src/unix/bsd-ifaddrs.c \ 4041cb0ef41Sopenharmony_ci src/unix/no-fsevents.c \ 4051cb0ef41Sopenharmony_ci src/unix/no-proctitle.c \ 4061cb0ef41Sopenharmony_ci src/unix/posix-hrtime.c \ 4071cb0ef41Sopenharmony_ci src/unix/posix-poll.c \ 4081cb0ef41Sopenharmony_ci src/unix/procfs-exepath.c \ 4091cb0ef41Sopenharmony_ci src/unix/sysinfo-loadavg.c \ 4101cb0ef41Sopenharmony_ci src/unix/sysinfo-memory.c 4111cb0ef41Sopenharmony_ciendif 4121cb0ef41Sopenharmony_ci 4131cb0ef41Sopenharmony_ciif DARWIN 4141cb0ef41Sopenharmony_ciuvinclude_HEADERS += include/uv/darwin.h 4151cb0ef41Sopenharmony_cilibuv_la_CFLAGS += -D_DARWIN_USE_64_BIT_INODE=1 4161cb0ef41Sopenharmony_cilibuv_la_CFLAGS += -D_DARWIN_UNLIMITED_SELECT=1 4171cb0ef41Sopenharmony_cilibuv_la_SOURCES += src/unix/bsd-ifaddrs.c \ 4181cb0ef41Sopenharmony_ci src/unix/darwin-proctitle.c \ 4191cb0ef41Sopenharmony_ci src/unix/darwin-stub.h \ 4201cb0ef41Sopenharmony_ci src/unix/darwin.c \ 4211cb0ef41Sopenharmony_ci src/unix/fsevents.c \ 4221cb0ef41Sopenharmony_ci src/unix/kqueue.c \ 4231cb0ef41Sopenharmony_ci src/unix/proctitle.c \ 4241cb0ef41Sopenharmony_ci src/unix/random-getentropy.c 4251cb0ef41Sopenharmony_citest_run_tests_LDFLAGS += -lutil 4261cb0ef41Sopenharmony_ciendif 4271cb0ef41Sopenharmony_ci 4281cb0ef41Sopenharmony_ciif DRAGONFLY 4291cb0ef41Sopenharmony_ciuvinclude_HEADERS += include/uv/bsd.h 4301cb0ef41Sopenharmony_cilibuv_la_SOURCES += src/unix/bsd-ifaddrs.c \ 4311cb0ef41Sopenharmony_ci src/unix/bsd-proctitle.c \ 4321cb0ef41Sopenharmony_ci src/unix/freebsd.c \ 4331cb0ef41Sopenharmony_ci src/unix/kqueue.c \ 4341cb0ef41Sopenharmony_ci src/unix/posix-hrtime.c 4351cb0ef41Sopenharmony_citest_run_tests_LDFLAGS += -lutil 4361cb0ef41Sopenharmony_ciendif 4371cb0ef41Sopenharmony_ci 4381cb0ef41Sopenharmony_ciif FREEBSD 4391cb0ef41Sopenharmony_ciuvinclude_HEADERS += include/uv/bsd.h 4401cb0ef41Sopenharmony_cilibuv_la_SOURCES += src/unix/bsd-ifaddrs.c \ 4411cb0ef41Sopenharmony_ci src/unix/bsd-proctitle.c \ 4421cb0ef41Sopenharmony_ci src/unix/freebsd.c \ 4431cb0ef41Sopenharmony_ci src/unix/kqueue.c \ 4441cb0ef41Sopenharmony_ci src/unix/posix-hrtime.c \ 4451cb0ef41Sopenharmony_ci src/unix/random-getrandom.c 4461cb0ef41Sopenharmony_citest_run_tests_LDFLAGS += -lutil 4471cb0ef41Sopenharmony_ciendif 4481cb0ef41Sopenharmony_ci 4491cb0ef41Sopenharmony_ciif HAIKU 4501cb0ef41Sopenharmony_ciuvinclude_HEADERS += include/uv/posix.h 4511cb0ef41Sopenharmony_cilibuv_la_CFLAGS += -D_BSD_SOURCE 4521cb0ef41Sopenharmony_cilibuv_la_SOURCES += src/unix/bsd-ifaddrs.c \ 4531cb0ef41Sopenharmony_ci src/unix/haiku.c \ 4541cb0ef41Sopenharmony_ci src/unix/no-fsevents.c \ 4551cb0ef41Sopenharmony_ci src/unix/no-proctitle.c \ 4561cb0ef41Sopenharmony_ci src/unix/posix-hrtime.c \ 4571cb0ef41Sopenharmony_ci src/unix/posix-poll.c 4581cb0ef41Sopenharmony_ciendif 4591cb0ef41Sopenharmony_ci 4601cb0ef41Sopenharmony_ciif HURD 4611cb0ef41Sopenharmony_ciuvinclude_HEADERS += include/uv/posix.h 4621cb0ef41Sopenharmony_cilibuv_la_SOURCES += src/unix/bsd-ifaddrs.c \ 4631cb0ef41Sopenharmony_ci src/unix/no-fsevents.c \ 4641cb0ef41Sopenharmony_ci src/unix/no-proctitle.c \ 4651cb0ef41Sopenharmony_ci src/unix/posix-hrtime.c \ 4661cb0ef41Sopenharmony_ci src/unix/posix-poll.c \ 4671cb0ef41Sopenharmony_ci src/unix/hurd.c 4681cb0ef41Sopenharmony_ciendif 4691cb0ef41Sopenharmony_ci 4701cb0ef41Sopenharmony_ciif KFREEBSD 4711cb0ef41Sopenharmony_cilibuv_la_CFLAGS += -D_GNU_SOURCE 4721cb0ef41Sopenharmony_ciendif 4731cb0ef41Sopenharmony_ci 4741cb0ef41Sopenharmony_ciif LINUX 4751cb0ef41Sopenharmony_ciuvinclude_HEADERS += include/uv/linux.h 4761cb0ef41Sopenharmony_cilibuv_la_CFLAGS += -D_GNU_SOURCE 4771cb0ef41Sopenharmony_cilibuv_la_SOURCES += src/unix/linux-core.c \ 4781cb0ef41Sopenharmony_ci src/unix/linux-inotify.c \ 4791cb0ef41Sopenharmony_ci src/unix/linux-syscalls.c \ 4801cb0ef41Sopenharmony_ci src/unix/linux-syscalls.h \ 4811cb0ef41Sopenharmony_ci src/unix/procfs-exepath.c \ 4821cb0ef41Sopenharmony_ci src/unix/proctitle.c \ 4831cb0ef41Sopenharmony_ci src/unix/random-getrandom.c \ 4841cb0ef41Sopenharmony_ci src/unix/random-sysctl-linux.c \ 4851cb0ef41Sopenharmony_ci src/unix/epoll.c 4861cb0ef41Sopenharmony_citest_run_tests_LDFLAGS += -lutil 4871cb0ef41Sopenharmony_ciendif 4881cb0ef41Sopenharmony_ci 4891cb0ef41Sopenharmony_ciif MSYS 4901cb0ef41Sopenharmony_cilibuv_la_CFLAGS += -D_GNU_SOURCE 4911cb0ef41Sopenharmony_cilibuv_la_SOURCES += src/unix/cygwin.c \ 4921cb0ef41Sopenharmony_ci src/unix/bsd-ifaddrs.c \ 4931cb0ef41Sopenharmony_ci src/unix/no-fsevents.c \ 4941cb0ef41Sopenharmony_ci src/unix/no-proctitle.c \ 4951cb0ef41Sopenharmony_ci src/unix/posix-hrtime.c \ 4961cb0ef41Sopenharmony_ci src/unix/posix-poll.c \ 4971cb0ef41Sopenharmony_ci src/unix/procfs-exepath.c \ 4981cb0ef41Sopenharmony_ci src/unix/sysinfo-loadavg.c \ 4991cb0ef41Sopenharmony_ci src/unix/sysinfo-memory.c 5001cb0ef41Sopenharmony_ciendif 5011cb0ef41Sopenharmony_ci 5021cb0ef41Sopenharmony_ciif NETBSD 5031cb0ef41Sopenharmony_ciuvinclude_HEADERS += include/uv/bsd.h 5041cb0ef41Sopenharmony_cilibuv_la_SOURCES += src/unix/bsd-ifaddrs.c \ 5051cb0ef41Sopenharmony_ci src/unix/bsd-proctitle.c \ 5061cb0ef41Sopenharmony_ci src/unix/kqueue.c \ 5071cb0ef41Sopenharmony_ci src/unix/netbsd.c \ 5081cb0ef41Sopenharmony_ci src/unix/posix-hrtime.c 5091cb0ef41Sopenharmony_citest_run_tests_LDFLAGS += -lutil 5101cb0ef41Sopenharmony_ciendif 5111cb0ef41Sopenharmony_ci 5121cb0ef41Sopenharmony_ciif OPENBSD 5131cb0ef41Sopenharmony_ciuvinclude_HEADERS += include/uv/bsd.h 5141cb0ef41Sopenharmony_cilibuv_la_SOURCES += src/unix/bsd-ifaddrs.c \ 5151cb0ef41Sopenharmony_ci src/unix/bsd-proctitle.c \ 5161cb0ef41Sopenharmony_ci src/unix/kqueue.c \ 5171cb0ef41Sopenharmony_ci src/unix/openbsd.c \ 5181cb0ef41Sopenharmony_ci src/unix/posix-hrtime.c \ 5191cb0ef41Sopenharmony_ci src/unix/random-getentropy.c 5201cb0ef41Sopenharmony_citest_run_tests_LDFLAGS += -lutil 5211cb0ef41Sopenharmony_ciendif 5221cb0ef41Sopenharmony_ci 5231cb0ef41Sopenharmony_ciif SUNOS 5241cb0ef41Sopenharmony_ciuvinclude_HEADERS += include/uv/sunos.h 5251cb0ef41Sopenharmony_cilibuv_la_CFLAGS += -D__EXTENSIONS__ \ 5261cb0ef41Sopenharmony_ci -D_XOPEN_SOURCE=500 \ 5271cb0ef41Sopenharmony_ci -D_REENTRANT 5281cb0ef41Sopenharmony_cilibuv_la_SOURCES += src/unix/no-proctitle.c \ 5291cb0ef41Sopenharmony_ci src/unix/sunos.c 5301cb0ef41Sopenharmony_ciendif 5311cb0ef41Sopenharmony_ci 5321cb0ef41Sopenharmony_ciif OS390 5331cb0ef41Sopenharmony_cilibuv_la_CFLAGS += -D_UNIX03_THREADS \ 5341cb0ef41Sopenharmony_ci -D_UNIX03_SOURCE \ 5351cb0ef41Sopenharmony_ci -D_OPEN_SYS_IF_EXT=1 \ 5361cb0ef41Sopenharmony_ci -D_OPEN_MSGQ_EXT \ 5371cb0ef41Sopenharmony_ci -D_XOPEN_SOURCE_EXTENDED \ 5381cb0ef41Sopenharmony_ci -D_ALL_SOURCE \ 5391cb0ef41Sopenharmony_ci -D_LARGE_TIME_API \ 5401cb0ef41Sopenharmony_ci -D_OPEN_SYS_SOCK_EXT3 \ 5411cb0ef41Sopenharmony_ci -D_OPEN_SYS_SOCK_IPV6 \ 5421cb0ef41Sopenharmony_ci -D_OPEN_SYS_FILE_EXT \ 5431cb0ef41Sopenharmony_ci -DUV_PLATFORM_SEM_T=int \ 5441cb0ef41Sopenharmony_ci -DPATH_MAX=255 \ 5451cb0ef41Sopenharmony_ci -qCHARS=signed \ 5461cb0ef41Sopenharmony_ci -qXPLINK \ 5471cb0ef41Sopenharmony_ci -qFLOAT=IEEE 5481cb0ef41Sopenharmony_cilibuv_la_LDFLAGS += -qXPLINK 5491cb0ef41Sopenharmony_cilibuv_la_SOURCES += src/unix/pthread-fixes.c \ 5501cb0ef41Sopenharmony_ci src/unix/os390.c \ 5511cb0ef41Sopenharmony_ci src/unix/os390-syscalls.c \ 5521cb0ef41Sopenharmony_ci src/unix/proctitle.c 5531cb0ef41Sopenharmony_ciendif 5541cb0ef41Sopenharmony_ci 5551cb0ef41Sopenharmony_cipkgconfigdir = $(libdir)/pkgconfig 5561cb0ef41Sopenharmony_cipkgconfig_DATA = @PACKAGE_NAME@.pc 557