JLinX – Blog

Weblog von Jan Linxweiler

Makefile-Projekte mit Xcode erstellen

Filed under: Apple & Mac OS X — Jannis at 5:18 pm on Friday, January 27, 2006

Auf diese Weise lassen sich mit Xcode Projekte erstellen, die mit typischen Makefiles arbeiten.
Die Anleitung ist von der Seite der Apple Developer Connection entnommen und kann hier gefunden werden.
Vorgehensweise:

  1. Open Xcode.
  2. Choose New Project from the File menu.
  3. Select whatever project type you are targeting. If you ultimately want an application, select something like Cocoa Application. If you are just trying to build a command-line utility, select one of the tools—for example, Standard Tool.
  4. Follow the prompts to name and save your project. A new default project of that type is opened.
  5. From the Project menu, Choose New Target.
  6. Select “External Target” or “GNU Make Target” from the list.
  7. Follow the prompts to name that target. When you have done this, a target icon with the name you just gave it appears in the Targets pane of the open Xcode window.
  8. Double-click that new target. You should now see a new window with the build information for this target.
  9. Change the directory to point to the directory containing your makefile, and change any other settings as needed. For example, in the Custom Build Command pane, you could change Build Tool from /usr/bin/gnumake to /usr/bin/bsdmake. More information on the fields is available in Xcode Help.
  10. Change the active target to your new target by choosing “Set Active Target” from the Project menu.
  11. When you are ready to build the project, click the Build and Run button in the toolbar, select Build and Run from the Build menu, or just press Command-R.

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.