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

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!utcsri!geac!r-node!zooid!ross
  3. From: Ross Ridge <ross@zooid.guild.org>
  4. Subject: Re: BCC 2.0: What is the right way to use make & tlink?
  5. Organization: ZOOiD BBS
  6. Date: Sat, 5 Sep 1992 06:51:44 GMT
  7. Message-ID: <1992Sep5.065144.13637@zooid.guild.org>
  8. References: <Bu15L0.J1z@world.std.com>
  9. Lines: 38
  10.  
  11. levin@world.std.com (Levin F Magruder) writes:
  12. >prog.exe: $(OBJECTS)
  13. >    tlink \bc\t0s.obj $(OBJECTS), progname, , ...
  14. >
  15. >worked until the command line overflowed.  So, I had to make a
  16. >response file for tlink.  And now I have to remember to update
  17. >both lists as I add modules.
  18. >
  19. >There must be some feature I am missing?
  20. >
  21. >If I'm *not* missing someone, someone here could probably write
  22. >a program in about 20 minutes that reads a list of file names
  23. >and spits out two files, an inclusion file for make and a response
  24. >file for tlink.  Or tell me some other intelligent way to do
  25. >this?
  26.  
  27. I have the Makefile create the response file automatically
  28. when building libraries, it should work for linking just as well:
  29.  
  30. mytinfo.lib: libcmd $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4)
  31.     del mytinfo.lib
  32.     $(AR) mytinfo.lib @libcmd
  33.  
  34. libcmd: makefile
  35.     echo $(ARFLAGS) & > libcmd
  36.     for %i in ($(OBJS1)) do echo + %i & >> libcmd
  37.     for %i in ($(OBJS2)) do echo + %i & >> libcmd
  38.     for %i in ($(OBJS3)) do echo + %i & >> libcmd
  39.     for %i in ($(OBJS4)) do echo + %i & >> libcmd
  40.     echo , >> libcmd
  41.  
  42.                             Ross Ridge
  43.  
  44. -- 
  45. Ross Ridge - The Great HTMU                         l/     //
  46.                                     [OO][oo]
  47. ross@zooid.guild.org                            /()\/()/
  48. uunet.ca!zooid!ross                             db     //
  49.