HDIR = ../../libmisc
CFLAGS = -O -DMODULE -D__KERNEL__ -Wall -I$(HDIR)
MJR = 40
NAME = pc39
DIR = $(TELHOME)/dev

pass8:	install

install: $(DIR) $(DIR)/$(NAME).o
	-/sbin/rmmod $(NAME) > /dev/null 2>&1
	# /sbin/insmod -f $(DIR)/$(NAME).o pc39_trace=1
	# Rich:
	# /sbin/insmod -f $(DIR)/$(NAME).o pc39_io_base=0x300
	# IRO:
	/sbin/insmod -f $(DIR)/$(NAME).o pc39_io_base=0x360

$(DIR)/$(NAME).o:	$(HDIR)/$(NAME).h $(NAME).o
	cp $(NAME).o $(DIR)/$(NAME).o
	chmod 666 $(DIR)/$(NAME).o
	rm -f $(DIR)/$(NAME)
	mknod $(DIR)/$(NAME) c $(MJR) 0
	chmod 666 $(DIR)/$(NAME)

clean:
	rm -f *.o $(DIR)/$(NAME).o
