Re: Parallel Building
Re: Parallel Building
- Subject: Re: Parallel Building
- From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
- Date: Wed, 22 Oct 2008 06:54:24 -0400
- Thread-topic: Parallel Building
> Message: 8
> Date: Tue, 21 Oct 2008 16:20:24 -0700
> From: "Michael Crawford" <email@hidden>
> Subject: Re: Parallel Building
> To: email@hidden
> Message-ID:
> <email@hidden>
> Content-Type: text/plain; charset=ISO-8859-1
>
> > If you get your dependencies right, parallel make will Just
> Work. See
> > the -j option. (In general, it's easier to maximize the
> efficiency of
> > this if your make is not recursive.)
>
> It happens that I was just getting ready to set up a *vast*
> tree of recursive Makefiles for my GNU GPL audio application Ogg Frog.
> Presently it builds with XCode on OS X, but I need Makefiles
> for other UNIX-ey platforms, as well as for the odd Mac coder
> who just prefers plain old make.
>
> Can you give me any links to HOWTOs that explain how to
> de-recursify recursive Makefiles?
>
> (Ogg Frog's website is
> http://www.oggfrog.com/free-music-software/ - but note that
> there won't be anything to download until it reaches Alpha,
> which won't be until late Winter at the earliest.)
>
> It's going to be a while before I have the cash, but my plan
> is to get one of those expen$ive Dual Quad-Core Xeon Mac Pros
> so I can build binaries for all my supported platforms
> simultaneously, by running compilers within a bunch of
> different operating systems under Parallels.
>
> A complication is that this requires that I keep all the
> build products for each platform separate from each of the others.
> Presently I have a folder called "Arch". The various builds
> make subfolders within Arch like "mac-os-x" and "win32-x86" and so on.
> Eventually I'll have more folders like "linux/fedora-core",
> "linux/ubuntu" and so on.
>
> It was a huge PITA to set up, but another advantage is that I
> can do a clean for all the platforms just by dragging Arch's
> contents to the Trash.
Also try looking into scons (http://www.scons.org/). It's a Python
based build system, where the build scripts are actually Python scripts,
which can come in pretty handy sometimes. It also has the -j option,
and quite a number of other nice features, including (IIRC) features
that support building for different platforms the way you're talking
about. The only real downside is that your bulid platform needs to run
Python, but unless you are building on a micro embedded system, that
means everything that is out there currently.
Good luck,
Cem Karan
_______________________________________________
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