Re: kext programming with VIM?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com NAHieu writes:
hello,
I am new to Mac programming, and have a question: it seems that the only way to do kext programming is to do it with Xcode? Can I do it
I feel the same way about xemacs (now, let's not burn each other at the stake, we both dislike Xcode :), and my driver shares lots of a code, including an autoconf/makefile build infastructure, with other OSes. So I build my drivers with plain old Makefiles. It works like a charm. You probably will need to start Xcode at least once every year or two, though. What I do is to compile a sample "project" with Xcode so as to find out what compiler flags are required after each major compiler or OS upgrade. BTW, the one "Trick" is that you may need a short .c file to hold this glue: #include <mach/mach_types.h> extern kern_return_t _start (kmod_info_t * ki, void *data); extern kern_return_t _stop (kmod_info_t * ki, void *data); KMOD_EXPLICIT_DECL (com.mycompany.mydriver, "0.9.2", _start, _stop) __private_extern__ kmod_start_func_t *_realmain = 0; __private_extern__ kmod_stop_func_t *_antimain = 0; Drew _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Andrew Gallatin