Makefile 258 B

1234567891011121314
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. # Makefile for the rtc-ds13307 driver
  4. #
  5. ifneq ($(KERNELRELEASE),)
  6. obj-m := rtc-ds13307.o
  7. else
  8. KDIR := /lib/modules/$(shell uname -r)/build
  9. PWD := $(shell pwd)
  10. default:
  11. $(MAKE) -C $(KDIR) M=$(PWD) modules
  12. endif