home *** CD-ROM | disk | FTP | other *** search
/ Dream 44 / Amiga_Dream_44.iso / RiscPc / jeux / ArcBoard004.arc / !GNUChessX / src / misc / Makefile_i < prev    next >
Makefile  |  1995-07-02  |  16KB  |  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 = 75
  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. LIBDIR = .
  37.  
  38. BOOK=../book/gnuchess.bk3.gz
  39.  
  40. # The language file describes capabilities of the program. Perhaps
  41. # it is useful for non-English speaking countries and customizing
  42. # for their convenience and chess happiness.
  43. LANGF= -DLANGFILE=\"$(LIBDIR)/gnuchess.lang\"
  44.  
  45. # The hashfile is a record of positions seen. It is used by
  46. # GNU Chess to avoid making the same mistakes, a form of learning.
  47. HASH=    -DHASHFILE=\"$(LIBDIR)/gnuchess.hash\"
  48.  
  49. # The "book" is a record of the first few moves, for playing good
  50. # moves easily and quickly, saving time, and irritating the human
  51. # opponent.
  52. BINBOOK = -DBINBOOK=\"$(LIBDIR)/gnuchess.data\"
  53. BINECO = -DBINECO=\"$(LIBDIR)/gnuchess.eco\"
  54. PGNECO = -D\PGNECO=\"$(LIBDIR)/eco.pgn\"
  55.  
  56. #BOOKOPTS = -S 188000 -P 26     # huge 1450K
  57. #BOOKOPTS = -S 45000 -P 16      # big 540K
  58. #BOOKOPTS = -S 20000 -P 12      # medium 240K
  59. BOOKOPTS = -S 12000 -P 10       # small 144K
  60. #BOOKOPTS = -S 9000 -P 8        # tiny 78K
  61.  
  62. #compile options for gnuchess
  63. #    Search options
  64. # -DHISTORY use history heuristic 
  65. # -DKILLT use killt killer heuristic 
  66. # -DNULLMOVE include null move heuristic
  67. # -DDEEPNULL include deepnull move heuristic
  68. # -DUNLIMITEDCAPS allow unlimited depth captures
  69. # -DPRUNE enable marginal forward pruning
  70. # -DNOMATERIAL don't call it a draw when no pawns and both sides < rook
  71. # -DNODYNALPHA don't dynamically adjust alpha
  72. # -DOLDTIME use old ply time estimating function
  73. # -DCACHE  Cache static evaluations 
  74. # -DNODITHER no random element to evaluations
  75. #
  76. #    Verbosity options
  77. # -DBAREBONES compile for max speed no statistics etc kept
  78. # -DQUIETBACKGROUND don't print post information in background ( easy OFF)
  79. # -DHASHSTATS keep hash table statistics
  80. # -DMORESTATS print more hash table stats
  81. # -DQUIETBOOKGEN Don't print errors while loading a book or generating a binbook
  82. # -DSEMIQUIETBOOKGEN Print less verbose errors while reading book or generating binbook
  83. #
  84. #    Miscellaneous options
  85. # -DECO if you want support for eco database
  86. # -DCLIENT create client version for use with ICS
  87. # -DLONG64 if you have 64bit longs
  88. # -DSYSV   if you are using SYSV
  89. #
  90. #    Some debug options
  91. # -DDEBUG8 dump board,movelist,input move to /tmp/DEBUG if illegal move
  92. # -DDEBUG9 dump move list from test command
  93. # -DDEBUG10 dump board and move after search before !easy begins
  94. # -DDEBUG11 dump board when the move is output
  95. # -DDEBUG12 dump boards between moves
  96. # -DDEBUG13 dump search control information for each move to /tmp/DEBUG
  97. # -DDEBUG33 dump book moves as read from book
  98. # -DDEBUG40 include extra values of variables for debugging  in game list
  99. # -DDEBUG41 dump post output to /tmp/DEBUG
  100. # the rest of the debug options are tied to the debuglevel command
  101. # -DDEBUG sets up code for debuglevel command
  102. #          debuglevel
  103. #               1 always force evaluation in evaluate
  104. #               4 print move list after search
  105. #               8 print move list after book before search
  106. #              16 print move list after each ply of search
  107. #              32 print adds to transposition table
  108. #              64 print returns from transposition table lookups
  109. #          128 print evals
  110. #          256 print search tree as it is generated
  111. #          512 debug trace of search tree
  112. #         1024 interactive tree print
  113. #
  114.  
  115. ###############  End of Gnuchess definitions ######################
  116.  
  117. CC = @CC@
  118. DEFINES = @DEFS@ -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY \
  119.     -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS
  120. CFLAGS = -O2 -Wall $(DEFINES)
  121. ALL_CFLAGS = -I$(srcdir) $(CFLAGS)
  122. INSTALL = @INSTALL@
  123. INSTALL_DATA = @INSTALL_DATA@
  124. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  125. LDFLAGS = @LDFLAGS@
  126. ALL_LDFLAGS = $(LDFLAGS)
  127. LIBS = @LIBS@ -lm
  128.  
  129. prefix = @prefix@
  130. exec_prefix = @exec_prefix@
  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) ../misc/gnuchess.lang $(LIBDIR)/gnuchess.lang
  160.     $(INSTALL) ../book/eco.pgn $(LIBDIR)/eco.pgn
  161.     $(INSTALL) gnuchess.data $(LIBDIR)/gnuchess.data
  162.     $(INSTALL) gnuchess.eco $(LIBDIR)/gnuchess.eco
  163.     $(INSTALL_DATA) ../doc/game.6 $(MANDIR)/game.6
  164.     $(INSTALL_DATA) ../doc/gnuan.6 $(MANDIR)/gnuan.6
  165.     $(INSTALL_DATA) ../doc/gnuchess.6 $(MANDIR)/gnuchess.6
  166.     $(INSTALL_DATA) ../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 *.o #*# *~ CL* PATCH* %*% *orig
  189.  
  190. distclean: clean tidy
  191.     rm -f config.cache config.log config.status Makefile
  192.  
  193. mostlyclean: clean
  194.  
  195. realclean: distclean
  196.  
  197. TAGS:
  198.     etags *.c *.h
  199.  
  200. info:
  201.     @echo Sorry, gnuchess is documented by a man page, not a texinfo file.
  202.  
  203. dvi:
  204.     @echo Sorry, gnuchess is documented by a man page, not a texinfo file.
  205.  
  206. dist:    
  207.     mkdir $(DISTDIR)
  208.     mkdir $(DISTDIR)/src
  209.     cp -r ../misc $(DISTDIR)
  210.     cp -r ../book $(DISTDIR)
  211.     cp -r ../test $(DISTDIR)
  212.     cp -r ../doc $(DISTDIR)
  213.     cp $(DISTSOURCE) $(DISTDIR)/src
  214.     -rm -f $(DISTDIR).tar.gz
  215.     tar cvf $(DISTDIR).tar $(DISTDIR)
  216.     gzip $(DISTDIR).tar
  217.     rm -rf $(DISTDIR)
  218.  
  219. check: all
  220.  
  221. ### End targets required by GNU standards ###################################
  222.  
  223. Makefile: Makefile.in config.status
  224.     ./config.status
  225.      
  226. config.status: configure
  227.     ./config.status --recheck
  228. gnuchess: mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomN.o uxdsp.o
  229.     $(CC) $(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)
  230.  
  231. gnuan: mainN.o bookG.o genmovesN.o ataks.o utilN.o evalN.o init.o searchG.o gnuan.o
  232.     $(CC) $(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)
  233.  
  234. gnuchessc: mainC.o bookC.o genmovesC.o ataks.o utilC.o evalC.o init.o searchC.o dspcomC.o nondspC.o
  235.     $(CC) $(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)
  236.  
  237. Dgnuchessr: mainDR.o bookN.o genmovesN.o ataks.o utilDR.o evalDR.o init.o searchDR.o dspcomDR.o nondspDR.o
  238.     $(CC)  -DDEBUG  -DDEBUG4 $(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)
  239.  
  240. gnuchessx: mainX.o bookX.o genmovesX.o ataks.o utilX.o evalX.o init.o searchX.o dspcomX.o nondspX.o
  241.     $(CC) $(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)
  242.  
  243. ecor: mainN.o eco.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomR.o nondspR.o
  244.     $(CC) $(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)
  245.  
  246. gnuchessr: mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomR.o nondspR.o
  247.     $(CC) $(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)
  248.  
  249. gnuchessn: mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomN.o nuxdsp.o
  250.     $(CC) $(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)
  251.  
  252. game: game.c gnuchess.h
  253.     $(CC) $(CFLAGS) -o game game.c
  254.     
  255. postprint: postprint.o
  256.     $(CC) $(CFLAGS) $(HASH) -o postprint postprint.o
  257.     
  258. gnuan.o: gnuan.c gnuchess.h version.h
  259.     $(CC) $(CFLAGS) $(HASH) $(LANGF) -DIGNUAN $(BINBOOK) -c gnuan.c
  260.  
  261. mainN.o: main.c gnuchess.h version.h ttable.h
  262.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  $(BINBOOK) -c main.c
  263.     mv main.o mainN.o
  264. mainC.o: main.c gnuchess.h version.h ttable.h
  265.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  $(BINBOOK) -DNONDSP -DCHESSTOOL \
  266.         -c main.c
  267.     mv main.o mainC.o
  268. mainX.o: main.c gnuchess.h version.h ttable.h
  269.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  $(BINBOOK) -DXBOARD  -c main.c
  270.     mv main.o mainX.o
  271. mainDR.o: main.c gnuchess.h version.h ttable.h
  272.     $(CC)  -DDEBUG -DDEBUG4 $(CFLAGS) $(HASH) $(LANGF)  $(BINBOOK) \
  273.         -c main.c
  274.     mv main.o mainDR.o
  275.  
  276. genmovesN.o: genmoves.c gnuchess.h version.h ttable.h
  277.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -c genmoves.c
  278.     mv genmoves.o genmovesN.o
  279. genmovesC.o: genmoves.c gnuchess.h version.h ttable.h
  280.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DNONDSP -DCHESSTOOL \
  281.         -c genmoves.c 
  282.     mv genmoves.o genmovesC.o
  283. genmovesX.o: genmoves.c gnuchess.h version.h ttable.h
  284.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DXBOARD \
  285.         -c genmoves.c
  286.     mv genmoves.o  genmovesX.o
  287.  
  288. eco.o: eco.c gnuchess.h version.h ataks.h ttable.h
  289.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  $(BINBOOK) $(BINECO)  $(PGNECO) -c eco.c 
  290.  
  291. bookN.o: book.c gnuchess.h version.h ataks.h ttable.h
  292.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  $(BINBOOK) $(PGNECO) $(BINECO) -c book.c 
  293.     mv book.o bookN.o
  294. bookG.o: book.c gnuchess.h version.h ataks.h ttable.h
  295.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  $(BINBOOK) $(PGNECO) $(BINECO) -DIGNUAN  -c book.c 
  296.     mv book.o bookG.o
  297. bookC.o: book.c gnuchess.h version.h ataks.h ttable.h
  298.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DNONDSP -DCHESSTOOL \
  299.           $(BINBOOK) \
  300.         $(PGNECO) $(BINECO) -c book.c 
  301.     mv book.o bookC.o
  302. bookX.o: book.c gnuchess.h version.h ataks.h ttable.h
  303.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DXBOARD  $(BINBOOK) \
  304.         $(PGNECO) $(BINECO) -c book.c
  305.     mv book.o  bookX.o
  306.  
  307. ataks.o: ataks.h ataks.c gnuchess.h version.h ttable.h
  308.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -c ataks.c
  309.  
  310. utilN.o: util.c gnuchess.h version.h
  311.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -c util.c
  312.     mv util.o utilN.o
  313.  
  314. utilX.o: util.c gnuchess.h version.h
  315.     $(CC) $(CFLAGS) $(HASH) $(LANGF)   \
  316.          -c util.c
  317.     mv util.o  utilX.o
  318.  
  319. utilC.o: util.c gnuchess.h version.h
  320.     $(CC) $(CFLAGS) $(HASH) $(LANGF)   \
  321.          -c util.c
  322.     mv util.o  utilC.o
  323.  
  324. evalC.o: eval.c gnuchess.h version.h ttable.h
  325.     $(CC) $(CFLAGS) $(HASH) $(LANGF)   -c eval.c
  326.     mv eval.o evalC.o
  327.  
  328. evalX.o: eval.c gnuchess.h version.h ttable.h
  329.     $(CC) $(CFLAGS) $(HASH) $(LANGF)   -c eval.c
  330.     mv eval.o evalX.o
  331.  
  332. evalN.o: eval.c gnuchess.h version.h ttable.h
  333.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -c eval.c
  334.     mv eval.o evalN.o
  335.  
  336. evalDR.o: eval.c gnuchess.h version.h ttable.h
  337.     $(CC)  -DDEBUG4 -DDEBUG $(CFLAGS) $(HASH) $(LANGF)  \
  338.         -c eval.c 
  339.     mv eval.o evalDR.o
  340. utilDR.o: util.c gnuchess.h version.h
  341.     $(CC)  -DDEBUG4 -DDEBUG $(CFLAGS) $(HASH) $(LANGF)  \
  342.         -c util.c 
  343.     mv util.o utilDR.o
  344.  
  345. init.o: init.c gnuchess.h version.h ttable.h
  346.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -c init.c
  347.  
  348. 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
  349.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -c search.c
  350.     mv search.o searchN.o
  351. 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
  352.     $(CC) $(CFLAGS) $(HASH) $(LANGF) -DIGNUAN  -c search.c
  353.     mv search.o searchG.o
  354. 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
  355.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DNONDSP -DCHESSTOOL \
  356.         -c search.c 
  357.     mv search.o searchC.o
  358. 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
  359.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DXBOARD \
  360.         -c search.c 
  361.     mv search.o searchX.o
  362. 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
  363.     $(CC)  -DDEBUG4 -DDEBUG $(CFLAGS) $(HASH) $(LANGF)  \
  364.         -c search.c 
  365.     mv search.o searchDR.o
  366.  
  367. uxdsp.o: uxdsp.c gnuchess.h version.h
  368.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -c uxdsp.c
  369.  
  370. nuxdsp.o: nuxdsp.c gnuchess.h version.h
  371.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -c nuxdsp.c
  372.  
  373. nondspC.o: nondsp.c gnuchess.h version.h
  374.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DNONDSP -DCHESSTOOL \
  375.         -c nondsp.c 
  376.     mv nondsp.o nondspC.o
  377. nondspX.o: nondsp.c gnuchess.h version.h
  378.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DNONDSP -DXBOARD \
  379.         -c nondsp.c 
  380.     mv nondsp.o nondspX.o
  381. nondspR.o: nondsp.c gnuchess.h version.h
  382.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DNONDSP \
  383.         -c nondsp.c 
  384.     mv nondsp.o nondspR.o
  385. nondspDR.o: nondsp.c gnuchess.h version.h
  386.     $(CC)  -DDEBUG4 -DDEBUG $(CFLAGS) $(HASH) $(LANGF)  -DNONDSP \
  387.          -c nondsp.c 
  388.     mv nondsp.o nondspDR.o
  389.  
  390. dspcomN.o: dspcom.c gnuchess.h version.h
  391.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -c dspcom.c
  392.     mv dspcom.o dspcomN.o
  393. dspcomC.o: dspcom.c gnuchess.h version.h
  394.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DNONDSP -DCHESSTOOL \
  395.         -c dspcom.c 
  396.     mv dspcom.o dspcomC.o
  397. dspcomX.o: dspcom.c gnuchess.h version.h
  398.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DNONDSP -DXBOARD \
  399.         -c dspcom.c 
  400.     mv dspcom.o dspcomX.o
  401. dspcomR.o: dspcom.c gnuchess.h version.h
  402.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DNONDSP \
  403.         -c dspcom.c 
  404.     mv dspcom.o dspcomR.o
  405. dspcomDR.o: dspcom.c gnuchess.h version.h
  406.     $(CC)  -DDEBUG -DDEBUG4 $(CFLAGS) $(HASH) $(LANGF)  -DNONDSP \
  407.         -c dspcom.c 
  408.     mv dspcom.o dspcomDR.o
  409.  
  410. postprint.o: postprint.c gnuchess.h version.h
  411.     $(CC) $(CFLAGS) $(HASH) -c postprint.c
  412.  
  413. binsort: binsort.c binsort.h
  414.     $(CC) $(CFLAGS) -o binsort binsort.c
  415.  
  416. ecosort: ecosort.c gnuchess.h
  417.     $(CC) $(CFLAGS) -o ecosort ecosort.c
  418.  
  419. ecocvt:    ecocvt.c
  420.     $(CC) $(CFLAGS) -o ecocvt ecocvt.c
  421.  
  422. gnuchess.data: $(BOOK)
  423.     -rm gnuchess.data
  424.     echo 3 0 >test;echo quit >>test
  425.     gzip -d -c  $(BOOK) > ./t
  426.     cat test| ./gnuchessr -b ./t  -B gnuchess.data $(BOOKOPTS)
  427.     rm test ./t
  428.  
  429. gnuchess.eco:    ecor binsort ecocvt ecosort
  430.     -rm -f gnuchess.eco step1.eco step2.eco
  431.     -echo 0 0 > step0.eco
  432.     -./ecor -b ../book/eco.pgn -B step1.eco < step0.eco
  433.     ./ecosort 
  434.     -./ecocvt step2.eco gnuchess.eco
  435.     -rm -f step0.eco step1.eco step2.eco
  436.     
  437. check: gnuchessr ../test/testall
  438.     cat ../test/testall | gnuchessr > test.out 2>&1
  439.  
  440. ../test/testall:
  441.     (cd ../test; zcat test.tar.gz | tar -xvf -)
  442.  
  443. bigcheck: gnuchessr ../test/testall
  444.     cat ../test/gnutest.run | gnuchessr > gnutest.out 2>&1
  445.