Using a Makefile as an Xcode target

I am using Xcode 2.4.1.

I have several programs that I, and others, work on that must run on a variety of Unix-like systems. We use a Makefile to control the compilation process.

As I go through the steps specified by an Apple Development document (URL given below), get stuck at item 6, where we are told to choose the “GNU Make Target." I don't see this in my list of the choices. The document says to upgrade if you don't see this choice.

As far as I can tell 2.4.1 is the latest version, nor can I find anything that tells how to actually Upgrade.

Any help would be appreciated.

http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix/preparing/chapter_3_section_4.html

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Now it's "External Build System"

The options changed in Xcode, although I can't remember what version.

It's now called "External Build System"

http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/05_02_bs_targets/chapter_30_section_3.html

Cheers,
-Geoff

make: execvp: gfortran: Permission denied

I set the target to use the Makefile. But it fails to compile from within Xcode (though it does so nicely by typeing "make" in a terminal).

The error that I receive is "make: execvp: gfortran: Permission denied."

The settings that I have for the target are:

Product name: [program name]

Build Tool: /usr/bin/make
Arguments: $(ACTION)
Directory: [Path to the folder containing the Makefile]

Build Settings:

COPY_PHASE_STRIP = NO
GCC_DYNAMIC_NO_PIC = NO
GCC_GENERATE_DEBUGGING_SYMBOLS = YES
GCC_OPTIMIZATION_LEVEL = 0
PRODUCT_NAME = [program name]

I have also tried $<'buildsetting> and $ALL_SETTINGS in Arguments.

Arguments

The solution to my problem was that I needed to change the Arguments field to:

"PATH=/usr/local/bin:/other/paths/bin:$PATH $(ACTION)"

This solution came from Brian Onn in a Apple Mailing Lists post.