khello/Makefile
author Markus Bröker<broeker.markus@googlemail.com>
Sun, 10 Feb 2019 13:17:01 +0100
changeset 173 374a86886bc5
parent 98 0e8eddac99cb
permissions -rw-r--r--
LAST-DIGIT-BUG: INCREMENT before LF
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
50
a38f102556e5 khello: a nice kernel module
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     1
obj-m += khello.o
a38f102556e5 khello: a nice kernel module
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     2
a38f102556e5 khello: a nice kernel module
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     3
all:
a38f102556e5 khello: a nice kernel module
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     4
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
a38f102556e5 khello: a nice kernel module
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     5
a38f102556e5 khello: a nice kernel module
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     6
clean:
a38f102556e5 khello: a nice kernel module
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     7
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
a38f102556e5 khello: a nice kernel module
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     8
98
0e8eddac99cb Install Target added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 50
diff changeset
     9
install:
0e8eddac99cb Install Target added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 50
diff changeset
    10
	cp khello.ko /lib/modules/$(shell uname -r)/misc/;
0e8eddac99cb Install Target added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 50
diff changeset
    11
	depmod -a
0e8eddac99cb Install Target added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 50
diff changeset
    12
50
a38f102556e5 khello: a nice kernel module
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    13
distclean: clean
a38f102556e5 khello: a nice kernel module
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    14
	rm -f modules.order