Makefile machen: Nichts zu tun für `default'
Ich Schreibe ein Hallo.c:
#include <linux/init.h>
#include <linux/moudle.h>
static int hello_init(void)
{
printk(KERN_ALERT "Hello, World\n");
return 0;
}
static void hello_exit(void)
{
printk(KERN_ALERT "GoodBye, cruel Workd!\n");
}
module_init(hello_init);
module_exit(hello_exit);
module_LICENSE("GPL");
module_AUTHOR("ChangZhi");
Und das ist Makefile:
obj-m := hello.o
KERNEL_DIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
make -C $(KERNEL_DIR) SUBDIRS=$(PWD) modules
#clean:
#rm *.o *.ko *.mod.c
.PHONY:clean
wenn ich make
zeigt die shell make: Nothing to be done for
default'.`. Könnte mir jemand helfen? Vielen Dank !
- Sie sollen hinzufügen
<TAB>
Zeichen in Links, make-C
Du musst angemeldet sein, um einen Kommentar abzugeben.
Als pro ymonad sagt Sie erfordern
TAB
vormake -C