comparison Makefile @ 8:80590d10a596

Added num of buffers as a module param, indent code using spaces instead of tabs
author AngelCarpintero
date Tue, 26 Aug 2008 11:50:37 +0000
parents d3fdefea8bce
children 00bb25bff577
comparison
equal deleted inserted replaced
7:2fce9e157b8d 8:80590d10a596
1 VERSION=trunk 1 VERSION=trunk
2 MODULENAME=vloopback
2 3
3 ifneq ($(KERNELRELEASE),) 4 ifneq ($(KERNELRELEASE),)
4 5
5 obj-m := vloopback.o 6 obj-m := $(MODULENAME).o
6 7
7 else 8 else
8 9
9 KVER := $(shell uname -r) 10 KVER := $(shell uname -r)
10 KLINK := $(shell test -e /lib/modules/${KVER}/source/ && echo source || echo "build") 11 KLINK := $(shell test -e /lib/modules/${KVER}/source/ && echo source || echo "build")
27 all default: 28 all default:
28 $(MAKE) -C $(KSRC) SUBDIRS=$(PWD) modules 29 $(MAKE) -C $(KSRC) SUBDIRS=$(PWD) modules
29 30
30 install: 31 install:
31 install -d $(DEST) 32 install -d $(DEST)
32 install -m 644 -c vloopback.ko $(DEST) 33 install -m 644 -c $(MODULENAME).ko $(DEST)
33 -/sbin/depmod -a 34 -/sbin/depmod -a
34 35
35 36
36 uninstall: 37 uninstall:
37 rm -f $(DEST)/vloopback.ko 38 rm -f $(DEST)/$(MODULENAME).ko
38 -/sbin/depmod -a 39 -/sbin/depmod -a
39 clean: 40 clean:
40 rm -f .*.cmd *.o *.mod.c *.ko .v* *~ core Modules.symvers Module.symvers 41 rm -f .*.cmd *.o *.mod.c *.ko .v* *~ core Modules.symvers Module.symvers
41 rm -rf .tmp_versions/ 42 rm -rf .tmp_versions/
42 rm -f example/dummy example/feed example/resize example/invert 43 rm -f example/dummy example/feed example/resize example/invert