home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gnuch40.zip / gnuchess-4.0.pl79 / src / Makefile.in < prev    next >
Makefile  |  1998-09-28  |  17KB  |  445 lines

  1. #
  2. # Makefile.in for GNU Chess
  3. # Run ./configure to generate a Makefile from Makefile.in
  4. # See INSTALL for more information
  5. #
  6. # Copyright (c) 1992, 1995 Free Software Foundation
  7. #
  8. # This file is part of GNU CHESS.
  9. #
  10. # GNU Chess is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; either version 2, or (at your option)
  13. # any later version.
  14. #
  15. # GNU Chess is distributed in the hope that it will be useful,
  16. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18. # GNU General Public License for more details.
  19. #
  20. # You should have received a copy of the GNU General Public License
  21. # along with GNU Chess; see the file COPYING.  If not, write to
  22. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  23. #
  24.  
  25. PRODUCT = gnuchess
  26. VERSION = 4.0
  27. PATCHLEVEL = 79
  28.  
  29. SHELL = /bin/sh
  30. srcdir = @srcdir@
  31. VPATH = @srcdir@
  32.  
  33. #############  Some definitions for Gnuchess  ###############
  34. #  In general, you should leave all these things alone.
  35.  
  36. BOOK=$(srcdir)/../book/gnuchess.bk3.gz
  37.  
  38. # The language file describes capabilities of the program. Perhaps
  39. # it is useful for non-English speaking countries and customizing
  40. # for their convenience and chess happiness.
  41. LANGF= -DLANGFILE=\"$(LIBDIR)/gnuchess.lang\" \
  42.        -DSRCLANGFILE=\"$(srcdir)/../misc/gnuchess.lang\"
  43.  
  44. # The hashfile is a record of positions seen. It is used by
  45. # GNU Chess to avoid making the same mistakes, a form of learning.
  46. HASH=    -DHASHFILE=\"$(LIBDIR)/gnuchess.hash\"
  47.  
  48. # The "book" is a record of the first few moves, for playing good
  49. # moves easily and quickly, saving time, and irritating the human
  50. # opponent.
  51. BINBOOK = -DBINBOOK=\"$(LIBDIR)/gnuchess.data\"
  52. BINECO = -DBINECO=\"$(LIBDIR)/gnuchess.eco\"
  53. PGNECO = -DPGNECO=\"$(LIBDIR)/eco.pgn\"
  54.  
  55. #BOOKOPTS = -S 188000 -P 26     # huge 1450K
  56. #BOOKOPTS = -S 45000 -P 16      # big 540K
  57. #BOOKOPTS = -S 20000 -P 12      # medium 240K
  58. BOOKOPTS = -S 12000 -P 10       # small 144K
  59. #BOOKOPTS = -S 9000 -P 8        # tiny 78K
  60.  
  61. #compile options for gnuchess
  62. #    Search options
  63. # -DHISTORY use history heuristic 
  64. # -DKILLT use killt killer heuristic 
  65. # -DNULLMOVE include null move heuristic
  66. # -DDEEPNULL include deepnull move heuristic
  67. # -DUNLIMITEDCAPS allow unlimited depth captures
  68. # -DPRUNE enable marginal forward pruning
  69. # -DNOMATERIAL don't call it a draw when no pawns and both sides < rook
  70. # -DNODYNALPHA don't dynamically adjust alpha
  71. # -DOLDTIME use old ply time estimating function
  72. # -DCACHE  Cache static evaluations 
  73. # -DNODITHER no random element to evaluations
  74. #
  75. #    Verbosity options
  76. # -DBAREBONES compile for max speed no statistics etc kept
  77. # -DQUIETBACKGROUND don't print post information in background ( easy OFF)
  78. # -DHASHSTATS keep hash table statistics
  79. # -DMORESTATS print more hash table stats
  80. # -DQUIETBOOKGEN Don't print errors while loading a book or generating a binbook
  81. # -DSEMIQUIETBOOKGEN Print less verbose errors while reading book or generating binbook
  82. #
  83. #    Miscellaneous options
  84. # -DECO if you want support for eco database
  85. # -DCLIENT create client version for use with ICS
  86. # -DLONG64 if you have 64bit longs
  87. # -DSYSV   if you are using SYSV
  88. #
  89. #    Some debug options
  90. # -DDEBUG8 dump board,movelist,input move to /tmp/DEBUG if illegal move
  91. # -DDEBUG9 dump move list from test command
  92. # -DDEBUG10 dump board and move after search before !easy begins
  93. # -DDEBUG11 dump board when the move is output
  94. # -DDEBUG12 dump boards between moves
  95. # -DDEBUG13 dump search control information for each move to /tmp/DEBUG
  96. # -DDEBUG33 dump book moves as read from book
  97. # -DDEBUG40 include extra values of variables for debugging  in game list
  98. # -DDEBUG41 dump post output to /tmp/DEBUG
  99. # the rest of the debug options are tied to the debuglevel command
  100. # -DDEBUG sets up code for debuglevel command
  101. #          debuglevel
  102. #               1 always force evaluation in evaluate
  103. #               4 print move list after search
  104. #               8 print move list after book before search
  105. #              16 print move list after each ply of search
  106. #              32 print adds to transposition table
  107. #              64 print returns from transposition table lookups
  108. #          128 print evals
  109. #          256 print search tree as it is generated
  110. #          512 debug trace of search tree
  111. #         1024 interactive tree print
  112. #
  113.  
  114. ###############  End of Gnuchess definitions ######################
  115.  
  116. CC = @CC@
  117. DEFINES = @DEFS@ -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY \
  118.     -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS
  119. CFLAGS = @CFLAGS@
  120. ALL_CFLAGS = -I$(srcdir) $(CFLAGS) $(DEFINES)
  121. INSTALL = @INSTALL@
  122. INSTALL_DATA = @INSTALL_DATA@
  123. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  124. LDFLAGS = @LDFLAGS@
  125. ALL_LDFLAGS = $(LDFLAGS)
  126. LIBS = @LIBS@ -lm
  127.  
  128. prefix = @prefix@
  129. exec_prefix = @exec_prefix@
  130. LIBDIR = $(prefix)/lib
  131. BINDIR = $(exec_prefix)/bin
  132. MANDIR = $(prefix)/man/man6
  133. MANEXT = .6
  134.  
  135. DISTSOURCE = Makefile.ddj Makefile.dos Makefile.in Makefile.nt README ataks.c ataks.h \
  136.     binsort.c binsort.h book.c configure configure.in debug10.h \
  137.     debug13.h debug16.h debug256.h debug4.h debug40.h debug41.h \
  138.     debug64.h debug8.h dspcom.c eco.c ecocvt.c eval.c game.c \
  139.     genmoves.c gnuan.c gnuchess.h init.c main.c nondsp.c nuxdsp.c \
  140.     postprint.c search.c ttable.c ttable.h util.c uxdsp.c version.h \
  141.     INSTALL install-sh debug512.h ecosort.c
  142.  
  143.  
  144. DISTDIR = $(PRODUCT)-$(VERSION).pl$(PATCHLEVEL)
  145.  
  146. ### Targets required by GNU standards #######################################
  147.  
  148. all: gnuchess gnuchessr gnuchessn gnuchessx gnuchessc postprint gnuan game gnuchess.eco gnuchess.data
  149.  
  150. install: 
  151.     $(INSTALL) gnuchess $(BINDIR)/gnuchess    
  152.     $(INSTALL) gnuchessr $(BINDIR)/gnuchessr
  153.     $(INSTALL) gnuchessn $(BINDIR)/gnuchessn
  154.     $(INSTALL) gnuchessx $(BINDIR)/gnuchessx
  155.     $(INSTALL) gnuchessc $(BINDIR)/gnuchessc
  156.     $(INSTALL) postprint $(BINDIR)/postprint
  157.     $(INSTALL) gnuan $(BINDIR)/gnuan
  158.     $(INSTALL) game $(BINDIR)/game
  159.     $(INSTALL) $(srcdir)/../misc/gnuchess.lang $(LIBDIR)/gnuchess.lang
  160.     $(INSTALL) $(srcdir)/../book/eco.pgn $(LIBDIR)/eco.pgn
  161.     $(INSTALL) gnuchess.data $(LIBDIR)/gnuchess.data
  162.     $(INSTALL) gnuchess.eco $(LIBDIR)/gnuchess.eco
  163.     $(INSTALL_DATA) $(srcdir)/../doc/game.6 $(MANDIR)/game.6
  164.     $(INSTALL_DATA) $(srcdir)/../doc/gnuan.6 $(MANDIR)/gnuan.6
  165.     $(INSTALL_DATA) $(srcdir)/../doc/gnuchess.6 $(MANDIR)/gnuchess.6
  166.     $(INSTALL_DATA) $(srcdir)/../doc/postprint.6 $(MANDIR)/postprint.6
  167.  
  168. uninstall:
  169.     rm -f $(BINDIR)/gnuchess
  170.     rm -f $(BINDIR)/gnuchessr
  171.     rm -f $(BINDIR)/gnuchessn
  172.     rm -f $(BINDIR)/gnuchessx
  173.     rm -f $(BINDIR)/gnuchessc
  174.     rm -f $(BINDIR)/postprint
  175.     rm -f $(BINDIR)/gnuan
  176.     rm -f $(BINDIR)/game
  177.     rm -f $(LIBDIR)/gnuchess.lang
  178.     rm -f $(LIBDIR)/eco.pgn
  179.     rm -f $(LIBDIR)/gnuchess.data
  180.     rm -f $(LIBDIR)/gnuchess.eco
  181.     rm -f $(MANDIR)/game.6
  182.     rm -f $(MANDIR)/gnuan.6
  183.     rm -f $(MANDIR)/gnuchess.6
  184.     rm -f $(MANDIR)/postprint.6
  185.  
  186. clean:
  187.     rm -f gnuchess gnuchess? postprint gnuan game ecor ecocvt ecosort
  188.     rm -f binsort gnuchess.eco gnuchess.data
  189.     rm -f *.o #*# *~ CL* PATCH* %*% *orig
  190.  
  191. distclean: clean
  192.     rm -f config.cache config.log config.status Makefile
  193.  
  194. mostlyclean: clean
  195.  
  196. maintainer-clean: distclean
  197.  
  198. TAGS:
  199.     etags *.c *.h
  200.  
  201. info:
  202.     @echo Sorry, gnuchess is documented by a man page, not a texinfo file.
  203.  
  204. dvi:
  205.     @echo Sorry, gnuchess is documented by a man page, not a texinfo file.
  206.  
  207. dist:    
  208.     mkdir $(DISTDIR)
  209.     mkdir $(DISTDIR)/src
  210.     cp -r ../misc $(DISTDIR)
  211.     cp -r ../book $(DISTDIR)
  212.     cp -r ../test $(DISTDIR)
  213.     cp -r ../doc $(DISTDIR)
  214.     cp $(DISTSOURCE) $(DISTDIR)/src
  215.     -rm -f $(DISTDIR).tar.gz
  216.     tar cvf $(DISTDIR).tar $(DISTDIR)
  217.     gzip $(DISTDIR).tar
  218.     rm -rf $(DISTDIR)
  219.  
  220. check: all
  221.  
  222. ### End targets required by GNU standards ###################################
  223.  
  224. Makefile: Makefile.in config.status
  225.     ./config.status
  226.      
  227. config.status: configure
  228.     ./config.status --recheck
  229. gnuchess: mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomN.o uxdsp.o
  230.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -o gnuchess mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomN.o uxdsp.o $(LCURSES) $(LIBS)
  231.  
  232. gnuan: mainN.o bookG.o genmovesN.o ataks.o utilN.o evalN.o init.o searchG.o gnuan.o
  233.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF) -DIGNUAN  -o gnuan mainN.o bookG.o genmovesN.o ataks.o utilN.o evalN.o init.o searchG.o gnuan.o $(LIBS)
  234.  
  235. gnuchessc: mainC.o bookC.o genmovesC.o ataks.o utilC.o evalC.o init.o searchC.o dspcomC.o nondspC.o
  236.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -o gnuchessc mainC.o bookC.o genmovesC.o ataks.o utilC.o evalC.o init.o searchC.o dspcomC.o nondspC.o $(LIBS)
  237.  
  238. Dgnuchessr: mainDR.o bookN.o genmovesN.o ataks.o utilDR.o evalDR.o init.o searchDR.o dspcomDR.o nondspDR.o
  239.     $(CC)  -DDEBUG  -DDEBUG4 $(ALL_CFLAGS) $(HASH) $(LANGF)  -o gnuchessr mainDR.o bookN.o genmovesN.o ataks.o utilDR.o evalDR.o init.o searchDR.o dspcomDR.o nondspDR.o $(LIBS) $(LIBS)
  240.  
  241. gnuchessx: mainX.o bookX.o genmovesX.o ataks.o utilX.o evalX.o init.o searchX.o dspcomX.o nondspX.o
  242.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -o gnuchessx mainX.o bookX.o genmovesX.o ataks.o utilX.o evalX.o init.o searchX.o dspcomX.o nondspX.o $(LIBS)
  243.  
  244. ecor: mainN.o eco.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomR.o nondspR.o
  245.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -o ecor mainN.o eco.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomR.o nondspR.o $(LIBS)
  246.  
  247. gnuchessr: mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomR.o nondspR.o
  248.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -o gnuchessr mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomR.o nondspR.o $(LIBS)
  249.  
  250. gnuchessn: mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomN.o nuxdsp.o
  251.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -o gnuchessn mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomN.o nuxdsp.o $(LCURSES) $(LIBS)
  252.  
  253. game: game.c gnuchess.h
  254.     $(CC) $(ALL_CFLAGS) -o game $(srcdir)/game.c
  255.     
  256. postprint: postprint.o
  257.     $(CC) $(ALL_CFLAGS) $(HASH) -o postprint postprint.o
  258.     
  259. gnuan.o: gnuan.c gnuchess.h version.h
  260.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF) -DIGNUAN $(BINBOOK) -c $(srcdir)/gnuan.c
  261.  
  262. mainN.o: main.c gnuchess.h version.h ttable.h
  263.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  $(BINBOOK) -c $(srcdir)/main.c
  264.     mv main.o mainN.o
  265. mainC.o: main.c gnuchess.h version.h ttable.h
  266.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  $(BINBOOK) -DNONDSP -DCHESSTOOL \
  267.         -c $(srcdir)/main.c
  268.     mv main.o mainC.o
  269. mainX.o: main.c gnuchess.h version.h ttable.h
  270.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  $(BINBOOK) -DXBOARD  -c $(srcdir)/main.c
  271.     mv main.o mainX.o
  272. mainDR.o: main.c gnuchess.h version.h ttable.h
  273.     $(CC)  -DDEBUG -DDEBUG4 $(ALL_CFLAGS) $(HASH) $(LANGF)  $(BINBOOK) \
  274.         -c $(srcdir)/main.c
  275.     mv main.o mainDR.o
  276.  
  277. genmovesN.o: genmoves.c gnuchess.h version.h ttable.h
  278.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -c $(srcdir)/genmoves.c
  279.     mv genmoves.o genmovesN.o
  280. genmovesC.o: genmoves.c gnuchess.h version.h ttable.h
  281.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -DNONDSP -DCHESSTOOL \
  282.         -c $(srcdir)/genmoves.c 
  283.     mv genmoves.o genmovesC.o
  284. genmovesX.o: genmoves.c gnuchess.h version.h ttable.h
  285.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -DXBOARD \
  286.         -c $(srcdir)/genmoves.c
  287.     mv genmoves.o  genmovesX.o
  288.  
  289. eco.o: eco.c gnuchess.h version.h ataks.h ttable.h
  290.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  $(BINBOOK) $(BINECO)  $(PGNECO) -c $(srcdir)/eco.c 
  291.  
  292. bookN.o: book.c gnuchess.h version.h ataks.h ttable.h
  293.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  $(BINBOOK) $(PGNECO) $(BINECO) -c $(srcdir)/book.c 
  294.     mv book.o bookN.o
  295. bookG.o: book.c gnuchess.h version.h ataks.h ttable.h
  296.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  $(BINBOOK) $(PGNECO) $(BINECO) -DIGNUAN  -c $(srcdir)/book.c 
  297.     mv book.o bookG.o
  298. bookC.o: book.c gnuchess.h version.h ataks.h ttable.h
  299.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -DNONDSP -DCHESSTOOL \
  300.           $(BINBOOK) \
  301.         $(PGNECO) $(BINECO) -c $(srcdir)/book.c 
  302.     mv book.o bookC.o
  303. bookX.o: book.c gnuchess.h version.h ataks.h ttable.h
  304.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -DXBOARD  $(BINBOOK) \
  305.         $(PGNECO) $(BINECO) -c $(srcdir)/book.c
  306.     mv book.o  bookX.o
  307.  
  308. ataks.o: ataks.h ataks.c gnuchess.h version.h ttable.h
  309.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -c $(srcdir)/ataks.c
  310.  
  311. utilN.o: util.c gnuchess.h version.h
  312.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -c $(srcdir)/util.c
  313.     mv util.o utilN.o
  314.  
  315. utilX.o: util.c gnuchess.h version.h
  316.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)   \
  317.          -c $(srcdir)/util.c
  318.     mv util.o  utilX.o
  319.  
  320. utilC.o: util.c gnuchess.h version.h
  321.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)   \
  322.          -c $(srcdir)/util.c
  323.     mv util.o  utilC.o
  324.  
  325. evalC.o: eval.c gnuchess.h version.h ttable.h
  326.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)   -c $(srcdir)/eval.c
  327.     mv eval.o evalC.o
  328.  
  329. evalX.o: eval.c gnuchess.h version.h ttable.h
  330.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)   -c $(srcdir)/eval.c
  331.     mv eval.o evalX.o
  332.  
  333. evalN.o: eval.c gnuchess.h version.h ttable.h
  334.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -c $(srcdir)/eval.c
  335.     mv eval.o evalN.o
  336.  
  337. evalDR.o: eval.c gnuchess.h version.h ttable.h
  338.     $(CC)  -DDEBUG4 -DDEBUG $(ALL_CFLAGS) $(HASH) $(LANGF)  \
  339.         -c $(srcdir)/eval.c 
  340.     mv eval.o evalDR.o
  341. utilDR.o: util.c gnuchess.h version.h
  342.     $(CC)  -DDEBUG4 -DDEBUG $(ALL_CFLAGS) $(HASH) $(LANGF)  \
  343.         -c $(srcdir)/util.c 
  344.     mv util.o utilDR.o
  345.  
  346. init.o: init.c gnuchess.h version.h ttable.h
  347.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -c $(srcdir)/init.c
  348.  
  349. searchN.o: search.c gnuchess.h version.h debug512.h debug10.h debug13.h debug16.h debug256.h debug4.h debug40.h debug41.h debug64.h debug8.h ttable.h ttable.c
  350.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -c $(srcdir)/search.c
  351.     mv search.o searchN.o
  352. searchG.o: search.c gnuchess.h version.h debug512.h debug10.h debug13.h debug16.h debug256.h debug4.h debug40.h debug41.h debug64.h debug8.h ttable.h ttable.c
  353.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF) -DIGNUAN  -c $(srcdir)/search.c
  354.     mv search.o searchG.o
  355. searchC.o: search.c gnuchess.h version.h debug512.h debug10.h debug13.h debug16.h debug256.h debug4.h debug40.h debug41.h debug64.h debug8.h ttable.h ttable.c
  356.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -DNONDSP -DCHESSTOOL \
  357.         -c $(srcdir)/search.c 
  358.     mv search.o searchC.o
  359. searchX.o: search.c gnuchess.h version.h debug512.h debug10.h debug13.h debug16.h debug256.h debug4.h debug40.h debug41.h debug64.h debug8.h ttable.h ttable.c
  360.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -DXBOARD \
  361.         -c $(srcdir)/search.c 
  362.     mv search.o searchX.o
  363. searchDR.o: search.c gnuchess.h version.h debug512.h debug10.h debug13.h debug16.h debug256.h debug4.h debug40.h debug41.h debug64.h debug8.h ttable.h ttable.c
  364.     $(CC)  -DDEBUG4 -DDEBUG $(ALL_CFLAGS) $(HASH) $(LANGF)  \
  365.         -c $(srcdir)/search.c 
  366.     mv search.o searchDR.o
  367.  
  368. uxdsp.o: uxdsp.c gnuchess.h version.h
  369.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -c $(srcdir)/uxdsp.c
  370.  
  371. nuxdsp.o: nuxdsp.c gnuchess.h version.h
  372.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -c $(srcdir)/nuxdsp.c
  373.  
  374. nondspC.o: nondsp.c gnuchess.h version.h
  375.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -DNONDSP -DCHESSTOOL \
  376.         -c $(srcdir)/nondsp.c 
  377.     mv nondsp.o nondspC.o
  378. nondspX.o: nondsp.c gnuchess.h version.h
  379.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -DNONDSP -DXBOARD \
  380.         -c $(srcdir)/nondsp.c 
  381.     mv nondsp.o nondspX.o
  382. nondspR.o: nondsp.c gnuchess.h version.h
  383.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -DNONDSP \
  384.         -c $(srcdir)/nondsp.c 
  385.     mv nondsp.o nondspR.o
  386. nondspDR.o: nondsp.c gnuchess.h version.h
  387.     $(CC)  -DDEBUG4 -DDEBUG $(ALL_CFLAGS) $(HASH) $(LANGF)  -DNONDSP \
  388.          -c $(srcdir)/nondsp.c 
  389.     mv nondsp.o nondspDR.o
  390.  
  391. dspcomN.o: dspcom.c gnuchess.h version.h
  392.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -c $(srcdir)/dspcom.c
  393.     mv dspcom.o dspcomN.o
  394. dspcomC.o: dspcom.c gnuchess.h version.h
  395.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -DNONDSP -DCHESSTOOL \
  396.         -c $(srcdir)/dspcom.c 
  397.     mv dspcom.o dspcomC.o
  398. dspcomX.o: dspcom.c gnuchess.h version.h
  399.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -DNONDSP -DXBOARD \
  400.         -c $(srcdir)/dspcom.c 
  401.     mv dspcom.o dspcomX.o
  402. dspcomR.o: dspcom.c gnuchess.h version.h
  403.     $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF)  -DNONDSP \
  404.         -c $(srcdir)/dspcom.c 
  405.     mv dspcom.o dspcomR.o
  406. dspcomDR.o: dspcom.c gnuchess.h version.h
  407.     $(CC)  -DDEBUG -DDEBUG4 $(ALL_CFLAGS) $(HASH) $(LANGF)  -DNONDSP \
  408.         -c $(srcdir)/dspcom.c 
  409.     mv dspcom.o dspcomDR.o
  410.  
  411. postprint.o: postprint.c gnuchess.h version.h
  412.     $(CC) $(ALL_CFLAGS) $(HASH) -c $(srcdir)/postprint.c
  413.  
  414. binsort: binsort.c binsort.h
  415.     $(CC) $(ALL_CFLAGS) -o binsort $(srcdir)/binsort.c
  416.  
  417. ecosort: ecosort.c gnuchess.h
  418.     $(CC) $(ALL_CFLAGS) -o ecosort $(srcdir)/ecosort.c
  419.  
  420. ecocvt:    ecocvt.c
  421.     $(CC) $(ALL_CFLAGS) -o ecocvt $(srcdir)/ecocvt.c
  422.  
  423. gnuchess.data: $(BOOK)
  424.     -rm gnuchess.data
  425.     echo 3 0 >test;echo quit >>test
  426.     gzip -d -c  $(BOOK) > ./t
  427.     cat test| ./gnuchessr -b ./t  -B gnuchess.data $(BOOKOPTS)
  428.     -rm -f test ./t
  429.  
  430. gnuchess.eco:    ecor binsort ecocvt ecosort
  431.     -rm -f gnuchess.eco step1.eco step2.eco
  432.     echo 0 0 | ./ecor -b $(srcdir)/../book/eco.pgn -B step1.eco
  433.     ./ecosort 
  434.     ./ecocvt step2.eco gnuchess.eco
  435.     -rm -f step1.eco step2.eco
  436.     
  437. check: gnuchessr $(srcdir)/../test/testall
  438.     cat $(srcdir)/../test/testall | ./gnuchessr > test.out 2>&1
  439.  
  440. $(srcdir)/../test/testall:
  441.     (cd $(srcdir)/../test; zcat test.tar.gz | tar -xvf -)
  442.  
  443. bigcheck: gnuchessr $(srcdir)/../test/testall
  444.     cat $(srcdir)/../test/gnutest.run | ./gnuchessr > gnutest.out 2>&1
  445.