# Copyright (C) 2004-2008 Tord Romstad (Glaurung author)
# Copyright (C) 2008-2010 Marco Costalba, Joona Kiiski, Tord Romstad
#
-# This file is part of Stockfish.
-#
# Stockfish is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
### Object files
OBJS = bitboard.o pawns.o material.o endgame.o evaluate.o main.o \
- misc.o move.o movegen.o history.o movepick.o search.o position.o \
- direction.o tt.o uci.o ucioption.o book.o bitbase.o san.o benchmark.o timeman.o
+ misc.o move.o movegen.o movepick.o search.o position.o \
+ tt.o uci.o ucioption.o book.o bitbase.o benchmark.o timeman.o
### ==========================================================================
CXXFLAGS = -g -Wall -Wcast-qual -fno-exceptions -fno-rtti $(EXTRACXXFLAGS)
ifeq ($(comp),gcc)
- CXXFLAGS += -ansi -pedantic -Wno-long-long -Wextra
+ CXXFLAGS += -ansi -pedantic -Wno-long-long -Wextra -Wshadow
endif
ifeq ($(comp),mingw)
- CXXFLAGS += -Wno-long-long -Wextra
+ CXXFLAGS += -Wextra -Wshadow
endif
ifeq ($(comp),icc)
- CXXFLAGS += -wd383,981,10187,10188,11505,11503 -Wcheck -Wabi -Wdeprecated -strict-ansi
+ CXXFLAGS += -wd383,981,1418,1419,10187,10188,11505,11503 -Wcheck -Wabi -Wdeprecated -strict-ansi
endif
ifeq ($(os),osx)
endif
ifeq ($(comp),icc)
- CXXFLAGS += -fast
-
ifeq ($(os),osx)
- CXXFLAGS += -mdynamic-no-pic
+ CXXFLAGS += -fast -mdynamic-no-pic
+ else
+ CXXFLAGS += -O3
endif
endif
endif