diff options
author | Noé Rubinstein <nrubinstein@proformatique.com> | 2010-08-04 11:37:50 +0200 |
---|---|---|
committer | Noé Rubinstein <nrubinstein@proformatique.com> | 2010-08-04 11:37:50 +0200 |
commit | 8ed88c4d9d3840beaf4cc670e657a8d940c3ab93 (patch) | |
tree | fb99c9a78a5817d0f6e9cbe064d840abed432dd0 /xhfc/Makefile | |
parent | fe526e59ca388d149ee52f3cef80325343d6b6d4 (diff) |
some progress made on the XHFC driver module
Diffstat (limited to 'xhfc/Makefile')
-rw-r--r-- | xhfc/Makefile | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/xhfc/Makefile b/xhfc/Makefile index bdb8b48..7ef7dad 100644 --- a/xhfc/Makefile +++ b/xhfc/Makefile @@ -1,27 +1,16 @@ -# -# $Id: Makefile,v 1.10 2006/10/11 07:32:01 joergc5 Exp $ -# -# Makefile for XHFC HWTD - XHFC hardware test driver -# +PWD := $(shell pwd) -KERNEL_SOURCE ?= /lib/modules/$(shell uname -r)/build +KSRC ?= /bad__ksrc__not_set +DAHDI_INCLUDE ?= /bad__dahdi_include__not_set +CFLAGS_MODULE += -I$(DAHDI_INCLUDE) -CONFIG_XHFC_HWTD=m -list-$(CONFIG_XHFC_HWTD) := xhfchdlc - -obj-$(CONFIG_XHFC_HWTD) += xhfchdlc.o -xhfchdlc-objs := xhfc.o xhfc_leb.o xhfc_test_hdlc.o +obj-m := xhfc.o xhfc_leb.o +modules: modules modules_install clean: - $(MAKE) -C $(KERNEL_SOURCE) SUBDIRS=$(shell pwd) $@ + $(MAKE) -C $(KSRC) DAHDI_INCLUDE=$(DAHDI_INCLUDE) M=$(PWD) $@ -install: modules_install +distclean: clean + rm -f Module.symvers -unload: - rmmod xhfchdlc - -load: modules - insmod ./xhfchdlc.ko - -reload: unload load |