adxl345_driver/Makefile

12 lines
178 B
Makefile
Raw Normal View History

2021-02-16 15:53:23 +01:00
ifneq ($(KERNELRELEASE),)
# kbuild part of makefile
obj-m := adxl345.o
else
# normal makefile
KDIR ?= /lib/modules/`uname -r`/build
default:
$(MAKE) -C $(KDIR) M=$$PWD
endif