#/*
# *File : Makefile
# *Author : DavidLin
# *Date : 2014-12-07pm
# *Email : linpeng1577@163.com or linpeng1577@gmail.com
# *world : the city of SZ, in China
# *Ver : 000.000.001
# *history : editor time do
# * 1)LinPeng 2014-12-07 created this file!
# * 2)
# */
.PHONY: all clean
obj-m := test.o
KERNELDIR ?= lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
all:
make -C $(KERNELDIR) M=$(PWD) modules
clean:
make -C $(KERNELDIR) M=$(PWD) clean
#/* End of Makefile */
转载于:https://blog.51cto.com/linpeng/1596734