Makefile 735 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Notes:
  2. # -----------
  3. # This clever makefile was shamelessly copied from the ivtv project.
  4. #
  5. # By default, the build is done against the running kernel version.
  6. # to build against a different kernel version, set KVER
  7. #
  8. # make KVER=2.6.11-alpha
  9. #
  10. # Alternatively, set KDIR
  11. #
  12. # make KDIR=/usr/src/linux
  13. V ?= 0
  14. MDIR := extra
  15. KVER ?= $(shell uname -r)
  16. KDIR ?= /lib/modules/$(KVER)/build
  17. FWDIR ?= /lib/firmware
  18. obj-m += sny6001ux.o
  19. sny6001ux-objs := sony-pic.o compat.o
  20. all::
  21. $(MAKE) -C $(KDIR) M=$(CURDIR) V=$(V) modules
  22. install:: all
  23. $(MAKE) INSTALL_MOD_PATH=$(DESTDIR) INSTALL_MOD_DIR=$(MDIR) \
  24. -C $(KDIR) M=$(CURDIR) modules_install
  25. /sbin/depmod -a
  26. clean::
  27. $(MAKE) -C $(KDIR) M=$(CURDIR) clean
  28. rm -f Module.symvers