Re: Question about variables in a makefile
From: Dan Espen (daneNO_at_SPAM.mk.telcordia.com)
Date: 03/08/04
- Next message: John-Paul Stewart: "Re: Hard drive partition wierdness."
- Previous message: Paul: "-=Walmart PC (SYSMAR550) and OpenGL=-"
- In reply to:(deleted message) Madhusudan Singh: "Re: Question about variables in a makefile"
- Next in thread: Madhusudan Singh: "Re: Question about variables in a makefile"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 08 Mar 2004 11:38:32 -0500
Madhusudan Singh <spammers-go-here@yahoo.com> writes:
> On Friday 05 March 2004 18:03, Dan Espen (daneNO@SPAM.mk.telcordia.com)
> held forth in comp.os.linux.misc (<icwu5ysxqs.fsf@home-1.localdomain>):
>
>
>> You don't have to be admin to install gnumake.
>> I believe gnumake is on the Solaris installation CDs.
>> Your admin should have no problem installing stuff packaged by Sun.
>
> Hi,
>
> Thanks for all the help. I was able to get my Makefile to work with gmake
> (found an obscure path on the Sun installation that contains it).
>
> I have a new question now. Is there a way to detect the string that is
> passed to the make ?
>
> Like :
>
> make -f Makefile string ?
>
> The reason I need to know this is that for a different target, my build
> rules change somewhat and when I try to define them under a different
> target, make complains due to ambiguity. So, I was thinking of using a
> variable to hold the options for f95 predicated upon an ifeq construct.
I'm not sure I understand.
For varying my rules, I do something like this:
gmake targ=debug
In the makefile:
ifeq "$(targ)" "debug"
...
else
...
endif
- Next message: John-Paul Stewart: "Re: Hard drive partition wierdness."
- Previous message: Paul: "-=Walmart PC (SYSMAR550) and OpenGL=-"
- In reply to:(deleted message) Madhusudan Singh: "Re: Question about variables in a makefile"
- Next in thread: Madhusudan Singh: "Re: Question about variables in a makefile"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|