delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/25/08:02:09

From: Alex Schroeder <alex AT zool DOT unizh DOT ch>
Message-Id: <9609251027.AA86405@rzurs10.unizh.ch>
Subject: Re: strncasecmp!?
To: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii)
Date: Wed, 25 Sep 1996 12:27:08 +0200 (MEST)
Cc: alex AT zool DOT unizh DOT ch, djgpp AT delorie DOT com
In-Reply-To: <Pine.SUN.3.91.960925112624.13932E-100000@is> from "Eli Zaretskii" at Sep 25, 96 11:31:22 am

> In general, this is the whole purpose of auto-configuration tools, such 
> as GNU Autoconf.  However, I doubt that you could easily implement such a 
> beast on MSDOS, at least not as a general-purpose program.  So, in this 
> case, I suggest something like that:

I see your point. At least this way I could control the compile from the 
makefile, and even provide a default.

Since we are already at it, I'd like to ask another question: I tried
something on my makefile which I took from your makefile in the faq
sources ;) : 

ifdef COMSPEC
 DOS blah
else
 other bla
endif

This code does not work on the AIX, but does with make on my PC. It more 
or less "separator character needed on line x" and aborts. Looking at the 
manpage I found no reference on 'ifdef'. Is there a way to make this work 
on other versions of make? (perhaps ifdef can only be used on GNU make?)

The only solution I find to this problem is to use eg. 
RM = del
and
clean:
	$(RM) something.tmp

Alex.
-- 
Grobbl. Noggl ARGH! ARGH! Gabbl. Nagga Frk'Tkl Kpfzt. alex AT zool DOT unizh DOT ch.
Znamifktzgck. A. Schroeder, Buelachstr. 1c, CH-8057 Zuerich, Switzerland.

- Raw text -


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