Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: autoconf and xcode




May 28, 2005 kl. 6:47 AM skrev Chris Espinosa:


On May 27, 2005, at 5:50 PM, Warwick Hall wrote:


I am attempting to create a cross platform open source C code library and would like to do my development using Xcode. But since Xcode does not run on other OSes I will not be able to give my "customers" the Xcode project file. Instead I want to create autoconf style makefiles. Does Xcode support this? If so, will it generate the basic files for me?




Yes and no.  An Xcode project can include a makefile-based target, and it uses the make mechanism to do the building.  (In that case you don't get certain features of the Xcode build system.)  Just choose "External Build System" from the New Project dialog.


The "no" is that Xcode won't write a makefile for you. You still have to create the makefile the old-fashioned way.


It IS possible to write the makefile in such a way that it is automatically updated if the Autoconf source changes:


Makefile: configure
	./configure

configure: $(autoconfsource)
	autoconf $(autoconfoptions) $(autoconfsource)
	
"Home is not where you are born, but where your heart finds peace" -
Tommy Nordgren, "The dying old crone"

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >autoconf and xcode (From: Warwick Hall <email@hidden>)
 >Re: autoconf and xcode (From: Chris Espinosa <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.