From 4511b04e993672f58c3dccd6c02df54425ca973f Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Wed, 17 Dec 2014 22:37:43 +0100 Subject: [PATCH] Make separate make target for Cygwin The options that were added on the gcc target to work on Cygwin were breaking use of the Makefile on Linux. --- Makefile | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ed03b82..0714597 100644 --- a/Makefile +++ b/Makefile @@ -35,9 +35,13 @@ help: @echo " icc" @echo " icc-pgo" @echo " icc-ampl" + @echo " cygwin" + +cygwin: + $(MAKE) CC=gcc CFLAGS='-std=gnu99 -O2 -Wall $(OPT) -mno-cygwin' LDFLAG1='-lm -lpthread -lwsock32 -mno-cygwin' ICONRES='bres.o' bonanza gcc: - $(MAKE) CC=gcc CFLAGS='-std=gnu99 -O2 -Wall $(OPT) -mno-cygwin' LDFLAG1='-lm -lpthread -lwsock32 -mno-cygwin' bonanza + $(MAKE) CC=gcc CFLAGS='-std=gnu99 -O2 -Wall $(OPT)' LDFLAG1='-lm -lpthread' bonanza gcc-pgo: $(MAKE) clean @@ -60,7 +64,7 @@ icc-pgo: $(MAKE) CC=icc CFLAGS='-w2 $(OPT) -std=gnu99 -O2 -ipo -prof_use -prof_dir ./profdir' LDFLAG1='-static -ipo -pthread' bonanza bonanza : $(OBJS) - $(CC) $(LDFLAG1) -o bonanza $(OBJS) bres.o $(LDFLAG2) + $(CC) $(LDFLAG1) -o bonanza $(OBJS) $(ICONRES) $(LDFLAG2) $(OBJS) : shogi.h param.h bitop.h dfpn.o dfpnhash.o: dfpn.h -- 1.7.0.4