Category : C Source Code
Archive   : GNUCHESS.ZIP
Filename : MAKEFILE

 
Output of file : MAKEFILE contained in archive : GNUCHESS.ZIP
# makefile.dos - Makefile for CHESS (MS-DOS Version)
# Copyright (C) 1990 by Thorsten Ohl, [email protected]
# Copyright (C) 1986, 1987, 1988, 1989, 1990 Free Software Foundation, Inc.
#
# This makefile will NOT work with Microsoft's make.
# Use a **IX compatible make instead.
#
# This file is not yet 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 will be the curses-based chess.
# gnuchessn will be the fancy-display-curses-based chess.
# gnuchessr will be the xchess/chesstool based chess.
# (/usr/games/chesstool gnuchessr)
# for use with SUN's chesstool and X-window's xchess.
# To use with latter, add -DCHESSTOOL to the nondsp.o
# compilation lines (e.g. cc -O -DCHESSTOOL ...)
# 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.

# if you don't want the IBM PC's graphic characters, add -DSEVENBIT
CC = cl
LINKER = link
BINDIR = .
LIBDIR = .
MFILE = .\makefile
HASH = -DHASHFILE=\"$(LIBDIR)/gnuchess.has\"
BOOK = -DBOOK=\"$(LIBDIR)/gnuchess.boo\"
CFLAGS = -AC -Olita -Gs -G2 -W3 -DNOMEMSET -DMSDOS -DSEVENBIT -nologo
LOPTS = /E /ST:0x9000

# The `-Ol' flag (enable loop optimization) is not recommended:
# gnuchess.c(430) : fatal error C1001: Internal Compiler Error
# (compiler file '@(#)ctypes.c:1.107', line 474)
# Contact Microsoft Technical Support

SOURCE = gnuchess.c gnuchess.h uxdsp.c nuxdsp.c nondsp.c version.h

.c.obj:
@$(CC) $(CFLAGS) -c $*.c

build: gnuchess.exe gnuchesr.exe gnucheso.exe

clean:
-del *.obj
-del *.exe

rebuild:
$(MAKE) /f $(MFILE) clean
$(MAKE) /f $(MFILE) build

gnuchess.exe: gnuchess.obj nuxdsp.obj
link /NOLOGO @< gnuchess+
nuxdsp,
$*,
$(LOPTS);
<
gnuchesr.exe: gnuchess.obj nondsp.obj
link /NOLOGO @< gnuchess+
nondsp,
$*,
$(LOPTS);
<
gnucheso.exe: gnuchess.obj uxdsp.obj
link /NOLOGO @< gnuchess+
uxdsp,
$*,
$(LOPTS);
<
gnuchess.obj: gnuchess.c gnuchess.h
@$(CC) $(CFLAGS) @< $(HASH) $(BOOK) -c $*.c
<
uxdsp.obj: uxdsp.c gnuchess.h

nuxdsp.obj: nuxdsp.c gnuchess.h

nondsp.obj: nondsp.c gnuchess.h



  3 Responses to “Category : C Source Code
Archive   : GNUCHESS.ZIP
Filename : MAKEFILE

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/