Makefile 343 B

12345678910111213141516
  1. KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build
  2. M ?= $(shell pwd)
  3. M=$(PWD)
  4. BT_ROOT=$(KERNEL_SRC)/$(M)
  5. KBUILD_OPTIONS+= BT_ROOT=$(BT_ROOT)
  6. all:
  7. $(MAKE) -C $(KERNEL_SRC) M=$(M) modules $(KBUILD_OPTIONS)
  8. modules_install:
  9. $(MAKE) INSTALL_MOD_STRIP=1 -C $(KERNEL_SRC) M=$(M) modules_install
  10. clean:
  11. $(MAKE) -C $(KERNEL_SRC) M=$(M) clean