diff options
author | Noe Rubinstein <nrubinstein@proformatique.com> | 2010-10-17 18:50:37 +0200 |
---|---|---|
committer | Noe Rubinstein <nrubinstein@proformatique.com> | 2010-10-17 18:50:37 +0200 |
commit | 23642b647231b9cff943360f654f55e75550848b (patch) | |
tree | 45c6a57b62c77c674ebf51ec02fc0fda3d1de2c1 | |
parent | 045f05eac112759cee986cde38b3254b9cfd91c3 (diff) |
make
-rw-r--r-- | xivovp/Kbuild | 15 | ||||
-rw-r--r-- | xivovp/Makefile | 21 |
2 files changed, 36 insertions, 0 deletions
diff --git a/xivovp/Kbuild b/xivovp/Kbuild new file mode 100644 index 0000000..0e4b256 --- /dev/null +++ b/xivovp/Kbuild @@ -0,0 +1,15 @@ +VP_API ?= /bad__vp_api__not_set +KSRC ?= /bad__ksrc__not_set +DAHDI_INCLUDE ?= /bad__dahdi_include__not_set + +CFLAGS_MODULE += -I$(DAHDI_INCLUDE) + +EXTRA_CFLAGS := -I$(VP_API)/arch/lkm/ \ + -I$(VP_API)/api_lib/vp890_api/ \ + -I$(VP_API)/api_lib/includes/ + +obj-m := xivovp.o + +xivovp-objs := base.o EVB_Le71HR8921G_rev_E_2M048.o +xivovp-y += vp_api.o + diff --git a/xivovp/Makefile b/xivovp/Makefile new file mode 100644 index 0000000..c3f94e1 --- /dev/null +++ b/xivovp/Makefile @@ -0,0 +1,21 @@ +ifneq ($(KERNELRELEASE),) +include Kbuild +else + +KSRC ?= /error__KSRC__not_set + +modules: + $(MAKE) -C $(KSRC) M=`pwd` $@ + +help: + @echo help yourself + +clean: + find -iname '.*o.cmd' -exec rm {} \; + find -iname '*.o' -exec rm {} \; + find -iname '*.mod.[co]' -exec rm {} \; + find -iname '*.ko' -exec rm {} \; + rm -f Module.symvers + rm -rf .tmp_versions/ + +endif |