Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site ur-tut.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!rochester!ur-tut!scco
From: scco@ur-tut.UUCP (Sean Colbath)
Newsgroups: net.unix,net.lang.pascal
Subject: Re: Using Makefiles with Pascal
Message-ID: <207@ur-tut.UUCP>
Date: Wed, 6-Nov-85 15:43:52 EST
Article-I.D.: ur-tut.207
Posted: Wed Nov  6 15:43:52 1985
Date-Received: Sun, 10-Nov-85 08:22:12 EST
References: <206@ur-tut.UUCP>
Reply-To: scco@ur-tut.UUCP (Sean Colbath)
Distribution: net
Organization: Univ. of Rochester Computing Center
Lines: 27
Keywords: Pascal, Makefiles
Xref: watmath net.unix:6186 net.lang.pascal:370

In article <206@ur-tut.UUCP> I write:
>I recently discovered the wonders of 'makefiles' when compiling sources
>from net.sources, and decided that it would be a 'neat thing' to use them
>with the Pascal programs I am writing.  Since I was starting on a new
>project, I made up a sample makefile, made a 'main.p' that had all the
>procedures declared as external, and started writing procedures.  However,
>a problem ensued.  The procedures (for obvious reasons) did not know about
>any of the types I had declared in my main program.  This included the
>complex types in the parameters I was passing.  The only thing I could 
>figure out to do was compile the main program/procedures as one large 
>program (grunge).  Is there any way around this, or am I just out of luck?

I have received several mail responses to my query, and I thank those people
who took the time to write.  However, I realized as I read the mail that I
neglected to mention the operating system/pascal compiler I was using. I
am *not* using 'pc', what I believe is the Berkley pascal compiler.  I am using
the pascal compiler distributed with the Pyramid OSx system.  I checked the 
man page, and it also uses cpp to pre-process the program, but since I am 
a novice at C, I would appreciate any sample program that someone could whip
up (in Pascal) that used Makefiles, .h files, and #include.  Again, thanks
to those people who were so prompt in replying to my posting.

-Sean Colbath

"Dave, why don't you take a stress pill and lie down for a while?"
UUCP:    {allegra,decvax,ihnp4}!seismo!rochester!ur-tut!scco
BITNET:  SCCO@UORVM