Article View: comp.os.msdos.programmer
Article #1287Re: BCC 2.0: What is the right way to use make & tlink?
From: Fuzzy Fox
Date: Fri, 04 Sep 1992 22:46
Date: Fri, 04 Sep 1992 22:46
27 lines
1334 bytes
1334 bytes
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. A work-around: Create a library and have each source file inserts its object file into the library as part of its build action. Have the exe file depend on the object files, but have it link from the library. Don't let the library get out of sync with the objects. -- #ifdef TRUE | Fuzzy Fox fuzzy@netcom.com #define TRUE 0 | a.k.a. David DeSimone an207@cleveland.freenet.edu #define FALSE 1 | #endif | How's my posting? Call 1-800-ALT-FLAME
Technical Details
Message-ID:
<1992Sep4.224643.3520@rei.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!rei2!foxReferences:
<Bu15L0.J1z@world.std.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!rei2!fox From: fox@rei.com (Fuzzy Fox) Subject: Re: BCC 2.0: What is the right way to use make & tlink? Message-ID: <1992Sep4.224643.3520@rei.com> Date: Fri, 4 Sep 1992 22:46:43 GMT References: <Bu15L0.J1z@world.std.com> Organization: Recognition Equipment, Inc. Lines: 27