TARGET = pcimem

ifneq ($(KERNELRELEASE),)
obj-m	:= $(TARGET).o

else
KDIR	:= /lib/modules/$(shell uname -r)/build
PWD		:= $(shell pwd)

default:
	$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

install:
	cp $(TARGET).h /usr2/fukushig/grape/g5pkg.fc2.test/include/$(TARGET).h

installmodule:
	./install.csh $(TARGET)

uninstallmodule:
	./uninstall.csh $(TARGET)

clean:
	-rm -f *.o *.ko $(TARGET).mod.[co] core *~

bak:
	tar cvf $(TARGET)_linux.tar ./*.template ./*.[ch] ./*.csh
	gzip $(TARGET)_linux.tar

endif
