Re: How to pass additional parameters to make in Xcode legacy project ?
Re: How to pass additional parameters to make in Xcode legacy project ?
- Subject: Re: How to pass additional parameters to make in Xcode legacy project ?
- From: Mike Lazear <email@hidden>
- Date: Wed, 2 Mar 2005 10:03:21 -0800
On Mar 2, 2005, at 6:45 AM, Paul Russell wrote:
I'm trying to get Xcode to work with a legacy Makefile, The problem is
that I need to be abel to pass additional parameters to make when it
is invoked. Ideally I would have different build styles which could be
set up to pass different parameters to make, e.g.
Deployment: make FOO=0
Development: make FOO=1
(the real situation is a lot more complicated than this and there are
soemwhat more than two different possibilities)
I've tried adding these parameters to what seems like an obvious
place, e.g. Project-> Get Info -> Build -> Additional Compiler Flags
but they don't "stick" so maybe Xcode doesn't think of make as a
"compiler" in this sense (or maybe it's just a bug in Xcode ?) ?
Currently I can only see one horribly kludgy solution which would be
to create a whole bunch of small Makefiles which call the main
Makefile with the different parameters and then have a whole bunch of
different targets, one for each Makefile variation. There must be a
better way, surely ? I expect I'm missing something obvious.
I've not worked with multiple make files so I'm not sure if this will
help or not. I would look at Project->Edit Active Target.
There are Build settings for the project file and there are also build
settings for the Target that you are building. It is possible that
it's the target flags you should be setting.
Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden