delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/13/15:42:12

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Message-Id: <5.0.2.1.2.20020113213022.009e9330@pop.gmx.net>
X-Sender: martinSteuer AT gmx DOT de@pop.gmx.net (Unverified)
X-Mailer: QUALCOMM Windows Eudora Version 5.0.2
Date: Sun, 13 Jan 2002 21:34:03 +0100
To: djgpp AT delorie DOT com
From: Martin Steuer <martinSteuer AT gmx DOT de>
Subject: Re: Setting Env Var from within make
In-Reply-To: <1438-Sun13Jan2002184313+0200-eliz@is.elta.co.il>
References: <5 DOT 0 DOT 2 DOT 1 DOT 2 DOT 20020113120630 DOT 009e6c70 AT pop DOT gmx DOT net>
<5 DOT 0 DOT 2 DOT 1 DOT 2 DOT 20020112104932 DOT 009eaec0 AT pop DOT gmx DOT net>
<5 DOT 0 DOT 2 DOT 1 DOT 2 DOT 20020111135643 DOT 009e11a0 AT pop DOT gmx DOT net>
<5 DOT 0 DOT 2 DOT 1 DOT 2 DOT 20020110113803 DOT 009e0200 AT pop DOT gmx DOT net>
<5 DOT 0 DOT 2 DOT 1 DOT 2 DOT 20020110113803 DOT 009e0200 AT pop DOT gmx DOT net>
<5 DOT 0 DOT 2 DOT 1 DOT 2 DOT 20020111135643 DOT 009e11a0 AT pop DOT gmx DOT net>
<5 DOT 0 DOT 2 DOT 1 DOT 2 DOT 20020112104932 DOT 009eaec0 AT pop DOT gmx DOT net>
<5 DOT 0 DOT 2 DOT 1 DOT 2 DOT 20020113120630 DOT 009e6c70 AT pop DOT gmx DOT net>
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Hello,

At 18:43 13.01.2002 +0200, you wrote:
>   - Invoke Make recursively.  Here's an example (untested):
>
>OBJPATH = ./obj/
>
>$(target): $(source)
>         $(CC) $(CFLAGS) -c $< -o $(OBJPATH)$*.o
>
>$(OBJPATH)%.o : %.c
>         $(MAKE) $(MAKEFLAGS) $@ target=$@ source=$< DEPENDENCIES_OUTPUT=$*.d

Your recursive example with some modification did do the trick!
Thank you very much for all the help.

Kind regards,
Martin

- Raw text -


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