• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to pass additional parameters to make in Xcode legacy project ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Scott Tooker <email@hidden>
  • Date: Wed, 2 Mar 2005 10:23:19 -0800


On Mar 2, 2005, at 10:03 AM, Mike Lazear wrote:


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.

Yes, that is correct. Just add build settings and they will get passed via the environment to the external tool you are using to build with.


Scott


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

_______________________________________________ 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
  • Follow-Ups:
    • Re: How to pass additional parameters to make in Xcode legacy project ?
      • From: Paul Russell <email@hidden>
References: 
 >How to pass additional parameters to make in Xcode legacy project ? (From: Paul Russell <email@hidden>)
 >Re: How to pass additional parameters to make in Xcode legacy project ? (From: Mike Lazear <email@hidden>)

  • Prev by Date: How do I get Xcode to Index a Framework in my Project?
  • Next by Date: Re: How to pass additional parameters to make in Xcode legacy project ?
  • Previous by thread: Re: How to pass additional parameters to make in Xcode legacy project ?
  • Next by thread: Re: How to pass additional parameters to make in Xcode legacy project ?
  • Index(es):
    • Date
    • Thread