blob: e4c3a5af26b3175925aa8996abac6f823dd6f89a (
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
25
26
27
28
29
30
31
|
PWD := $(shell pwd)
KSRC ?= /bad__ksrc__not_set
ICP_ROOT ?= /bad__icp_root___not_set
include $(ICP_ROOT)/build_system/build_files/includes.mk
# XXX This is an ugly evil hack, but this is probably the only way to build
# against Intel code without killing myself because of depression induced by
# their overcomplicated makefile mess (which BTW is buggy anyway, and has most
# probably been written under influence of much illegal drugs -- i don't have
# that kind of drugs available)
CFLAGS_MODULE += -O2 -DENABLE_IOMEM -DENABLE_BUFFERMGT
CFLAGS_MODULE += $(INCLUDES)
CFLAGS_MODULE += -DEP805XX -D__ep805xx -DTOLAPAI -D__tolapai \
-DIX_HW_COHERENT_MEMORY=1
KBUILD_EXTRA_SYMBOLS += $(ICP_ROOT)/Acceleration/library/icp_telephony/Module.symvers \
$(ICP_ROOT)/Acceleration/drivers/icp_tdm/tdm_setup_driver/Module.symvers
obj-m := xivo_tdm.o
modules:
modules modules_install clean:
$(MAKE) -C $(KSRC) M=$(PWD) $@
distclean: clean
rm -f Module.symvers
|