home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / programm / 9043 < prev    next >
Encoding:
Text File  |  1992-09-03  |  1.1 KB  |  36 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!world!levin
  3. From: levin@world.std.com (Levin F Magruder)
  4. Subject: BCC 2.0: What is the right way to use make & tlink?
  5. Message-ID: <Bu15L0.J1z@world.std.com>
  6. Organization: The World Public Access UNIX, Brookline, MA
  7. Date: Fri, 4 Sep 1992 01:31:48 GMT
  8. Lines: 26
  9.  
  10. Yes, I have the manual and I've read the manual, but I can't
  11. figure out:
  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. and the line
  21.  
  22. prog.exe: $(OBJECTS)
  23.     tlink \bc\t0s.obj $(OBJECTS), progname, , ...
  24.  
  25. worked until the command line overflowed.  So, I had to make a
  26. response file for tlink.  And now I have to remember to update
  27. both lists as I add modules.
  28.  
  29. There must be some feature I am missing?
  30.  
  31. If I'm *not* missing someone, someone here could probably write
  32. a program in about 20 minutes that reads a list of file names
  33. and spits out two files, an inclusion file for make and a response
  34. file for tlink.  Or tell me some other intelligent way to do
  35. this?
  36.