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