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

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!rei2!fox
  3. From: fox@rei.com (Fuzzy Fox)
  4. Subject: Re: BCC 2.0: What is the right way to use make & tlink?
  5. Message-ID: <1992Sep4.224643.3520@rei.com>
  6. Date: Fri, 4 Sep 1992 22:46:43 GMT
  7. References: <Bu15L0.J1z@world.std.com>
  8. Organization: Recognition Equipment, Inc.
  9. Lines: 27
  10.  
  11. levin@world.std.com (Levin F Magruder) writes:
  12.  
  13. >With the make & tlink that come with BCC 2.0, how do you set
  14. >things up so that you only need to maintain a single list of
  15. >object files?
  16.  
  17. >I defined a macro in make like:
  18. >OBJECTS=a.obj b.obj ....
  19.  
  20. >prog.exe: $(OBJECTS)
  21. >    tlink \bc\t0s.obj $(OBJECTS), progname, , ...
  22.  
  23. >worked until the command line overflowed.
  24.  
  25. You will always run into this problem anytime you try to put $(OBJECTS)
  26. onto a command line.
  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. -- 
  34. #ifdef TRUE         | Fuzzy Fox                  fuzzy@netcom.com
  35. #define  TRUE   0   | a.k.a. David DeSimone      an207@cleveland.freenet.edu
  36. #define  FALSE  1   |
  37. #endif              |         How's my posting?  Call 1-800-ALT-FLAME
  38.