From 3309c7258997db7b150ae04a72d9351563e3aa2f Mon Sep 17 00:00:00 2001
From: Tommy Olofsson <tommy.olofsson.90@gmail.com>
Date: Sun, 20 Apr 2014 14:56:15 +0200
Subject: [PATCH] C library and copy functions works on Windows as well.

---
 lib/c/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lib/c/Makefile b/lib/c/Makefile
index b60a962..d0f9d53 100644
--- a/lib/c/Makefile
+++ b/lib/c/Makefile
@@ -18,6 +18,13 @@ else ifeq ($(UNAME_S),Darwin)
   LDFLAGS=-L.
   LDLIBS=-llabcomm
   MAKESHARED=clang -o $1 -shared -Wl,-install_name,$2 $3 -lc
+else if $(findstring(CYGWIN,$(UNAME_S))
+  CFLAGS=-std=c99 -g -Wall -Werror -O3  -I. -Itest
+  CC=$(CROSS_COMPILE)gcc
+  LD=$(CROSS_COMPILE)ld
+  LDFLAGS=-L.
+  LDLIBS=-llabcomm -lrt
+  ALL_DEPS:=$(filter-out %.so.1, $(ALL_DEPS)) # No -fPIC supported in windows?
 else
   $(error Unknown system $(UNAME_S))
 endif
-- 
GitLab