• 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: distributed builds in makefiles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: distributed builds in makefiles


  • Subject: Re: distributed builds in makefiles
  • From: Stefan Werner <email@hidden>
  • Date: Wed, 21 Sep 2005 16:07:01 -0700

Hi,

Date: Wed, 21 Sep 2005 22:36:32 +0200
From: Markus Hitter <email@hidden>
Subject: Re: distributed builds in makefiles

I am using Makefiles as a part of my build process and am wondering
if there's a way that Makefiles could take advantage of multiple
CPUs and distributed compiling like Xcode builds.


"man make", have a look at the -j option.

I should have been more precise: I know about -j and I also know how to substitute cc with distcc - my question is rather, how do I make my makefile set these automatically? I want my makefile to use -j 2 on a dual G5, -j 1 on a PowerBook and -j 4 on my next PowerMac, in the same way that Xcode automatically builds with the appropriate number of processes. In the same fashion, I'd be really happy if my makefile would also use distributed builds whenever the user has enabled that in his Xcode settings. The Makefile is part of an Xcode project, so I hoped that there are environment variables set that I can interpret.


Stefan
_______________________________________________
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: distributed builds in makefiles
      • From: Markus Hitter <email@hidden>
  • Prev by Date: linker error can't find -framework Kernel?
  • Next by Date: Re: Using AppleScript to access a Copy File Phase in an Xcode project
  • Previous by thread: Re: distributed builds in makefiles
  • Next by thread: Re: distributed builds in makefiles
  • Index(es):
    • Date
    • Thread