Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I build a makefile project with Xcode 5?

Tags:

c++

xcode

I would like to use Xcode to debug a C++ program step by step. The project can be build using make. How can I build it using Xcode 5?

like image 983
yuyang Avatar asked Feb 07 '14 00:02

yuyang


People also ask

Is Xcode a build tool?

The Xcode build system manages the tools that transform your code and resource files into a finished app. When you tell Xcode to build your project, the build system analyzes your files and uses your project settings to assemble the set of tasks to perform.


1 Answers

Here are the steps

1) create a new project using the following a) go to OS X other b) Create an empty project

2) create a blank file (under OS X other again) and call it Makefile

3) create a new target (file -> new -> target - call it whatever you want) go to OS X target and select external build system

4) If you want a particular PATH variable you can Add a new user define setting (under editor -> add Build Setting -> Add user defined setting

5) This should enable your target to be the makefile

like image 162
Treesrule14 Avatar answered Sep 29 '22 21:09

Treesrule14