home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- Path: sparky!uunet!world!levin
- From: levin@world.std.com (Levin F Magruder)
- Subject: BCC 2.0: What is the right way to use make & tlink?
- Message-ID: <Bu15L0.J1z@world.std.com>
- Organization: The World Public Access UNIX, Brookline, MA
- Date: Fri, 4 Sep 1992 01:31:48 GMT
- Lines: 26
-
- Yes, I have the manual and I've read the manual, but I can't
- figure out:
-
- With the make & tlink that come with BCC 2.0, how do you set
- things up so that you only need to maintain a single list of
- object files?
-
- I defined a macro in make like:
- OBJECTS=a.obj b.obj ....
-
- and the line
-
- prog.exe: $(OBJECTS)
- tlink \bc\t0s.obj $(OBJECTS), progname, , ...
-
- worked until the command line overflowed. So, I had to make a
- response file for tlink. And now I have to remember to update
- both lists as I add modules.
-
- There must be some feature I am missing?
-
- If I'm *not* missing someone, someone here could probably write
- a program in about 20 minutes that reads a list of file names
- and spits out two files, an inclusion file for make and a response
- file for tlink. Or tell me some other intelligent way to do
- this?
-