


IOPORT = 0x00e0
IRQ = 5 


TARGET = camdrv

obj-m = $(TARGET).o
KERNEL_VERSION = $(shell uname -r)
PWD = $(shell pwd)


default: 
	make -C /lib/modules/$(KERNEL_VERSION)/build SUBDIRS=$(PWD) modules


clean:
	rm -f $(TARGET).ko $(TARGET).o $(TARGET).mod.*


install:
	/sbin/insmod $(TARGET).ko ioport=$(IOPORT) irq=$(IRQ)
	./install.sh


uninstall:
	/sbin/rmmod $(TARGET)
