-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
46 lines (38 loc) · 1.03 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Makefile for the IPTS touchscreen driver
#
sources := dkms.conf
sources += Makefile
sources += src/context.h
sources += src/control.c
sources += src/control.h
sources += src/hid.c
sources += src/hid.h
sources += src/Kconfig
sources += src/Makefile
sources += src/main.c
sources += src/mei.c
sources += src/mei.h
sources += src/receiver.c
sources += src/receiver.h
sources += src/resources.c
sources += src/resources.h
sources += src/spec-dma.h
sources += src/spec-hid.h
sources += src/spec-mei.h
sources += src/thread.c
sources += src/thread.h
KVERSION ?= $(shell uname -r)
KDIR := /lib/modules/$(KVERSION)/build
DEBUG ?= y
all:
$(MAKE) -C $(KDIR) M=$(PWD)/src CONFIG_HID_IPTS=m IPTS_DEBUG=$(DEBUG) modules
clean:
$(MAKE) -C $(KDIR) M=$(PWD)/src CONFIG_HID_IPTS=m IPTS_DEBUG=$(DEBUG) clean
check:
$(KDIR)/scripts/checkpatch.pl -f -q --no-tree --strict --ignore EMBEDDED_FILENAME,UNCOMMENTED_DEFINITION $(sources)
dkms-install: $(sources)
./dkms.sh install
dkms-uninstall:
./dkms.sh uninstall