Makefile.in 541 B

123456789101112131415161718192021
  1. #
  2. # Makefile.in for the SIS MODULE driver, include by other Makefile
  3. #
  4. # 1. assign your module directory to "dir"
  5. dir = i2c/
  6. # 2. assign your module name(s) to "mods", use "+=" please
  7. mods += drv_i2c.o
  8. # 3. assign your code to "MOD_NAME-objs"
  9. #drv_i2c-objs += drv_i2c_main.o
  10. drv_i2c-objs = drv_i2c_main.o drv_i2c_gpioi2c.o
  11. # 4. assign general C flag for this module
  12. #EXTRA_CFLAGS += -DYOUR_C_FLAG
  13. # 6. add module dir to the front of all code files
  14. ifneq ($(CONFIG_S2DRV),)
  15. drv_i2c-objs := $(patsubst %, $(dir)%, $(drv_i2c-objs))
  16. endif