]> git.sesse.net Git - pgn-extract/blobdiff - Makefile
Store a hash of the previous board, to be able to disambigutate transpositions. ...
[pgn-extract] / Makefile
index ab78559f93b5b5f7ba4af6e7dfb9999c016d0a8d..e1fce5631a615e1c941ed5f2a537da35aaaf683c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@
 
 OBJS=grammar.o lex.o map.o decode.o moves.o lists.o apply.o output.o eco.o\
        lines.o end.o main.o hashing.o argsfile.o mymalloc.o fenmatcher.o\
-       taglines.o
+       taglines.o farmhash-c.o
 DEBUGINFO=-g
 
 # These flags are particularly severe on checking warnings.
@@ -40,6 +40,7 @@ CFLAGS+=-c -Wall -Wshadow -Wformat -Wpointer-arith \
        -I/usr/local/lib/ansi-include \
        -O3
 CC=gcc
+LDLIBS=-lfarmhash
 
 # AIX 3.2 Users might like to use these alternatives for CFLAGS and CC.
 # Thanks to Erol Basturk for providing them.
@@ -47,7 +48,7 @@ AIX_CFLAGS=-c -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_ALL_SOURCE
 AIX_CC=xlc
 
 pgn-extract : $(OBJS)
-       $(CC) $(DEBUGINFO) $(OBJS) -o pgn-extract
+       $(CC) $(DEBUGINFO) $(OBJS) $(LDLIBS) -o pgn-extract
 
 purify : $(OBJS)
        purify $(CC) $(DEBUGINFO) $(OBJS) -o pgn-extract