Makefile 504 B

1234567891011121314151617181920
  1. # If KERNELRELEASE is defined, we've been invoked from the
  2. # kernel build system and can use its language.
  3. ifneq ($(KERNELRELEASE),)
  4. obj-m := graphene-ipc.o
  5. # Otherwise we were called directly from the command
  6. # line; invoke the kernel build system.
  7. else
  8. KERNELDIR ?= /lib/modules/$(shell uname -r)/build
  9. PWD := $(shell pwd)
  10. default:
  11. $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
  12. graphene-ipc.i: graphene-ipc.c
  13. $(MAKE) -C $(KERNELDIR) M=$(PWD) $@
  14. clean:
  15. $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
  16. endif