You've already forked apple-ib-drv
mirror of
https://github.com/t2linux/apple-ib-drv.git
synced 2026-04-30 13:31:57 -07:00
23 lines
384 B
Makefile
23 lines
384 B
Makefile
obj-m += applespi.o
|
|
|
|
KVERSION := $(KERNELRELEASE)
|
|
ifeq ($(origin KERNELRELEASE), undefined)
|
|
KVERSION := $(shell uname -r)
|
|
endif
|
|
KDIR := /lib/modules/$(KVERSION)/build
|
|
PWD := $(shell pwd)
|
|
|
|
all:
|
|
$(MAKE) -C $(KDIR) M=$(PWD) modules
|
|
|
|
clean:
|
|
$(MAKE) -C $(KDIR) M=$(PWD) clean
|
|
|
|
install:
|
|
$(MAKE) -C $(KDIR) M=$(PWD) modules_install
|
|
|
|
test: all
|
|
sync
|
|
-rmmod applespi
|
|
insmod ./applespi.ko
|