Mailing Lists: Apple Mailing Lists

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

FW: compile from command line without xcode



Dear All,

Having my tool in a single file source.m:


--- source.m ---
#import <Foundation/Foundation.h>
int main (void) {
  NSAutoreleasePool *pool = [NSAutoreleasePool new];
  NSLog(@"hello!");
  [pool release];
  return 0;
}
--- source.m ---


And make file looking like this:


--- GNUmakefile --- 
MAKEFILEDIR = /Developer/Makefiles/project
include ${MAKEFILEDIR}/common.make
TOOL_NAME = App
App_OBJC_FILES = source.m
include ${MAKEFILEDIR}/tool.make
--- GNUmakefile ---


When typing `make`, nothing happens except obj/ directory is being created.

How should GNUmakefile/Makefile look like in order to compile this example?

Mirek Rusin


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

This email sent to 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.