Makefile.in 671 B

123456789101112131415161718192021222324252627282930313233343536
  1. #
  2. # Makefile.in for the SIS MODULE driver, include by other Makefile
  3. #
  4. # build together
  5. ifneq ($(DRIVERS_DIR),)
  6. IR_DIR = $(DRIVERS_DIR)/IR
  7. # build standalone
  8. else
  9. IR_DIR = $(M)
  10. endif
  11. # 1. assign your module directory to "dir"
  12. dir = IR/
  13. # 2. assign your module name(s) to "mods", use "+=" please
  14. mods += ir.o
  15. # 3. assign your code to "MOD_NAME-objs"
  16. ir-objs = ir9561.o
  17. # 4. assign general C flag for this module
  18. #EXTRA_CFLAGS += -DYOUR_C_FLAG
  19. # 5. according to CONFIG_, assign spcific source code file and C falg
  20. # 6. add module dir to the front of all code files
  21. ifneq ($(CONFIG_S2DRV),)
  22. ir-objs := $(patsubst %, $(dir)%, $(ir-objs))
  23. endif