如何使用Xcode 5构建一个makefile项目? [英] How can I build a makefile project with Xcode 5?

查看:1634
本文介绍了如何使用Xcode 5构建一个makefile项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Xcode逐步调试C ++程序。该项目可以使用make进行构建。如何使用Xcode 5构建它?

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?

推荐答案

以下是步骤

1)建立新专案使用以下
a)转到OS X其他
b)创建一个空项目

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

2)创建一个空白文件并调用它Makefile

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

3)创建一个新目标(文件 - > new - > target - 调用任何你想要的)
去OS X目标和选择外部构建系统

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

4)如果你想要一个特定的PATH变量,你可以添加一个新的用户定义设置(
编辑器 - >添加构建设置 - 添加用户定义的设置

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)这将使您的目标成为makefile

5) This should enable your target to be the makefile

这篇关于如何使用Xcode 5构建一个makefile项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆