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