www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/24/01:17:33

Date: Thu, 23 Jan 1997 22:12:05 -0800 (PST)
From: Gene Buckle <geneb AT web DOT wa DOT net>
To: djgpp AT delorie DOT com
Subject: question on make syntax
Message-ID: <Pine.LNX.3.93.970123220552.4100B-100000@web.wa.net>
MIME-Version: 1.0

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*

TIA.
g.


- Raw text -


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