KERNELDIR=../../../../ CROSS = arm_1103_le- CC= $(CROSS)gcc LD= $(CROSS)ld STRIP = $(CROSS)strip DEBUG = n # Add your debugging flag (or not) to EXTRA_CFLAGS ifeq ($(DEBUG),y) # DEBFLAGS = -O -g -DSCULL_DEBUG # "-O" is needed to expand inlines DEBFLAGS = -O0 -g -DSCULL_DEBUG # "-O" is needed to expand inlines else DEBFLAGS = -O2 -Wall endif EXTRA_CFLAGS += $(DEBFLAGS) MY_MODULE_NAME=s_wmt_ts_ft6x0x #obj-$(CONFIG_TOUCHSCREEN_FT5X0X) := $(MY_MODULE_NAME).o obj-m := $(MY_MODULE_NAME).o $(MY_MODULE_NAME)-objs := ft5x0x.o ft5x0x_upg.o ft5402_config.o ft6x06_ex_fun.o ini.o ft6x06_ts.o default: $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) modules $(STRIP) --strip-debug $(MY_MODULE_NAME).ko @rm -rf *.o *~ core .depend .*.cmd *.mod.c .tmp_versions *.order *.symvers clean: @rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions *.order *.symvers