The options that were added on the gcc target to work on Cygwin were
breaking use of the Makefile on Linux.
@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
$(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