#/* # *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 */
Linux内核编程:从hello world 开始-(2)_Makefile文件编写
原文地址:http://blog.csdn.net/linpeng12358/article/details/41792587