home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / msdos / programm / 7994 < prev    next >
Encoding:
Text File  |  1992-07-21  |  1.3 KB  |  34 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!gatech!hubcap!grimlok
  3. From: grimlok@hubcap.clemson.edu (Mike Percy)
  4. Subject: Re: Is this a "make" limitation?
  5. Message-ID: <1992Jul21.195950.27164@hubcap.clemson.edu>
  6. Organization: Clemson University
  7. References: <1992Jul21.162641.5897@tamsun.tamu.edu>
  8. Date: Tue, 21 Jul 1992 19:59:50 GMT
  9. Lines: 23
  10.  
  11. tpradeep@cs.tamu.edu (Pradeep K Tapadiya) writes:
  12.  
  13. >Given, say, 30 dependent files, my makefile compiles the source files as
  14. >   cl -c a.c
  15. >   cl -c b.c
  16. >   cl -c c.c
  17. >   and so on for all those source files which are out of date.
  18. >Obviously, for each such source file there is an overhead of
  19. >loading and releasing the compiler. A better construct would be
  20. >  cl -c a.c b.c c.c ...
  21. >wherein the compiler is loaded and released just once.
  22.  
  23. The Borland make has a construct {} that does this.
  24. .c.obj:
  25.    tcc -c {$< }
  26. gives the desired behavior (builds a long command line to execute
  27. multiple compiles with each load of the compiler, splitting them up if
  28. the line would be too long).
  29.  
  30. Mike Percy             | grimlok@hubcap.clemson.edu  | I don't know about
  31. Sr. Systems Analyst    | mspercy@clemson.clemson.edu | your brain, but mine
  32. Info. Sys. Development | mspercy@clemson.BITNET      | is really...bossy.
  33. Clemson University     | (803) 656-3780              | (Laurie Anderson)
  34.