X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=Makefile;h=e1fce5631a615e1c941ed5f2a537da35aaaf683c;hb=HEAD;hp=da88bf5f73b9a3229efe0ad5386d65ee6da1b46d;hpb=4e0c88b473dffdefb830e6806c3692aab6b4fa0c;p=pgn-extract diff --git a/Makefile b/Makefile index da88bf5..e1fce56 100644 --- 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. @@ -34,12 +34,13 @@ DEBUGINFO=-g # Mac OS X users might need to add -D__unix__ to CFLAGS # and use CC=cc or CC=gcc -CFLAGS+=-c -pedantic -Wall -Wshadow -Wformat -Wpointer-arith \ +CFLAGS+=-c -Wall -Wshadow -Wformat -Wpointer-arith \ -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings \ -Wsign-compare $(DEBUGINFO)\ -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