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