Makefile 535 B

123456789101112131415161718
  1. # BTIF driver for AD DIE
  2. # If KERNELRELEASE is defined, we've been invoked from the
  3. # kernel build system and can use its language.
  4. ifneq ($(KERNELRELEASE),)
  5. ccflags-y += -I$(src)/inc
  6. ccflags-y += -I$(src)/plat_inc
  7. obj-y += btif.o
  8. btif-y := mtk_btif.o mtk_btif_exp.o btif_dma_plat.o btif_plat.o
  9. # Otherwise we were called directly from the command
  10. # line; invoke the kernel build system.
  11. else
  12. KERNELDIR ?= /lib/modules/$(shell uname -r)/build
  13. PWD := $(shell pwd)
  14. default:
  15. $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
  16. endif