X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=makefile.gcc;h=e8dd61b6c392da11d4be572cee21c0fdf71f5504;hb=037f73ac400afcd812f31f9260e6bf8a0ba7ef53;hp=56ced5f51ddd70d4c844d8ea53ed9ac660bda625;hpb=07265afaa167049a447b4c5f43e5ef90c7451a49;p=polyglot.git diff --git a/makefile.gcc b/makefile.gcc index 56ced5f..e8dd61b 100644 --- a/makefile.gcc +++ b/makefile.gcc @@ -1,18 +1,18 @@ EXE = polyglot.exe OBJS = attack.o board.o book.o book_make.o book_merge.o colour.o engine.o\ - epd.o fen.o game.o gui.o hash.o io.o line.o list.o main.o mainloop.o\ - move.o move_do.o move_gen.o move_legal.o option.o parse.o pgn.o piece.o\ - pipe.o posix.o random.o san.o search.o square.o uci.o uci2uci.o util.o\ - xboard2uci.o + epd.o fen.o game.o gui.o hash.o io.o ini.o line.o list.o main.o mainloop.o\ + move.o move_do.o move_gen.o move_legal.o option.o parse.o pipex_win32.o\ + pipex_posix.o pgn.o piece.o random.o san.o search.o square.o\ + uci.o uci2uci.o util.o xboard2uci.o # set up for NO cygwin CYGF = -mno-cygwin CYGL = -lmsvcrt -CC = g++ +CC = gcc DEFS = -DNDEBUG -OPTS = -Os -frename-registers -funit-at-a-time -fstrict-aliasing -fstrength-reduce +OPTS = -Os -frename-registers -funit-at-a-time -fstrict-aliasing -fstrength-reduce -fomit-frame-pointer CFLAGS = -Wall -pipe $(DEFS) $(OPTS) $(CYGF) LFLAGS = -fpic -s $(CYGF) LIBS = $(CYGL) @@ -25,5 +25,5 @@ clean: $(EXE): $(OBJS) $(CC) $(LFLAGS) $(LIBS) $(OBJS) -o $(EXE) -%.o: %.cpp +%.o: %.c $(CC) $(CFLAGS) -c $<