delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/12/16:38:32

Message-Id: <199910130104.TAA17015@lakdiva.slt.lk>
From: "Kalum Somaratna" <kalum AT myflat DOT com>
To: djgpp AT delorie DOT com
Date: Tue, 12 Oct 1999 19:04:52 +0600
MIME-Version: 1.0
Subject: RE: Please Help. RHIDE generated makefiles don't support dependencies?
References: <199910110147 DOT TAA06057 AT lakdiva DOT slt DOT lk>
In-reply-to: <Pine.SUN.3.91.991011121709.28307A-100000@is>
X-mailer: Pegasus Mail for Win32 (v3.12)
Reply-To: djgpp AT delorie DOT com

Dear Eli,
	First of all many thanks for  taking the time to help me.

On 11 Oct 99, at 12:17, Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
> > RHIDE  version 1.4
> This is not: the latest is 1.4.7; perhaps the problem I found (see
> below) is corrected there.

My problem is almost certainly due to the reason you mentioned 
below and is due to a bug in RHIDE 1.4 wich has been corrected( I 
think) in v1.4.7. 
Because I downloaded RHIDE 1.4.7 and when I generated the 
makefile  and ran make, it checked test.h and recompiled test.cpp.

> Here's the relevant part of the Makefile:
> 
> > all:: test.exe
> > DEPS_0=\
> > 		d:/paint/test.o				<<<<<<<<
> > NO_LINK=
> > LINK_FILES=$(filter-out $(NO_LINK),$(DEPS_0))
> > test.exe:: $(DEPS_0)
> > 	$(RHIDE_COMPILE_LINK)
> > DEPS_1=test.cpp\
> > 		j:/djgpp/include/stdio.h\
> > 		j:/djgpp/include/sys/djtypes.h\
> > 		j:/djgpp/include/sys/version.h\
> > 		d:/paint/test.h
> > test.o:: $(DEPS_1)
> > 	$(RHIDE_COMPILE.cpp.o)
> 
> The problem is in the dependency marked with "<<<<<<<<".  It 
>names the full pathname of test.o, whereas the dependency for 
>test.o uses just
> "test.o".  How's Make supposed to know these two are one and 
>the same
> file?  Make is just a text-processing program, as far as reading 
>the
> Makefile is considered.
> If I change d:/paint/test.o to test.o, everything works like you'd
> expect.

You certainly are correct Eli, and here is the relevant part of the 
makefile generated by RHIDE 1.4.7 (wich had no problems).

all::
DEPS_0= test.o     <<<<<<<<<<<<<<
NO_LINK=
LINK_FILES=$(filter-out $(NO_LINK),$(DEPS_0))
test.exe:: $(DEPS_0)
        $(RHIDE_COMPILE_LINK)
DEPS_1=test.cpp j:/djgpp/include/stdio.h 
j:/djgpp/include/sys/djtypes.h\
        j:/djgpp/include/sys/version.h test.h
test.o:: $(DEPS_1)
        $(RHIDE_COMPILE.cpp.o)
all:: test.exe

As you can see (where I have marked <<<<<) d:\paint\test.o has 
been corrected (by v1.4.7) to just test.o and (as you suggested) 
therefore now works properly.

> Now, I don't know if this is a bug in RHIDE (I don't use RHIDE myself) 
>or your own usage error.

This certainly is my opinion is a bug in v1.4 wich has been 
remedied in v1.4.7. 

Why doesn't the zip-picker recommend RHIDE v1.4.7 instead of 
v1.4 ? AsI downloaded rhide14b.zip as the zip-picker suggested. I 
got v1.4.7 from Robert's site.

Once again many thank's to everyone who helped me in my 
problem and I really appreciate your assistance.
Kalum Somaratna <kalum AT myflat DOT com>

- Raw text -


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