Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. obj-m += hello-1.o
  2. obj-m += hello-2.o
  3. obj-m += hello-3.o
  4. obj-m += hello-4.o
  5. obj-m += hello-5.o
  6. obj-m += startstop.o
  7. startstop-objs := start.o stop.o
  8. obj-m += chardev.o
  9. obj-m += procfs1.o
  10. obj-m += procfs2.o
  11. obj-m += procfs3.o
  12. obj-m += procfs4.o
  13. obj-m += hello-sysfs.o
  14. obj-m += sleep.o
  15. obj-m += print_string.o
  16. obj-m += kbleds.o
  17. obj-m += sched.o
  18. obj-m += chardev2.o
  19. obj-m += syscall.o
  20. obj-m += intrpt.o
  21. obj-m += cryptosha256.o
  22. obj-m += cryptosk.o
  23. obj-m += completions.o
  24. obj-m += example_tasklet.o
  25. obj-m += devicemodel.o
  26. obj-m += example_spinlock.o
  27. obj-m += example_rwlock.o
  28. obj-m += example_atomic.o
  29. obj-m += example_mutex.o
  30. obj-m += bottomhalf.o
  31. obj-m += ioctl.o
  32. obj-m += vinput.o
  33. obj-m += vkbd.o
  34. PWD := $(CURDIR)
  35. ifeq ($(CONFIG_STATUS_CHECK_GCC),y)
  36. CC=$(STATUS_CHECK_GCC)
  37. ccflags-y += -fanalyzer
  38. endif
  39. all:
  40. $(MAKE) -C /lib/modules/$(shell uname -r)/build CC=$(CC) M=$(PWD) modules
  41. clean:
  42. $(MAKE) -C /lib/modules/$(shell uname -r)/build CC=$(CC) M=$(PWD) clean
  43. $(RM) other/cat_noblock *.plist
  44. indent:
  45. clang-format -i *[.ch]
  46. clang-format -i other/*[.ch]