linux_module_learn/examples/pci/Makefile

12 lines
208 B
Makefile
Raw Permalink Normal View History

2023-07-22 13:42:32 +08:00
obj-m := pci_skel.o
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
all:
$(MAKE) -C $(KERNELDIR) M=$(PWD)
clean:
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions