|
写了一个最经典的模块程序,对应的makefile如下,
#Makefile 2.6
ifneq ($(ERNELRELEASE),)
module-objs:=hello.o
obj-m:=module.o
else
PWD:=$(shell pwd)
KVER?=$(shell uname -r)
KDIR:=/lib/modules/$(KVER)/build
module:
$(MAKE) -C $(KDIR) M=$(PWD) modules
clean:
endif
但是执行make结果如下:
make: Nothing to be done for `module'.
不知为什么,请高手指点..... |
|