delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/07/11/09:03:22

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Message-ID: <44b39bc8$0$487$cc7c7865@news.luth.se>
From: Martin Str|mberg <ams AT speedy DOT ludd DOT ltu DOT se>
Subject: Re: $LFN and make
Newsgroups: comp.os.msdos.djgpp
References: <11a501c6a42b$878dbd40$0100a8c0 AT broadpark DOT no>
User-Agent: tin/1.4.6-20020816 ("Aerials") (UNIX) (NetBSD/1.6Q (alpha))
Date: 11 Jul 2006 12:38:32 GMT
Lines: 57
NNTP-Posting-Host: speedy.ludd.ltu.se
X-Trace: 1152621512 news.luth.se 487 130.240.16.13
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Gisle Vanem <giva AT bgnett DOT no> wrote:
> I have some problems running a makefile with LFN=y set. This snippet:

> AS    = as.exe
> path_find = $(wildcard $(addsuffix /$(1),$(subst ;, ,$(subst \,/,$(PATH)))))

> ifeq ($(call path_find,$(AS)),)
> chk_as:
>         @echo \"$(AS)\" not found on path. Edit Makefile manually.
> endif

> doesn't find e:\djgpp\bin\as.exe even when "e:\djgpp\bin" is in my PATH.
> With "LFN=n" everything is working fine. Any clues?

> I'm using djgpp 2.03 and
> GNU Make version 3.79.2a1, by Richard Stallman and Roland McGrath.
> Built for i386-pc-msdosdjgpp

That's for too much exotic makefile for me too understand.

You don't tell us which DOS you're using.

However it doesn't work that well in Linux either, FWIW:

/tmp> uname -a
Linux node01 2.6.5-7.257-smp #1 SMP Mon May 15 14:14:14 UTC 2006 i686 i686 i386 GNU/Linux
/tmp> make --version
GNU Make 3.80
Copyright (C) 2002  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
/tmp> bash --version
GNU bash, version 2.05b.0(1)-release (i586-suse-linux)
Copyright (C) 2002 Free Software Foundation, Inc.
/tmp> cat makefile
AS    = as
#.exe
path_find = $(wildcard $(addsuffix /$(1),$(subst ;, ,$(subst \,/,$(PATH)))))

ifeq ($(call path_find,$(AS)),)
chk_as:
        @echo \"$(AS)\" not found on path. Edit Makefile manually.
endif

/tmp> make
"as" not found on path. Edit Makefile manually.
/tmp> which as
/usr/bin/as


HTH.

Right,

						MartinS

- Raw text -


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