|
From: | Torli Birnbauer |
Subject: | Troubles with GNUstep Make |
Date: | Tue, 17 Mar 2009 15:05:40 -0400 |
Now create the makefile, again using your favourite text editor, and save it in the same project directory with the filename GNUmakefile.
If you look at the makefile above you will notice the two lines that tell the make utility to build a tool with the filename LogTest from the Objective-C source file source.m. You could copy and modify this makefile for later projects you may have: just change the tool name and list the new source files.
include $(GNUSTEP_MAKEFILES)/common.make
TOOL_NAME = LogTest
LogTest_OBJC_FILES = source.m
include $(GNUSTEP_MAKEFILES)/tool.make
$ make
This is gnustep-make 2.0.2. Type 'make print-gnustep-make-help' for help.
Making all for tool WriteStr2File...
Linking tool WriteStr2File ...
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make[1]: *** [obj/WriteStr2File] Error 1
make: *** [WriteStr2File.all.tool.variables] Error 2
igor@kosi:~/work/prgming/obj-c/projs/bp02/wr2file
$
[Prev in Thread] | Current Thread | [Next in Thread] |