X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2FMakefile;h=d81e7d707a9c638f3ffe19d513915f1851d07747;hp=7eef34166af9c729e822ed684f1f881c8730ca0c;hb=1cc42ac9e4786790a30d2b9dd572dc7e7bfcd021;hpb=61c03b9d22de0c1ccf0c60af4e223775d4b3f7cc diff --git a/src/Makefile b/src/Makefile index 7eef3416..d81e7d70 100644 --- a/src/Makefile +++ b/src/Makefile @@ -2,8 +2,6 @@ # 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 @@ -33,10 +31,9 @@ BINDIR = $(PREFIX)/bin PGOBENCH = ./$(EXE) bench 32 1 10 default depth ### 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 - +OBJS = benchmark.o bitbase.o bitboard.o book.o endgame.o evaluate.o main.o \ + material.o misc.o move.o movegen.o movepick.o pawns.o position.o \ + search.o thread.o timeman.o tt.o uci.o ucioption.o ### ========================================================================== ### Section 2. High-level Configuration @@ -230,11 +227,11 @@ endif 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) @@ -278,10 +275,10 @@ ifeq ($(optimize),yes) endif ifeq ($(comp),icc) - CXXFLAGS += -fast - ifeq ($(os),osx) - CXXFLAGS += -mdynamic-no-pic + CXXFLAGS += -fast -mdynamic-no-pic + else + CXXFLAGS += -O3 endif endif endif @@ -318,9 +315,6 @@ endif ### Section 4. Public targets ### ========================================================================== -default: - $(MAKE) ARCH=$(ARCH) COMP=$(COMP) build - help: @echo "" @echo "To compile stockfish, type: " @@ -434,6 +428,9 @@ clean: testrun: @$(PGOBENCH) +default: + help + ### ========================================================================== ### Section 5. Private targets ### ==========================================================================