|
From: | Fred Kiefer |
Subject: | Re: Makefile bug? |
Date: | Tue, 30 Dec 2003 12:16:49 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030821 |
Dennis Leeuw wrote:
While working on the GNUstep programming tutorial I tried to create examples that showed the gnustep-make abilities for C, Objective-C and GNUstep and the differences in the GNUmakefiles.I created: hello.c : #include <stdio.h> int main(void) { printf("hello world\n"); } GNUmakefile : include $(GNUSTEP_MAKEFILES)/common.make CTOOL_NAME = hello hello_HEADERS = hello_C_FILE = hello.c
Shoudn't this be hello_C_FILES = hello.c? From your output you can tell that no file was compiled.
hello_RESOURCE_FILES = include $(GNUSTEP_MAKEFILES)/ctool.make Running make results in: Making all for ctool hello... Linking ctool hello .../usr/lib/gcc-lib/i486-linux/3.3.2/../../../crt1.o(.text+0x18): In function `_start':../sysdeps/i386/elf/start.S:98: undefined reference to `main' collect2: ld returned 1 exit status make[1]: *** [shared_obj/hello] Error 1 make: *** [hello.all.ctool.variables] Error 2 Am I doing something wrong, or is there a bug in gnustep-make ?
[Prev in Thread] | Current Thread | [Next in Thread] |