home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
files
/
gnu
/
gchsrc31
/
makefile
< prev
next >
Wrap
Makefile
|
1992-04-27
|
2KB
|
65 lines
#
# Makefile for CHESS
#
# Copyright (C) 1986, 1987, 1988, 1989, 1990 Free Software Foundation, Inc.
#
# This file is part of CHESS.
#
# CHESS is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY. No author or distributor
# accepts responsibility to anyone for the consequences of using it
# or for whether it serves any particular purpose or works at all,
# unless he says so in writing. Refer to the CHESS General Public
# License for full details.
#
# Everyone is granted permission to copy, modify and redistribute
# CHESS, but only under the conditions described in the
# CHESS General Public License. A copy of this license is
# supposed to have been given to you along with CHESS so you
# can know your rights and responsibilities. It should be in a
# file named COPYING. Among other things, the copyright notice
# and this notice must be preserved on all copies.
#
# gnuchess.tos will be the Atari graphic-based chess.
# gnuchess will be the curses-based chess.
#
# If you want to use the persistent transpositon table add
# -DHASHFILE=\"$(LIBDIR)/gnuchess.hash\"
# to the gnuchess.o compilation line. You also have to run gnuchess -t
# To actually create the file. -t can also be used to report
# statistics about the file or to resize it.
#
TEMP=D:/tmp
TMP=D:/tmp
TMPDIR=D:/tmp
VERS= 3.1
BINDIR= /usr/gnu/bin
LIBDIR= /usr/gnu/lib
LCURSES=-lcurses -ltermcap
HASH=-DHASHFILE=$(LIBDIR)/gnuchess.hash
BOOK=-DBOOK=$(LIBDIR)/gnuchess.book
CC=gcc -W
CCC=gcc
CPPFLAGS= -W -O2
#LDFLAGS=
LDLIBS=-lg++
ATARIOBJ=atarigui.o piece.o buttons.o cursor.o beeps.o timer.o help.o
all : gnuchess.tos
gnuchess.tos: gnuchess.o $(ATARIOBJ) interact.o
$(CCC) $(LDFLAGS) gnuchess.o $(ATARIOBJ) interact.o -latari $(LDLIBS) -o gnuchess.tos
gnuchees.tos: gnuchess.o nuxui.o interact.o
$(CCC) $(LDFLAGS) gnuchess.o nuxui.o interact.o $(LCURSES) $(LDLIBS) -o gnuchees.tos
gnuchess.o: gnuchess.cc
$(CCC) $(CPPFLAGS) -c gnuchess.cc
nuxui.o: nuxui.cc
$(CCC) $(CPPFLAGS) -c nuxui.cc
interact.o: interact.cc
$(CCC) $(CPPFLAGS) -c interact.cc