Mail Archives: djgpp/1997/06/21/04:18:21
I've got two problems with a makefile I'm trying to write using make and
Borland C (I have no choice, it's legacy code).
First, I have to pass all of the files to be linked on one command line to
bcc, or it can't create the EXE. But I can't fit them all on one line --
I can't even use a glob file, because I would have to fit them all in the
same echo statement.
Surely someone must have solved this before -- right now I'm using an ugly
hack which involves the archive-handling ability of Make (I use tlib to
link them in one at a time). I'm also thinking of another solution:
writing an ECHO replacement in gcc which uses DJGPP-style long command
lines.
Second problem:
I need to create a batch file from within the makefile, so I'm echoing
stuff and redirecting it into the file which will become the desired batch
file. The trouble is that one of my lines sets a path-style environment
variable which has semicolons in it. This causes Make to treat the
semicolons as command delimiters. Um... I don't need that AT ALL for
this makefile, and I'd love to turn it off. How do I do that?
Finally, is there any documentation specific to this DOS port of Make? I
like it a LOT, but it's not entirely the same as the Unix version.
-Billy
- Raw text -