diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -1,7 +1,7 @@ # # Makefile for Zaptel driver modules and utilities # -# Copyright (C) 2001-2005 Digium, Inc. +# Copyright (C) 2001-2006 Digium, Inc. # # BASEADDR=0xd0000 @@ -120,6 +120,7 @@ TZOBJS:=zonedata.lo tonezone.lo LIBTONEZONE_SO:=libtonezone.so LIBTONEZONE_SO_MAJOR_VER:=1 LIBTONEZONE_SO_MINOR_VER:=0 + MODULES:=zaptel tor2 torisa wcusb wcfxo wctdm wctdm24xxp \ ztdynamic ztd-eth wct1xxp wct4xxp wcte11xp pciradio \ ztd-loc # ztdummy @@ -128,9 +129,18 @@ MODULES:=zaptel tor2 torisa wcusb wcfxo wctdm wctdm24xxp \ ifeq (${BUILDVER},linux26) MODULES+=ztdummy endif + MODULESO:=$(MODULES:%=%.o) MODULESKO:=$(MODULES:%=%.ko) +MOD_DESTDIR:=zaptel + +obj-m:=$(MODULESO) ${XPPMOD} + +ifneq ($(filter xpp,${MAKECMDGOALS}),) +XPPMOD=xpp/ +endif + ifneq (,$(wildcard /usr/include/newt.h)) ZTTOOL:=zttool endif @@ -148,16 +158,14 @@ linux24: $(MODULESO) $(BINS) linux26: prereq $(BINS) @echo $(KSRC) @if [ -z "$(KSRC)" -o ! -d "$(KSRC)" ]; then echo "You do not appear to have the sources for the $(KVERS) kernel installed."; exit 1 ; fi - $(MAKE) -C $(KSRC) SUBDIRS=$(PWD) modules + $(MAKE) -C $(KSRC) SUBDIRS=$(PWD) XPPMOD=$(XPPMOD) modules -obj-m := $(MODULESO) +xpp: linux26 #ifneq ($(TOPDIR),) #include $(TOPDIR)/Rules.make #endif -MOD_DESTDIR:=zaptel - version.h: FORCE ZAPTELVERSION="${ZAPTELVERSION}" build_tools/make_version_h > $@.tmp if cmp -s $@.tmp $@ ; then echo; else \ @@ -471,6 +479,8 @@ clean: rm -f *.o ztcfg tzdriver sethdlc sethdlc-new rm -f $(TZOBJS) $(LIBTONEZONE_SO) *.lo rm -f *.ko *.mod.c .*o.cmd + rm -f xpp/*.ko xpp/*.mod.c xpp/.*o.cmd + rm -f xpp/*.o xpp/*.mod.o rm -rf .tmp_versions rm -f gendigits tones.h rm -f libtonezone* |