make가 안되요 T.T
<Makefile>
CC = gcc 
KERNELDIR = /usr/src/linux-2.4.20-8 
CFLAGS = -D__KERNEL__ -DMODULE -I$(KERNELDIR)/include -g -Wall 
all : hello.o 
hello.o : hello.c 
           $(CC)$(CFLAGS) -c hello.c 
clean : 
           rm -f core hello.o 
<hello.c>
#include <linux/kernel.h> 
#include <linux/module.h> 
#ifdef CONFIG_MODVERSIONS 
#define MODVERSIONS 
#include <linux/modversions.h> 
#endif 
MODULE_LICENSE("GPL");
int init_module(void) 
{ 
printk("Hello, World...\n"); 
return 0; 
} 
void cleanup_module(void) 
{ 
printk("Goodbye...\n"); 
} 
이렇게 되있는데요. make를 하면
gcc-D__KERNEL__ -DMODULE -I/usr/src/linux-2.4.20-8/include -g -Wall -c hello.c
make: gcc-D__KERNEL__: 명령을 찾지 못했음
make: *** [hello.o] 오류 127 
이라고 나오거든요. T.T 
다른 사람들 컴에서는 아마 되는거 같은데... 왜안는건지.. 음...
레드햇 9.0 쓰고요. 아시는 분 가르쳐 주시면 감사하겠습니다


$(CC)와 $(CFLAGS) 사이에 공백을...
$(CC)와 $(CFLAGS) 사이에 공백을...
댓글 달기