summarylogtreecommitdiffstats
path: root/Makefile
blob: d90d623df653758ccdfa06cdcbce236e3b549c50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

MODULES = \
	vmblock \
	vmmon \
	vmnet \
	#vmci \
	#vsock

all: $(foreach m, $(MODULES), $m.ko)

%.ko: %
	$(MAKE) KVERSION=$(KVERSION) VM_KBUILD=yes -C $*-only

$(MODULES): %:
	cp -r $(SRCDIR)/$*-only $*-only

vsock.ko: vmci.ko

clean:
	rm -rf $(MODULES)
	rm -rf $(foreach m, $(MODULES), $m-only)
	rm -f  $(foreach m, $(MODULES), $m.ko)
	rm -f  $(foreach m, $(MODULES), $m.o)