From 36972f8ca14aabc0984c0ad87e5d26bac1ce3f15 Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Mon, 26 May 2014 09:48:02 +0300 Subject: mingw/msys fixes --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 479e14e..322c4a5 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,13 @@ LDFLAGS += CPPFLAGS += -Isrc LDLIBS += -luv +PLATFORM = $(shell uname -s | tr [A-Z] [a-z]) + +ifeq ($(findstring mingw32,$(PLATFORM)),mingw32) +LDLIBS += -lws2_32 -lpsapi -liphlpapi +else +endif + all: libuvh.a examples .PHONY: examples -- cgit v1.2.3