File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
MODULE:= rtmouse
2
2
obj-m:= $(MODULE).o
3
+ $(MODULE)-y:= $(MODULE)_main.o
3
4
clean-files:= *.o *.ko *.mod.[co] *~
4
5
5
6
LINUX_SRC_DIR:=/usr/src/linux-headers-$(shell uname -r)
6
7
VERBOSE:=0
7
8
8
- rtmouse .ko: rtmouse .c rtmouse .h
9
+ $(MODULE) .ko: $(MODULE)_main .c $(MODULE) .h
9
10
make -C $(LINUX_SRC_DIR) M=$(shell pwd) V=$(VERBOSE) modules
10
11
11
12
clean:
12
13
make -C $(LINUX_SRC_DIR) M=$(shell pwd) V=$(VERBOSE) clean
13
14
14
- install: rtmouse .ko
15
+ install: $(MODULE) .ko
15
16
cp ../../50-rtmouse.rules /etc/udev/rules.d/
16
17
17
18
uninstall:
Original file line number Diff line number Diff line change 1
1
MODULE:= rtmouse
2
2
obj-m:= $(MODULE).o
3
+ $(MODULE)-y:= $(MODULE)_main.o
3
4
clean-files:= *.o *.ko *.mod.[co] *~
4
5
5
6
LINUX_SRC_DIR:=/usr/src/linux
6
7
VERBOSE:=0
7
8
8
- rtmouse .ko: rtmouse .c rtmouse .h
9
+ $(MODULE) .ko: $(MODULE)_main .c $(MODULE) .h
9
10
make -C $(LINUX_SRC_DIR) M=$(shell pwd) V=$(VERBOSE) modules
10
11
11
12
clean:
File renamed without changes.
You can’t perform that action at this time.
0 commit comments