# # Makefile.in for the SIS MODULE driver, include by other Makefile # # build together ifneq ($(DRIVERS_DIR),) IR_DIR = $(DRIVERS_DIR)/IR # build standalone else IR_DIR = $(M) endif # 1. assign your module directory to "dir" dir = IR/ # 2. assign your module name(s) to "mods", use "+=" please mods += ir.o # 3. assign your code to "MOD_NAME-objs" ir-objs = ir9561.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),) ir-objs := $(patsubst %, $(dir)%, $(ir-objs)) endif