Guest User

Untitled

a guest
Jun 24th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #DEBUG = y
  2. ifeq ($(DEBUG),y)
  3. DEBFLAGS = -O -g # "-O" is needed to expand inlines
  4. else
  5. DEBFLAGS = -O2
  6. endif
  7. EXTRA_CFLAGS += $(DEBFLAGS)
  8. ifneq ($(KERNELRELEASE),)
  9. obj-m := hello2.o
  10. else
  11. KERNELDIR ?= /lib/modules/$(shell uname -r)/build
  12. PWD := $(shell pwd)
  13. modules:
  14. $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
  15. endif
  16. modules_install:
  17. $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
  18. clean:
  19. rm -rf *.o *~ core Module.* modules.* .depend .*.cmd *.ko *.mod.c .tmp_versions.PHONY: modules modules_install clean
Add Comment
Please, Sign In to add comment