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

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!world!levin
  3. From: levin@world.std.com (Levin F Magruder)
  4. Subject: Re: BCC 2.0: What is the right way to use make & tlink?
  5. Message-ID: <Bu4A9o.MCw@world.std.com>
  6. Organization: The World Public Access UNIX, Brookline, MA
  7. References: <Bu15L0.J1z@world.std.com> <1992Sep4.224643.3520@rei.com> <1992Sep5.012643.27171@midway.uchicago.edu>
  8. Date: Sat, 5 Sep 1992 18:05:48 GMT
  9. Lines: 43
  10.  
  11. I asked how to use make files & tlink together.
  12.  
  13. In article <1992Sep5.012643.27171@midway.uchicago.edu> pynq@midway.uchicago.edu writes:
  14. >In article <1992Sep4.224643.3520@rei.com> fox@rei.com (Fuzzy Fox) writes:
  15.  
  16. >>>prog.exe: $(OBJECTS)
  17. >>>    tlink \bc\t0s.obj $(OBJECTS), progname, , ...
  18. >>
  19. >>>worked until the command line overflowed.
  20. >>
  21. >>A work-around:  Create a library and have each source file inserts its
  22. >>object file into the library as part of its build action.  Have the exe
  23. >>file depend on the object files, but have it link from the library.
  24. >>Don't let the library get out of sync with the objects.
  25. >
  26. >Ewww...
  27. >
  28. >Better idea: Get NDMAKE.  It will automatically build response files in
  29. >this kind of situation.
  30.  
  31. Another reader mailed me a lead that worked out.  There is a 
  32. directive (or whatever you call it) for make named &&.  I was
  33. able to do
  34.  
  35. prog: $(OBJECTS)
  36.     tlink @&&!
  37. $(OBJECTS)
  38. !, progname.exe, mapname.exe, libs
  39.  
  40. Or whatever.  I'm not at my pc now.  It works.  It creates a 
  41. tempfile containing the expansion of (OBJECTS) and supplies
  42. that tempfile name to tlink as the response file.
  43.  
  44. There was another option documented on the same page, <<, that
  45. did something similar, but I couldn't think of a use for it.
  46. I've heard other recommendations for NDMAKE.  But it's shareware,
  47. not freeware, isn't?  I don't want to pay for a make when I have
  48. one that works, and I can't sleep nights if i use shareware and
  49. don't pay for it.
  50.  
  51. Is there a free gnu make?  Is it any good?
  52.  
  53.  
  54.