Makefile.in 543 B

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