delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/21/04:18:21

From: wtanksle AT sdcc10 DOT ucsd DOT edu (William Tanksley)
Newsgroups: comp.os.msdos.djgpp
Subject: line lengths and other GNU/DJGPP MAKE troubles
Date: 14 Jun 1997 00:05:35 GMT
Organization: University of California, San Diego
Lines: 27
Message-ID: <5nsn8f$290$1@sdcc12.ucsd.edu>
References: <19970612 DOT 064604 DOT 9222 DOT 0 DOT bshadwick AT juno DOT com>
NNTP-Posting-Host: sdcc10.ucsd.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


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