summaryrefslogblamecommitdiffstats
path: root/kernel/Makefile
blob: 8c01ed3660932fd84f23d27cb8d55f284febab32 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                                      
#
# kernel/Makefile
#

KDIR	:= /lib/modules/$(shell uname -r)/build
PWD	:= $(shell pwd)

obj-m := dnbd2.o
dnbd2-objs := fops.o sysfs.o servers.o devices.o misc.o core.o

all:
	$(MAKE) -C $(KDIR) M=$(PWD) modules

install:
	$(MAKE) -C $(KDIR) M=$(PWD) modules_install

clean:
	rm -rf *.o *.ko *~ *.symvers dnbd2.mod.c .*o.cmd .tmp_versions