TARGET = dt3155 OBJS = dt3155v4l.o MDIR = drivers/video EXTRA_CFLAGS = -DEXPORT_SYMTAB -DCONFIG_DT3155_CCIR -Werror CURRENT = $(shell uname -r) KDIR = /lib/modules/$(CURRENT)/build DEST = /lib/modules/$(CURRENT)/kernel/$(MDIR) PWD = $(shell pwd) obj-m := $(TARGET).o $(TARGET)-objs := $(OBJS) default: make -C $(KDIR) SUBDIRS=$(PWD) modules $(TARGET).o: $(OBJS) $(LD) $(LD_RFLAG) -r -o $@ $(OBJS) modules_install: su -c "cp -v $(TARGET).ko $(DEST) && /sbin/depmod -a" clean: -rm -f *.o *.ko .*.cmd .*.flags *.mod.c -include $(KDIR)/Rules.make