Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Dann, I lost a link you had provided

Author: Pete Galati

Date: 08:31:05 08/20/99

Go up one level in this thread


On August 20, 1999 at 03:55:18, Alex Boby wrote:

>On August 19, 1999 at 18:05:39, Pete Galati wrote:
>
>>I've copied this to a txt file for reference, I've generally stumbled when
>>combining .c files but you seem to be #include ing them at the top of a main.c
>>type of file, Pierre seems to do that.
>
>   I wish I knew a better way but unfortunetly I was half asleep that morning of
>csc270 when they went over makefiles :o I've never quite taken the time to
>figure that stuff out. Just putting all your includes inside your main
>essentialy just makes one long source file in the end, just saves time in
>looking through the source for specific lines because you have it in smaller
>chunks.

I had emailed Tom Kerrigan about how I had addopted TSCP to work something like
Pierre with the includes in the main c file so that I could use it with that
very simple modified makefile that I had used on Pierre, and Tom seems to have
some rather solid makefile knowlege I'd say, he came up with this rough sketch
of what I should be doing instead:

# begin
CFILES = board data eval main search
tscp: $(CFILES).o
        gcc -o tscp $(CFILES).o
$(CFILES).c: data.h defs.h protos.h
        gcc -c $(CFILES).c
# end

So I havn't taken time to try it to be quite honest, it all looks very workable
to me, it would take very little to addapt that to Pierre I think. I meant to
send you something on that but I didn't take time to mess with it yet. Here's a
monster page on makefiles that tells you more things than you want to know:
http://www.cslab.vt.edu/manuals/make/make_toc.html

Pete



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.