www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/05/23/10:15:19

From: Manni Heumann <manni DOT heumann AT gmx DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Need a little help with make
Date: 23 May 2002 14:04:07 GMT
Lines: 23
Message-ID: <acissm$q0a1l$1@ID-54749.news.dfncis.de>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1020523155109 DOT 906B-100000 AT is>
NNTP-Posting-Host: computer-name.uni-bielefeld.de (129.70.100.226)
Mime-Version: 1.0
X-Trace: fu-berlin.de 1022162647 27273269 129.70.100.226 (16 1428 [54749])
User-Agent: Xnews/5.04.25
X-Face: "c)Go+A65AgR*9'!B)BMLM$kYg6HDG!_g'DAsj*ALo%=kp{X&abs&t\G0F~*r?VRj#|4=6)M.RJPnD]Ql:B<-7A^EAYFpDpZRMoJy?80^3B3b AT DXb%MTyOD.*4wu&Xt6o*+6`r5E
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii wrote:

> Two things come to mind:
> 
>   - add VPATH or vpath to tell Make to look into the special
>   directory for object files;

Didn't know about VPATH. Thanks for the info!

>   - change the %.o: %.cpp rule to produce *.o files in the
>   special directory (tweak the "-o $@" part of the rule's command);

Ok, I did that. Sadly, it didn't work. Make did build the *.o files 
and put them in the subdirectory. But: It would build them every 
time, whether the were up to date or not, and it couldn't link my exe 
file. Instead I got a "No such file or directory" error for each of 
them. It seems like make did not look into my subdirectory at all. I 
tried both absolute and relative path, no change.


Manni
 

- Raw text -


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