|
@ -55,7 +55,6 @@ OBJS += src/uv-common.o |
|
|
OBJS += src/inet.o |
|
|
OBJS += src/inet.o |
|
|
|
|
|
|
|
|
ifeq (SunOS,$(uname_S)) |
|
|
ifeq (SunOS,$(uname_S)) |
|
|
EV_CONFIG=config_sunos.h |
|
|
|
|
|
CPPFLAGS += -D__EXTENSIONS__ -D_XOPEN_SOURCE=500 |
|
|
CPPFLAGS += -D__EXTENSIONS__ -D_XOPEN_SOURCE=500 |
|
|
LINKFLAGS+=-lkstat -lnsl -lsendfile -lsocket |
|
|
LINKFLAGS+=-lkstat -lnsl -lsendfile -lsocket |
|
|
# Library dependencies are not transitive.
|
|
|
# Library dependencies are not transitive.
|
|
@ -64,14 +63,12 @@ OBJS += src/unix/sunos.o |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
ifeq (AIX,$(uname_S)) |
|
|
ifeq (AIX,$(uname_S)) |
|
|
EV_CONFIG=config_aix.h |
|
|
|
|
|
CPPFLAGS += -Isrc/ares/config_aix -D_ALL_SOURCE -D_XOPEN_SOURCE=500 |
|
|
CPPFLAGS += -Isrc/ares/config_aix -D_ALL_SOURCE -D_XOPEN_SOURCE=500 |
|
|
LINKFLAGS+= -lperfstat |
|
|
LINKFLAGS+= -lperfstat |
|
|
OBJS += src/unix/aix.o |
|
|
OBJS += src/unix/aix.o |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
ifeq (Darwin,$(uname_S)) |
|
|
ifeq (Darwin,$(uname_S)) |
|
|
EV_CONFIG=config_darwin.h |
|
|
|
|
|
CPPFLAGS += -D_DARWIN_USE_64_BIT_INODE=1 |
|
|
CPPFLAGS += -D_DARWIN_USE_64_BIT_INODE=1 |
|
|
LINKFLAGS+=-framework CoreServices -dynamiclib -install_name "@rpath/libuv.dylib" |
|
|
LINKFLAGS+=-framework CoreServices -dynamiclib -install_name "@rpath/libuv.dylib" |
|
|
SOEXT = dylib |
|
|
SOEXT = dylib |
|
@ -81,7 +78,6 @@ OBJS += src/unix/fsevents.o |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
ifeq (Linux,$(uname_S)) |
|
|
ifeq (Linux,$(uname_S)) |
|
|
EV_CONFIG=config_linux.h |
|
|
|
|
|
CSTDFLAG += -D_GNU_SOURCE |
|
|
CSTDFLAG += -D_GNU_SOURCE |
|
|
LINKFLAGS+=-ldl -lrt |
|
|
LINKFLAGS+=-ldl -lrt |
|
|
RUNNER_CFLAGS += -D_GNU_SOURCE |
|
|
RUNNER_CFLAGS += -D_GNU_SOURCE |
|
@ -91,35 +87,30 @@ OBJS += src/unix/linux/linux-core.o \ |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
ifeq (FreeBSD,$(uname_S)) |
|
|
ifeq (FreeBSD,$(uname_S)) |
|
|
EV_CONFIG=config_freebsd.h |
|
|
|
|
|
LINKFLAGS+=-lkvm |
|
|
LINKFLAGS+=-lkvm |
|
|
OBJS += src/unix/freebsd.o |
|
|
OBJS += src/unix/freebsd.o |
|
|
OBJS += src/unix/kqueue.o |
|
|
OBJS += src/unix/kqueue.o |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
ifeq (DragonFly,$(uname_S)) |
|
|
ifeq (DragonFly,$(uname_S)) |
|
|
EV_CONFIG=config_freebsd.h |
|
|
LINKFLAGS+=-lkvm |
|
|
LINKFLAGS+= |
|
|
|
|
|
OBJS += src/unix/freebsd.o |
|
|
OBJS += src/unix/freebsd.o |
|
|
OBJS += src/unix/kqueue.o |
|
|
OBJS += src/unix/kqueue.o |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
ifeq (NetBSD,$(uname_S)) |
|
|
ifeq (NetBSD,$(uname_S)) |
|
|
EV_CONFIG=config_netbsd.h |
|
|
|
|
|
LINKFLAGS+=-lkvm |
|
|
LINKFLAGS+=-lkvm |
|
|
OBJS += src/unix/netbsd.o |
|
|
OBJS += src/unix/netbsd.o |
|
|
OBJS += src/unix/kqueue.o |
|
|
OBJS += src/unix/kqueue.o |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
ifeq (OpenBSD,$(uname_S)) |
|
|
ifeq (OpenBSD,$(uname_S)) |
|
|
EV_CONFIG=config_openbsd.h |
|
|
|
|
|
LINKFLAGS+=-lkvm |
|
|
LINKFLAGS+=-lkvm |
|
|
OBJS += src/unix/openbsd.o |
|
|
OBJS += src/unix/openbsd.o |
|
|
OBJS += src/unix/kqueue.o |
|
|
OBJS += src/unix/kqueue.o |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
ifneq (,$(findstring CYGWIN,$(uname_S))) |
|
|
ifneq (,$(findstring CYGWIN,$(uname_S))) |
|
|
EV_CONFIG=config_cygwin.h |
|
|
|
|
|
# We drop the --std=c89, it hides CLOCK_MONOTONIC on cygwin
|
|
|
# We drop the --std=c89, it hides CLOCK_MONOTONIC on cygwin
|
|
|
CSTDFLAG = -D_GNU_SOURCE |
|
|
CSTDFLAG = -D_GNU_SOURCE |
|
|
LINKFLAGS+= |
|
|
LINKFLAGS+= |
|
|