Statistics
| Revision:

root / logic / trunk / src / kernel_modules / generic / Makefile @ 71

History | View | Annotate | Download (310 Bytes)

1 71 Janez1
ifeq ($(KERNELRELEASE),)
2
3
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
4
PWD := $(shell pwd)
5
6
.PHONY: build clean
7
8
build:
9
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
10
11
clean:
12
	rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c
13
else
14
15
$(info Building with KERNELRELEASE = ${KERNELRELEASE})
16
obj-m := chardev.o
17
18
endif