>>> 此貼的回復 >> 2.6 (from ldd3)
ifneq ($(KERNELRELEASE),)
hello-objs := a.o b.o c.o obj-m := hello.o
else
KERNELDIR ?= /lib/modules/$(shell uname -r)/build PWD := $(shell pwd)
modules: $(MAKE) -C $(KERNELDIR) M=$(PWD) LDDINC=$(PWD)/../include modules
endif
[ 關閉窗口 ]