Makefile faire: Rien à faire pour "par défaut"

J'écris un bonjour.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");

Et c'est 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

quand je lance make, le shell affiche make: Nothing to be done forpar défaut'.`. Quelqu'un pourrait-il m'aider? Merci beaucoup !

  • vous devrait ajouter <TAB> caractère à gauche de C
InformationsquelleAutor changzhi | 2014-04-04