- Add platform_compat.h with Windows implementations of: * gettimeofday() using GetSystemTimeAsFileTime * poll() using select() * pipe() using _pipe() * fcntl() using ioctlsocket for O_NONBLOCK * pollfd structure and POLL* constants * strcasecmp/strncasecmp macros - Update debug_config.c and u_async.c/h to use platform_compat.h - Remove POSIX-specific headers (arpa/inet.h, sys/time.h, etc.) - All 22 tests pass on Linux - Fixes build errors on Windows MSYS2
29 lines
479 B
Makefile
29 lines
479 B
Makefile
noinst_LIBRARIES = libuasync.a
|
|
|
|
libuasync_a_SOURCES = \
|
|
u_async.c \
|
|
u_async.h \
|
|
ll_queue.h \
|
|
ll_queue.c \
|
|
debug_config.c \
|
|
debug_config.h \
|
|
timeout_heap.c \
|
|
timeout_heap.h \
|
|
memory_pool.c \
|
|
memory_pool.h \
|
|
sha256.c \
|
|
sha256.h \
|
|
socket_compat.c \
|
|
socket_compat.h \
|
|
platform_compat.h
|
|
|
|
libuasync_a_CFLAGS = \
|
|
-D_ISOC99_SOURCE \
|
|
-DDEBUG_OUTPUT_STDERR \
|
|
-I$(top_srcdir)/src \
|
|
-I$(top_srcdir)/lib
|
|
|
|
# Clean build directory
|
|
clean-local:
|
|
-rm -rf $(top_builddir)/build
|