summaryrefslogtreecommitdiff
path: root/schulung_tools/drivers/modules/hellodriver/Makefile
blob: a0878d9d0609fc264e1450acc4c78867c01ffee7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
MNAME = hello
BDIR = /home/devel/work/build-linux

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