www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/27/10:28:55

From: kagel AT quasar DOT bloomberg DOT com
Date: Mon, 27 Jan 1997 10:03:09 -0500
Message-Id: <9701271503.AA11916@quasar.bloomberg.com >
To: geneb AT web DOT wa DOT net
Cc: djgpp AT delorie DOT com
In-Reply-To: <Pine.LNX.3.93.970123220552.4100B-100000@web.wa.net> (message from Gene Buckle on Thu, 23 Jan 1997 22:12:05 -0800 (PST))
Subject: Re: question on make syntax
Reply-To: kagel AT dg1 DOT bloomberg DOT com

   Errors-To: postmaster AT ns1
   Date: Thu, 23 Jan 1997 22:12:05 -0800 (PST)
   From: Gene Buckle <geneb AT web DOT wa DOT net>
   Mime-Version: 1.0
   Content-Type: TEXT/PLAIN; charset=US-ASCII
   Content-Length: 1390

   I need to duplicate the method borland make uses to stuff multiple lines
   of make info to a command.  Example:


   $(BIN)\ibmbio.com:      $(DRVR_IND_OBJ) $(CONFIG_IND_OBJ) $(DRVR_DEP_OBJ)

	   $(LINK) /MAP @&&!
   $(DRVR_IND_OBJ1)+
   $(DRVR_IND_OBJ2)+
   $(DRVR_DEP_OBJ)+
   $(CONFIG_IND_OBJ1)+
   $(CONFIG_IND_OBJ2)+
   $(DRVR_IND_OBJ5)+
   $(CONFIG_DEP_OBJ)
   $*

   (the top line of the example was cut off due to the copy/paste method I
   used)

   The result of this construct is this:

   Microsoft (R) Segmented Executable Linker  Version 5.31.009 Jul 13 1992
   Copyright (C) Microsoft Corp 1984-1992.  All rights reserved.

   Object Modules [.obj]: /MAP drivers\bin\biosgrps.obj drivers\bin\init.obj
   driver
   Object Modules [.obj]: drivers\bin\console.obj drivers\bin\disk.obj
   drivers\bin\
   Object Modules [.obj]: drivers\bin\MSG\biosmsgs.obj+
   Object Modules [.obj]: config\bin\biosinit.obj config\bin\config.obj
   config\bin\
   Object Modules [.obj]: config\bin\nlsfunc.obj config\bin\bdosldr.obj+
   Object Modules [.obj]: drivers\bin\stacks.obj+
   Object Modules [.obj]: config\bin\MSG\initmsgs.obj
   Run File [biosgrps.exe]: bin\msg\ibmbio
   List File [c:ibmbio.map]:
   Libraries [.lib]: config\bin\biosstub.lib;

   Can some makefile genius tell me how to go about this using the make
   program that ships with djgpp? (GNU make I belive)

   Trust me, it's for a good cause.  (hint: examine just *what* is being
   linked) *grin*

MS Link understands linker command files using the same @filename convention as
DJGPP programs.  Just build the command file line by line using something like
echo and run link with the name of the file.  Link even supports mixing
interactive and command file responses.  If the file named on the command line
is incomplete link will prompt for the remaining options and initial options
can be passed on the command line or interactively with @filename for later
options.

-- 
Art S. Kagel, kagel AT quasar DOT bloomberg DOT com

A proverb is no proverb to you 'till life has illustrated it.  -- John Keats

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019