node/deps/uv/config-mingw.mk

49 lines
1.8 KiB
Makefile
Raw Normal View History

2011-05-13 10:16:40 +08:00
# Copyright Joyent, Inc. and other Node contributors. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
# Use make -f Makefile.gcc PREFIX=i686-w64-mingw32-
# for cross compilation
2011-07-15 05:28:52 +08:00
CC = $(PREFIX)gcc
AR = $(PREFIX)ar
2011-05-13 10:16:40 +08:00
E=.exe
2012-08-07 07:36:31 +08:00
CFLAGS=$(CPPFLAGS) -g --std=gnu89 -D_WIN32_WINNT=0x0600
2012-12-14 03:23:01 +08:00
LDFLAGS=-lm
2011-05-13 10:16:40 +08:00
2013-02-21 04:12:18 +08:00
WIN_SRCS=$(wildcard $(SRCDIR)/src/win/*.c)
2011-07-19 17:47:15 +08:00
WIN_OBJS=$(WIN_SRCS:.c=.o)
2011-05-13 10:16:40 +08:00
RUNNER_CFLAGS=$(CFLAGS) -D_GNU_SOURCE # Need _GNU_SOURCE for strdup?
2012-12-14 03:23:01 +08:00
RUNNER_LDFLAGS=$(LDFLAGS)
2012-03-10 01:20:29 +08:00
RUNNER_LIBS=-lws2_32 -lpsapi -liphlpapi
2011-05-13 10:16:40 +08:00
RUNNER_SRC=test/runner-win.c
2013-03-28 07:28:45 +08:00
libuv.a: $(WIN_OBJS) src/fs-poll.o src/inet.o src/uv-common.o src/version.o
2012-10-11 20:36:23 +08:00
$(AR) rcs $@ $^
2011-05-13 10:16:40 +08:00
src/%.o: src/%.c include/uv.h include/uv-private/uv-win.h
$(CC) $(CFLAGS) -c $< -o $@
2011-05-13 10:16:40 +08:00
src/win/%.o: src/win/%.c include/uv.h include/uv-private/uv-win.h src/win/internal.h
$(CC) $(CFLAGS) -o $@ -c $<
2011-05-13 10:16:40 +08:00
clean-platform:
2011-07-21 00:06:16 +08:00
-rm -f src/win/*.o