mirror of
https://github.com/gatieme/LDD-LinuxDeviceDrivers.git
synced 2026-08-19 01:22:36 +08:00
19 lines
225 B
Makefile
19 lines
225 B
Makefile
ifneq ($(KERNELRELEASE),)
|
|
|
|
obj-m := my_current.o
|
|
|
|
else
|
|
|
|
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
|
|
|
|
PWD := $(shell pwd)
|
|
|
|
all:
|
|
make -C $(KERNELDIR) M=$(PWD) modules
|
|
|
|
clean:
|
|
make -C $(KERNELDIR) M=$(PWD) clean
|
|
|
|
|
|
endif
|