home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / msdos / programm / 9087 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.4 KB

  1. Path: sparky!uunet!spool.mu.edu!umn.edu!cybrspc!roy
  2. From: roy%cybrspc@cs.umn.edu (Roy M. Silvernail)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: BCC 2.0: What is the right way to use make & tlink?
  5. Message-ID: <RFZmqB1w165w@cybrspc.UUCP>
  6. Date: Sat, 05 Sep 92 11:24:38 CDT
  7. References: <1992Sep4.224643.3520@rei.com>
  8. Organization: Villa CyberSpace, Minneapolis, MN
  9. Lines: 36
  10.  
  11. fox@rei.com (Fuzzy Fox) writes:
  12.  
  13. > levin@world.std.com (Levin F Magruder) writes:
  14. > >With the make & tlink that come with BCC 2.0, how do you set
  15. > >things up so that you only need to maintain a single list of
  16. > >object files?
  17. > >I defined a macro in make like:
  18. > >OBJECTS=a.obj b.obj ....
  19. > >prog.exe: $(OBJECTS)
  20. > >    tlink \bc\t0s.obj $(OBJECTS), progname, , ...
  21. > >worked until the command line overflowed.
  22. > You will always run into this problem anytime you try to put $(OBJECTS)
  23. > onto a command line.
  24.  
  25. with BCC 2.0, that should be make 3.0, yes?  If so, the solution is to
  26. have make build a response file on the fly...
  27.  
  28. prog.exe: $(OBJECTS)
  29.     tlink @&&|
  30. \bc\t0s.obj $(OBJECTS)
  31. $*
  32. $*
  33. \bc\ts.lib other\libs\here
  34. |
  35.  
  36. I do this all the time, and it saves having to keep a linkfile in sync
  37. with the project.
  38. --
  39. Roy M. Silvernail --    [my machine ] "Sometimes, you're the windshield....
  40. roy%cybrspc@cs.umn.edu  [my opinions]            sometimes, you're the bug!"
  41. cybrspc!roy@cs.umn.edu  [my $0.0275 ]                      --Mark Knopfler
  42.