bet@ORION.MC.DUKE.EDU (Bennett Todd) (12/23/89)
I unpacked gnuchess-1.53.tar.Z from prep. After (successfully) building
gnuchess itself, I changed directory into Xchess and attempted to make.
It skipped the compilation and went straight into (unsuccessfully)
trying to link. /bin/make worked fine.
I'm running SunOS 3.5 on a Sun 3/280. Make 3.57 was built with gcc 1.36.
You have all the materials to recreate this scenario squatting on prep,
but here's a script with the relevant info for completeness:
Script started on Fri Dec 22 11:04:59 1989
george[1] ls -l
total 348
-rw------- 1 bet 6477 Nov 8 1988 COPYING
-rw------- 1 bet 2520 Feb 20 1989 Makefile
-rw------- 1 bet 811 Nov 11 1988 ScrollText
-rw------- 1 bet 3844 Nov 25 1988 XCircle.c
-rw------- 1 bet 5082 Nov 8 1988 bishop.bitmap
-rw------- 1 bet 5097 Nov 8 1988 bishop_mask.bitmap
-rw------- 1 bet 5106 Nov 8 1988 bishop_outline.bitmap
-rw------- 1 bet 900 Nov 8 1988 bishop_small.bitmap
-rw------- 1 bet 924 Nov 8 1988 bishop_small_outline.bitmap
-rw------- 1 bet 4783 Jun 9 1989 board.c
-rw------- 1 bet 9109 Nov 25 1988 button.c
-rw-r--r-- 1 bet 7233 Nov 25 1988 clock.c
-rw------- 1 bet 11973 Nov 25 1988 control.c
-rw-r--r-- 1 bet 7569 Nov 25 1988 jail.c
-rw-r--r-- 1 bet 5076 Nov 8 1988 king.bitmap
-rw-r--r-- 1 bet 5091 Nov 8 1988 king_mask.bitmap
-rw-r--r-- 1 bet 5100 Nov 8 1988 king_outline.bitmap
-rw-r--r-- 1 bet 894 Nov 8 1988 king_small.bitmap
-rw-r--r-- 1 bet 918 Nov 8 1988 king_small_outline.bitmap
-rw-r--r-- 1 bet 5082 Nov 8 1988 knight.bitmap
-rw-r--r-- 1 bet 5097 Nov 8 1988 knight_mask.bitmap
-rw-r--r-- 1 bet 5106 Nov 8 1988 knight_outline.bitmap
-rw-r--r-- 1 bet 900 Nov 8 1988 knight_small.bitmap
-rw-r--r-- 1 bet 924 Nov 8 1988 knight_small_outline.bitmap
-rw-r--r-- 1 bet 2968 Nov 25 1988 message.c
-rw------- 1 bet 9117 Nov 25 1988 parse.c
-rw-r--r-- 1 bet 5076 Nov 8 1988 pawn.bitmap
-rw-r--r-- 1 bet 5091 Nov 8 1988 pawn_mask.bitmap
-rw-r--r-- 1 bet 5100 Nov 8 1988 pawn_outline.bitmap
-rw-r--r-- 1 bet 894 Nov 8 1988 pawn_small.bitmap
-rw-r--r-- 1 bet 918 Nov 8 1988 pawn_small_outline.bitmap
-rw-r--r-- 1 bet 3228 Nov 25 1988 popup.c
-rw-r--r-- 1 bet 4329 Nov 25 1988 program.c
-rw-r--r-- 1 bet 5079 Nov 8 1988 queen.bitmap
-rw-r--r-- 1 bet 5094 Nov 8 1988 queen_mask.bitmap
-rw-r--r-- 1 bet 5103 Nov 8 1988 queen_outline.bitmap
-rw-r--r-- 1 bet 897 Nov 8 1988 queen_small.bitmap
-rw-r--r-- 1 bet 921 Nov 8 1988 queen_small_outline.bitmap
-rw-r--r-- 1 bet 6979 Nov 25 1988 record.c
-rw-r--r-- 1 bet 5076 Nov 8 1988 rook.bitmap
-rw-r--r-- 1 bet 5091 Nov 8 1988 rook_mask.bitmap
-rw-r--r-- 1 bet 5100 Nov 8 1988 rook_outline.bitmap
-rw-r--r-- 1 bet 894 Nov 8 1988 rook_small.bitmap
-rw-r--r-- 1 bet 918 Nov 8 1988 rook_small_outline.bitmap
drwxr-xr-x 2 bet 512 Dec 22 10:39 scrollText
-rw------- 1 bet 57716 Nov 25 1988 scrollText.c
-rw------- 1 bet 782 Nov 11 1988 scrollText.h
-rw-r--r-- 1 bet 5079 Nov 8 1988 shade.bitmap
-rw-r--r-- 1 bet 6618 Nov 25 1988 std.c
-rw-r--r-- 1 bet 2536 Nov 8 1988 std.h
-rw-r--r-- 1 bet 6908 Nov 25 1988 valid.c
-rw------- 1 bet 25887 Nov 25 1988 window.c
-rw------- 1 bet 25126 Nov 11 1988 window.c.bm
-rw-r--r-- 1 bet 6182 Nov 8 1988 xchess.1
-rwxr-xr-x 1 bet 4822 Apr 30 1989 xchess.c
-rw-r--r-- 1 bet 4714 Nov 25 1988 xchess.c.150
-rw-r--r-- 1 bet 328 Nov 8 1988 xchess.cur
-rw-r--r-- 1 bet 169 Nov 8 1988 xchess.game
-rw-r--r-- 1 bet 7136 Nov 8 1988 xchess.h
-rw-r--r-- 1 bet 1875 Nov 8 1988 xchess.icon
-rw-r--r-- 1 bet 297 Nov 8 1988 xchess_mask.cur
george[2] cat Makefile
# RCS Info: $Revision: 1.5 $ on $Date: 86/11/26 12:09:19 $
# $Source: /users/faustus/xchess/RCS/Makefile,v $
# Copyright (c) 1985 Wayne A. Christopher, U. C. Berkeley CAD Group
#
# Makefile for xchess.
#CC = cc -O -m68010 -L/pub.MC68010/lib -L/usr.MC68010/lib
CC = cc -O
CFILES =\
board.c\
button.c\
clock.c\
control.c\
jail.c\
message.c\
parse.c\
popup.c\
program.c\
record.c\
std.c\
valid.c\
window.c\
XCircle.c
COBJS =\
board.o\
button.o\
clock.o\
control.o\
jail.o\
message.o\
parse.o\
popup.o\
program.o\
record.o\
std.o\
valid.o\
window.o\
XCircle.o
HFILES =\
std.h\
xchess.h
SOURCE = $(CFILES)
ALLFILES = $(SOURCE) $(HFILES)
INCLUDE = -I.
DEFINES = -DDEF_PROGRAM=\"gnuchess\"
CFLAGS = $(DEFINES) $(INCLUDE)
LINTFLAGS = -u -z -lc -DLINT $(DEFINES) $(INCLUDE)
LINTLIB = ../lib/llib-lX.ln
#LDFLAGS = -L/usr2/X/lib -z -lX -lm
LDFLAGS = -loldX -lX11 -z -lX -lm
GPLDFLAGS = -z -loldX -lX11 -lXMenu_p -lX -lm_p -g -pg
.c.o: $*.c
$(CC) $(CFLAGS) -c $*.c
.s.o: $*.s
$(CC) $(CFLAGS) -c $*.s
all: xchess scrollText.o
@echo "All done."
everything: all tags depend lint wc
@echo "All done."
xchess: xchess.o $(COBJS) scrollText.o
$(CC) -o xchess xchess.o $(COBJS) scrollText.o \
$(LDFLAGS)
scrollText.o: scrollText.h scrollText.c
gpxchess: xchess.o $(COBJS)
$(CC) -o gpxchess xchess.o $(COBJS) scrollText/libScroll.a \
$(GPLDFLAGS)
lint: $(SOURCE)
lint $(LINTFLAGS) $(SOURCE) $(LINTLIB) | \
grep -v "multiply declared"
qgrind: $(ALLFILES)
qgrind -lc $(ALLFILES)
vgrind: $(ALLFILES)
vgrind -lc $(ALLFILES)
opt: all
reopt: all
install: all
source: $(SOURCE)
tags: $(ALLFILES)
ctags -w -t *.c *.h > /dev/null 2>&1
wc: $(ALLFILES)
@wc $(ALLFILES)
print: $(ALLFILES)
@pr $(ALLFILES)
clean:
rm -f *.o *.a *.out xchess tags foo tmp
tar:
tar -cf xchess.tar Makefile *.h *.c *.bitmap *.icon *.cur *.1\
scrollText/Makefile scrollText/*.h scrollText/*.c scrollText/*.1\
scrollText/*.3
$(ALLFILES):
co $@
depend: $(SOURCE)
cc -M $(CFLAGS) $(CFILES) > makedep
echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
echo '$$r makedep' >>eddep
echo 'w' >>eddep
ed - Makefile < eddep
rm eddep makedep
echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
echo '# see make depend above' >> Makefile
#-----------------------------------------------------------------
# DO NOT DELETE THIS LINE -- make depend uses it
# DEPENDENCIES MUST END AT END OF FILE
xchess.o $(COBJS): $(HFILES)
george[3] which make
/usr/local/bin/make
george[4] make -v
GNU Make version 3.57, by Richard Stallman and Roland McGrath.
Copyright (C) 1988, 1989 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
cc -O -o xchess xchess.o board.o button.o clock.o control.o jail.o message.o parse.o popup.o program.o record.o std.o valid.o window.o XCircle.o scrollText.o \
-loldX -lX11 -z -lX -lm
ld: No such file or directory for xchess.o
make: *** [xchess] Error 1
george[5] /bin/make
cc -O -DDEF_PROGRAM=\"gnuchess\" -I. -c xchess.c
cc -O -DDEF_PROGRAM=\"gnuchess\" -I. -c board.c
cc -O -DDEF_PROGRAM=\"gnuchess\" -I. -c button.c
cc -O -DDEF_PROGRAM=\"gnuchess\" -I. -c clock.c
(and on it went).
-Bennett
bet@orion.mc.duke.edu