aboutsummaryrefslogtreecommitdiff
path: root/tas5825m-module/Makefile
blob: 2147d3290df3af6a3efaa9026c7c79c40ddeae05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ifneq ($(KERNELRELEASE),)
# kbuild part of makefile
obj-m := tas5825m.o
else

# Normal Makefile

KERNELDIR := /lib/modules/`uname -r`/build
all: 
	$(MAKE) -C $(KERNELDIR) M=`pwd` modules

debug:
	$(MAKE) -C $(KERNELDIR) EXTRA_CFLAGS=-DDEBUG M=`pwd` modules

modules_install:
	$(MAKE) -C $(KERNELDIR) M=`pwd` modules_install

clean:
	rm -rf *.o *.ko *.mod.c *.mod .*.cmd Module.symvers modules.order .tmp_versions

endif