summaryrefslogtreecommitdiff
path: root/schulung_tools/drivers/modules/hellodriver/Makefile
blob: 764fefd58a4812f049bf1fda4f047a7f28181097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
MNAME = hello
BDIR = /lib/modules/`uname -r`/build

ifeq ($(KERNELRELEASE),)
# called from shell

.PHONY: default clean

default:
	make -C $(BDIR) M=$(shell pwd) modules

clean:
	rm -rf $(MNAME).mod.* $(MNAME).*o .$(MNAME)* .tmp* Module.symvers modules.order

else
# called from kernel Makefile

	obj-m := $(MNAME).o
endif