🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #247

Re: ivmkmf template macro for "MakeObjectOnly".

#247
From: Glen Larsen
Date: Tue, 07 Apr 1992 16:58
36 lines
1667 bytes
On 7 Apr 92 09:39:35 GMT ID:<2459@ucl-cs.uucp>, you write:
> Is there a macro to make objects files only (*.o files), that is to
> say *not* to build a library or an a.out?

Imakefiles are actually very simple to manipulate.  To do what you
want to do, all imake needs is the rules to build the source into an
object (MakeObjectFromSrc), an "all:" target (AllTarget) that will
just build your objects, and a list of dependencies.  If you use
ComplexProgramTarget, you will have to comment it out since it does
"all of the above" for you.

Here's the Imakefile I played with to get an object-only build,

/*----*/
SRCS = $(SRC)/example.c $(SRC)/main.c
OBJS = example.o main.o

Use_libInterViews()
/* ComplexProgramTarget(main) */

MakeObjectFromSrc(example)
MakeObjectFromSrc(main)

AllTarget($(OBJS))
DependTarget()
/*----*/

Take a look in $IVTOP/installed/config/InterViews/rules.def for
details of available imake macros.

-glen

---
Glen Larsen                                               glenl@hadar.fai.com
Fujitsu Network Transmission Systems                            (408)456-7890
Software Technology Group, San Jose, LeftCoast USA
Technical Details
Message-ID: <9204071654.AA27325@hadar.fai.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!LABREA.STANFORD.EDU!adobe!hadar.fai.com!glenl
References: <2459@ucl-cs.uucp>

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!LABREA.STANFORD.EDU!adobe!hadar.fai.com!glenl
From: adobe!hadar.fai.com!glenl@LABREA.STANFORD.EDU (Glen Larsen)
Subject: Re: ivmkmf template macro for "MakeObjectOnly".
Message-ID: <9204071654.AA27325@hadar.fai.com>
Sender: news@shelby.stanford.edu (USENET News System)
Organization: Internet-USENET Gateway at Stanford University
References: <2459@ucl-cs.uucp>
Date: Tue, 7 Apr 1992 16:58:53 GMT
Lines: 37