home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 2 / DATAFILE_PDCD2.iso / games / _gnuchess / !GnuChess / src / Makefile
Encoding:
Makefile  |  1994-02-28  |  1.9 KB  |  55 lines

  1. #
  2. # Makefile for CHESS
  3. #
  4. # Copyright (C) 1986, 1987, 1988, 1989, 1990 Free Software Foundation, Inc.
  5. #
  6. # This file is part of CHESS.
  7. #
  8. # CHESS is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY.  No author or distributor
  10. # accepts responsibility to anyone for the consequences of using it
  11. # or for whether it serves any particular purpose or works at all,
  12. # unless he says so in writing.  Refer to the CHESS General Public
  13. # License for full details.
  14. #
  15. # Everyone is granted permission to copy, modify and redistribute
  16. # CHESS, but only under the conditions described in the
  17. # CHESS General Public License.   A copy of this license is
  18. # supposed to have been given to you along with CHESS so you
  19. # can know your rights and responsibilities.  It should be in a
  20. # file named COPYING.  Among other things, the copyright notice
  21. # and this notice must be preserved on all copies.
  22. #
  23. # gnuchess  will be the curses-based chess.
  24. # gnuchessn will be the fancy-display-curses-based chess.
  25. # gnuchessr will be the xchess/chesstool based chess.
  26. #        (/usr/games/chesstool gnuchessr)
  27. #    for use with SUN's chesstool and X-window's xchess.
  28. #    To use with latter, add -DCHESSTOOL to the nondsp.o
  29. #    compilation lines (e.g. cc -O -DCHESSTOOL ...)
  30. # If you want to use the persistent transpositon table add
  31. # -DHASHFILE=\"$(LIBDIR)/gnuchess.hash\"
  32. # to the gnuchess.o compilation line. You also have to run gnuchess -t
  33. # To actually create the file. -t can also be used to report
  34. # statistics about the file or to resize it.
  35. #
  36. VERS=    3.1
  37. linkflags= -aif -o $@ gcc:o.gcc c:o.unixlib
  38. CC=    gcc -W
  39. #CFLAGS=    -O2 -D__STDC__ -finline-functions -D__arm_small__
  40. CFLAGS=    -O2 -D__STDC__ -finline-functions 
  41.  
  42.  
  43. all : gchess 
  44.  
  45. gchess: o.gnuchess o.nuxdsp
  46.     drlink $(linkflags) o.gnuchess o.nuxdsp
  47.  
  48. o.gnuchess: c.gnuchess
  49.     $(CC) $(CFLAGS)  -c -o o.gnuchess c.gnuchess
  50.  
  51. o.nuxdsp: c.nuxdsp
  52.     $(CC) $(CFLAGS) -c -o o.nuxdsp c.nuxdsp
  53.  
  54.  
  55.