]> git.sesse.net Git - stockfish/blobdiff - src/Makefile
Let 'make' with no arguments to show compilation options
[stockfish] / src / Makefile
index 513e3257573a363f32639409e6b5595eef5f3961..d81e7d707a9c638f3ffe19d513915f1851d07747 100644 (file)
@@ -31,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 \
-       tt.o uci.o ucioption.o book.o bitbase.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
@@ -228,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)
@@ -316,9 +315,6 @@ endif
 ### Section 4. Public targets
 ### ==========================================================================
 
-default:
-       $(MAKE) ARCH=$(ARCH) COMP=$(COMP) build
-
 help:
        @echo ""
        @echo "To compile stockfish, type: "
@@ -432,6 +428,9 @@ clean:
 testrun:
        @$(PGOBENCH)
 
+default:
+       help
+
 ### ==========================================================================
 ### Section 5. Private targets
 ### ==========================================================================