Created
October 22, 2014 10:32
-
-
Save qianguozheng/aeb8f28e50c583f883b9 to your computer and use it in GitHub Desktop.
Linux Kernel Module Makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MODULE_NAME := test-mem | |
obj-m := $(MODULE_NAME).o | |
KERNELDIR ?= /lib/modules/$(shell uname -r)/build | |
PWD:=$(shell pwd) | |
all: | |
$(MAKE) -C $(KERNELDIR) M=$(PWD) | |
clean: | |
rm -fr *.symvers *.order *.ko *.cmd *.o $(MODULE_NAME).mod.c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment