# Makefile for the Linux (version >= 2.5) PCI template device driver. obj-m := pci_template.o KERNELDIR ?= /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) # CFLAGS += -Wall -Werror all: clean build build: $(MAKE) -C $(KERNELDIR) M=$(PWD) clean: rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions