-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
45 lines (35 loc) · 1.08 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
###########################################################################
#
#
# Makefile -- modem kernel drivers Makefile.
#
# Copyright(c) 2003, Smart Link Ltd. (www.smlink.com)
# All rights reserved.
#
# Author: Sasha K ([email protected])
#
#
###########################################################################
# Edited by [email protected] 20.08.2012
# Now is Lenovo Ideacentre A320 keyboard makefile
###########################################################################
KERNEL_VER?=$(shell uname -r)
KERNEL_DIR:=/lib/modules/$(KERNEL_VER)/build
EXTRA_CFLAGS = -I$(obj)
obj-m:= hid-a320.o
module-dir:=${DESTDIR}/lib/modules/$(KERNEL_VER)/extra
all:
@echo " obj-m=$(obj-m)"
$(MAKE) modules -C $(KERNEL_DIR) SUBDIRS=$(shell pwd)
@echo " finished all:"
install:
install -D -m 644 hid-a320.ko $(module-dir)/hid-a320.ko
/sbin/depmod -a
uninstall:
rm -f $(module-dir)/hid-a320.ko
modprobe -r hid-a320 ; echo -n
/sbin/depmod -a
dep:
clean:
$(RM) $(obj-m) $(obj-m:.o=.ko) *.mod.* .*.cmd *~ modules.order Module.symvers
$(RM) -r .tmp_versions