diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-02-01 00:55:41 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-02-01 00:55:41 +0000 |
commit | 13179eb2fc4b2384550a1681513986584634bfd6 (patch) | |
tree | 5e450b5b4ef50a7dfb8268e75d04785ab0adc13e /Makefile.kernel26 | |
parent | 7976f3ed8ba610c565d4cd80a7f8c0643005de49 (diff) |
add support for Digium's High Performance Echo Canceller
rework the top-level Makefile so kernel 2.6 modules are built by a dedicated Makefile
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2076 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'Makefile.kernel26')
-rw-r--r-- | Makefile.kernel26 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile.kernel26 b/Makefile.kernel26 new file mode 100644 index 0000000..f119368 --- /dev/null +++ b/Makefile.kernel26 @@ -0,0 +1,25 @@ +obj-m := $(MODULESO) +obj-m += wct4xxp/ wctc4xxp/ + +# Also build xpp in the subdirectory xpp/ . But only for >=2.6.10 and only +# for i386. On other archs the module will probably build but panic. + +ifneq (,$(shell [ 0$(SUBLEVEL) -ge 8 ] && [ "$(ARCH)" = 'i386' ] && echo 1)) +obj-m += xpp/ +endif + +EXTRA_CFLAGS := -I$(src) + +zaptel-objs := zaptel-base.o + +ifeq ($(HPEC_PRESENT),yes) +ifeq ($(ARCH),i386) +zaptel-objs += hpec/hpec_x86_32.o +endif + +ifeq ($(ARCH),x86_64) +zaptel-objs += hpec/hpec_x86_64.o +endif + +EXTRA_CFLAGS += -DECHO_CAN_HPEC -I$(src)/hpec +endif |