florianscholz

Makefile

May 16th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.28 KB | None | 0 0
  1. ifneq ($(KERNELRELEASE),)
  2. obj-m   := airsensor.o
  3.  
  4. else
  5. KDIR    := /lib/modules/$(shell uname -r)/build
  6. PWD     := $(shell pwd)
  7.  
  8. default:
  9.         $(MAKE) -C $(KDIR) M=$(PWD) modules
  10. endif
  11.  
  12. load:
  13.         sudo insmod airsensor.ko
  14. unload:
  15.         sudo rmmod airsensor.ko
Advertisement
Add Comment
Please, Sign In to add comment