摘要: Makefile文件内容: ifneq ($(KERNELRELEASE),) obj-m := hello.o else PWD := $(shell pwd) KVER ?= $(shell uname -r) KDIR := /lib/modules/$(KVER)/build all: $(MAKE) -C $(KDIR) M=$(PWD) clean: rm -rf .*.cmd *.o *.mod.c *.ko .tmp_versions *.symvers *.order endif 阅读全文
posted @ 2012-11-26 20:11 勒达与天鹅 阅读(1727) 评论(0) 推荐(0) 编辑