Makefilee 488 B

1234567891011121314151617181920212223
  1. include $(PWD)/../Param.mk
  2. include $(PWD)/../../version/$(VERSION_CFG).mk
  3. TARGET = vvcam_csi
  4. obj-m +=$(TARGET).o
  5. $(TARGET)-objs += csi_ioctl.o
  6. $(TARGET)-objs += ./nwl/platform_nwl_csi_driver.o
  7. $(TARGET)-objs += vvcam_csi_driver.o
  8. EXTRA_CFLAGS += -I$(PWD)/
  9. EXTRA_CFLAGS += -I$(PWD)/nwl/
  10. PWD :=$(shell pwd)
  11. all:
  12. make -C $(KERNEL) M=$(PWD) modules
  13. modules_install:
  14. make -C $(KERNEL_SRC) M=$(SRC) modules_install
  15. clean:
  16. rm -rf $($(TARGET)-objs)
  17. # make -C $(KERNEL) M=`pwd` clean