Use the race free function for adding a proc file.
[cascardo/kernel/samples/03.proc/.git] / Makefile
1 ifneq ($(KERNELRELEASE),)
2         obj-m := hello_procfs.o
3 else
4         KERNELDIR ?= /lib/modules/$(shell uname -r)/build
5         PWD := $(shell pwd)
6 default:
7         $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
8
9 clean:
10         $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
11 endif