home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / msdos / programm / 9074 < prev    next >
Encoding:
Text File  |  1992-09-07  |  1.8 KB  |  47 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!convex!news.oc.com!spssig.spss.com!uchinews!quads!pynq
  3. From: pynq@quads.uchicago.edu (George Jetson)
  4. Subject: Re: BCC 2.0: What is the right way to use make & tlink?
  5. Message-ID: <1992Sep5.012643.27171@midway.uchicago.edu>
  6. Sender: news@uchinews.uchicago.edu (News System)
  7. Reply-To: pynq@midway.uchicago.edu
  8. Organization: D. J. Dougherty & Associates
  9. References: <Bu15L0.J1z@world.std.com> <1992Sep4.224643.3520@rei.com>
  10. Date: Sat, 5 Sep 1992 01:26:43 GMT
  11. Lines: 34
  12.  
  13. In article <1992Sep4.224643.3520@rei.com> fox@rei.com (Fuzzy Fox) writes:
  14. >levin@world.std.com (Levin F Magruder) writes:
  15. >
  16. >>With the make & tlink that come with BCC 2.0, how do you set
  17. >>things up so that you only need to maintain a single list of
  18. >>object files?
  19. >
  20. >>I defined a macro in make like:
  21. >>OBJECTS=a.obj b.obj ....
  22. >
  23. >>prog.exe: $(OBJECTS)
  24. >>    tlink \bc\t0s.obj $(OBJECTS), progname, , ...
  25. >
  26. >>worked until the command line overflowed.
  27. >
  28. >A work-around:  Create a library and have each source file inserts its
  29. >object file into the library as part of its build action.  Have the exe
  30. >file depend on the object files, but have it link from the library.
  31. >Don't let the library get out of sync with the objects.
  32.  
  33. Ewww...
  34.  
  35. Better idea: Get NDMAKE.  It will automatically build response files in
  36. this kind of situation.
  37.  
  38. ************************************************************************
  39. A note to new readers:  the weasely :-) symbol is frowned upon in this
  40. group.  Any questions, see Phil Gustafson who will gladly rearrange your
  41. diodes for you.
  42.             - From the AFU FAQ -
  43.  
  44.     - pynq@quads.uchicago.edu, who is still costing the net
  45.       hundreds, if not thousands, of dollars, every time he posts -
  46. ************************************************************************
  47.