From 3946217f6bb829ff38dda2018f5de42513264abb Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sun, 22 Jan 2012 23:41:21 +0100 Subject: [PATCH] Makefile: Special WIN section --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Makefile b/Makefile index b6b45ab..828e0ef 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,13 @@ # make MAC=1 DOUBLE=1 +# Do you compile on Windows instead of Linux? Please note that the +# performance may not be optimal. +# (XXX: For now, only the mingw target is supported on Windows. +# Patches for others are welcome!) + +# WIN=1 + # Do you compile on MacOS/X instead of Linux? Please note that the # performance may not be optimal. # (XXX: We are looking for volunteers contributing support for other @@ -49,6 +56,11 @@ CUSTOM_CFLAGS=-Wall -ggdb3 -O3 -std=gnu99 -frename-registers -pthread -Wsign-com ### CONFIGURATION END +ifdef WIN + SYS_CFLAGS= + LDFLAGS=-pthread + LIBS=-lm -lws2_32 +else ifdef MAC SYS_CFLAGS=-DNO_THREAD_LOCAL LDFLAGS=-pthread -rdynamic @@ -58,6 +70,7 @@ else LDFLAGS=-pthread -rdynamic LIBS=-lm -lrt -ldl endif +endif ifdef DOUBLE CUSTOM_CFLAGS+=-DDOUBLE -- 2.11.4.GIT