milis/talimatname/genel/v/vmware/Makefile

25 lines
397 B
Makefile
Raw Normal View History

2018-02-28 13:25:23 +01:00
#!/usr/bin/make -f
MODULES = \
vmmon \
vmnet \
#vmblock \
#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)