Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!brutus.cs.uiuc.edu!apple!keith From: keith@Apple.COM (Keith Rollin) Newsgroups: comp.sys.mac.programmer Subject: Re: MacApp pascal compiler - include files Message-ID: <39177@apple.Apple.COM> Date: 4 Mar 90 23:04:13 GMT References: <1990Feb22.083647.25101@isy.liu.se> Distribution: comp Organization: Apple Computer Inc, Cupertino, CA Lines: 42 In article <1990Feb22.083647.25101@isy.liu.se> frederia@isy.liu.se (Frederic Aron) writes: > >Developping a large CAD software into MacApp, we would like to increase the >speed of the Pascal compiler. To avoid having compiling all the program when >changing only a small part of it, we did as shown in the cookbook: > - one UXXXX.p file for the interface > - a set of UXXXX.incx.p files for each main group of objects for the >implementation, declared as {$I UXXXX.incx.p} > >The problem is that the compiler is not compiling unless a change has been made >in the first include file, and is then compiling all the include files! > >Thanks to anyone who could make me see the light! > >Frederic ARON >Division of Applied Electronics >University of Linkoping-Sweden >frederia@isy.liu.se Frederic, What determines what files get recompiled is your XXX.MAMake file. You didn't post your XXX.MAMake file, so I don't know if there is a mistake in it anywhere. However, it should have a few lines that look something like this: "{ObjApp}"UXXXX.p.o "{SrcApp}UXXX.p" "{SrcApp}UXXX.inc1.p" "{SrcApp}UXXX.inc2.p" etc. This way, if any of your .incx.p files change, then your object file will be marked out of date, and will be rebuilt. I hope this helps, -- ------------------------------------------------------------------------------ Keith Rollin --- Apple Computer, Inc. --- Developer Technical Support INTERNET: keith@apple.com UUCP: {decwrl, hoptoad, nsc, sun, amdahl}!apple!keith "Argue for your Apple, and sure enough, it's yours" - Keith Rollin, Contusions