Mail Archives: djgpp/1997/01/24/01:17:33
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 -