Article View: comp.os.msdos.programmer
Article #1300Re: BCC 2.0: What is the right way to use make & tlink?
From: Roy M. Silvernail
Date: Sat, 05 Sep 1992 16:24
Date: Sat, 05 Sep 1992 16:24
36 lines
1483 bytes
1483 bytes
fox@rei.com (Fuzzy Fox) writes:
> levin@world.std.com (Levin F Magruder) writes:
>
> >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 ....
>
> >prog.exe: $(OBJECTS)
> > tlink \bc\t0s.obj $(OBJECTS), progname, , ...
>
> >worked until the command line overflowed.
>
> You will always run into this problem anytime you try to put $(OBJECTS)
> onto a command line.
with BCC 2.0, that should be make 3.0, yes? If so, the solution is to
have make build a response file on the fly...
prog.exe: $(OBJECTS)
tlink @&&|
\bc\t0s.obj $(OBJECTS)
$*
$*
\bc\ts.lib other\libs\here
|
I do this all the time, and it saves having to keep a linkfile in sync
with the project.
--
Roy M. Silvernail -- [my machine ] "Sometimes, you're the windshield....
roy%cybrspc@cs.umn.edu [my opinions] sometimes, you're the bug!"
cybrspc!roy@cs.umn.edu [my $0.0275 ] --Mark Knopfler
Technical Details
Message-ID:
<RFZmqB1w165w@cybrspc.UUCP>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!umn.edu!cybrspc!royReferences:
<1992Sep4.224643.3520@rei.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!umn.edu!cybrspc!roy From: roy%cybrspc@cs.umn.edu (Roy M. Silvernail) Newsgroups: comp.os.msdos.programmer Subject: Re: BCC 2.0: What is the right way to use make & tlink? Message-ID: <RFZmqB1w165w@cybrspc.UUCP> Date: Sat, 05 Sep 92 11:24:38 CDT References: <1992Sep4.224643.3520@rei.com> Organization: Villa CyberSpace, Minneapolis, MN Lines: 36