How can you generate a Makefile from an Xcode project?
GNUStep provides 'pbxbuild' to convert a .xcodeproj file into a GNUMakefile.
UPDATE: pbxbuild is now deprecated
It's not an automated way of generating a Makefile, but I found it at least gets a list of source files that are built for a target.
I'm using Xcode 4.0.2 in this case..
- select the project top node
- select the target in the target list.
- Choose "Build Phases"
- Open the "Compile Sources"
- Select one of the source files
- PRess Command-A to select all
- Press Command-C to copy
- Paste in your favorite text editor and Regex away to restructure.
The pasted output is FULL pathnames to each source file.
Xcode does not support generating a Makefile from a project. If you just want to build your project outside of the IDE, check out the xcodebuild
command-line tool.