#===================================================================
# API-GPIB(LNX) Device Driver Makefile
#===================================================================

ifneq ($(shell uname -r | cut -c-3),2.6)
#------------------------------------------------
#   kernel 2.2 and 2.4
#------------------------------------------------
install:
	cp `uname -r`/cgpib.o ../config

clean:
	rm -f *.o

else
#------------------------------------------------
#   kernel 2.6
#------------------------------------------------
install:
	cp `uname -r`/cgpib.ko ../config

clean:
	rm -f *.o

endif
