From abf800fc845ce8736704cbe769f831b73700fa04 Mon Sep 17 00:00:00 2001 From: markster Date: Fri, 2 Jan 2004 23:28:52 +0000 Subject: *Begin* Linux 2.6 build process... not all drivers build, and lots of DEC/INC usecount warnings need to be replaced git-svn-id: http://svn.digium.com/svn/zaptel/trunk@291 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- Makefile | 74 +++++++++++++++------------------------------------------------- 1 file changed, 17 insertions(+), 57 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4d46c59..792b637 100755 --- a/Makefile +++ b/Makefile @@ -1,9 +1,6 @@ # # Makefile for tormenta/carrier driver and utilities # -BASEADDR=0xd0000 -DEFAULTZONE=0 - # # Okay, the people at RedHat have to break everything they can possibly even attempt to. # So, we have to look in /usr/src/linux-2.4/include for header files given their brain dead @@ -23,61 +20,8 @@ KFLAGS+=-DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/usr/src/linux/drivers/net \ KFLAGS+=$(shell [ -f $(KINCLUDES)/linux/modversions.h ] && echo "-DMODVERSIONS -include $(KINCLUDES)/linux/modversions.h") KFLAGS+=$(shell if uname -m | grep -q ppc; then echo "-msoft-float -fsigned-char"; fi) # -# Features -# -# Take out calibration -#KFLAGS+=-DNO_CALIBRATION -#KFLAGS+=-DNO_DCDC -# Boost ring voltage (Higher ring voltage, takes more power) -#KFLAGS+=-DBOOST_RINGER -# -# Define CONFIG_CALC_XLAW if you have a small number of channels and/or -# a small level 2 cache, to optimize for few channels -# -#KFLAGS+=-DCONFIG_CALC_XLAW -# -# Define if you want MMX optimizations in zaptel -# -#KFLAGS+=-DCONFIG_ZAPTEL_MMX -# -# Pick your echo canceller: MARK2, MARK3, STEVE, or STEVE2 :) -# -#KFLAGS+=-DECHO_CAN_STEVE -#KFLAGS+=-DECHO_CAN_STEVE2 -#KFLAGS+=-DECHO_CAN_MARK -KFLAGS+=-DECHO_CAN_MARK2 -#KFLAGS+=-DECHO_CAN_MARK3 -# -# Uncomment for aggressive residual echo supression under -# MARK2 echo canceller -# -#KFLAGS+=-DAGGRESSIVE_SUPPRESSOR -# -# Uncomment -DCONFIG_ZAPATA_NET to enable SyncPPP, CiscoHDLC, and Frame Relay -# support. -# -#KFLAGS+=-DCONFIG_ZAPATA_NET -# -# Uncomment -DCONFIG_OLD_HDLC_API if your are compiling with ZAPATA_NET -# defined and you are using the old kernel HDLC interface (or if you get -# an error about ETH_P_HDLC while compiling). +# Features are now configured in zconfig.h # -#KFLAGS+=-DCONFIG_OLD_HDLC_API -# -# Uncomment for Generic PPP support (i.e. ZapRAS) -# -#KFLAGS+=-DCONFIG_ZAPATA_PPP -# -# Uncomment to enable "watchdog" to monitor if interfaces -# stop taking interrupts or otherwise misbehave -# -#KFLAGS+=-DCONFIG_ZAPTEL_WATCHDOG -# -# ISA Defaults can be set here. -# -KFLAGS+=-DTORMENTA_BASE=$(BASEADDR) - -KFLAGS+=-DDEFAULT_TONE_ZONE=$(DEFAULTZONE) # # Uncomment if you have an SMP kernel # @@ -101,9 +45,23 @@ ZTTOOL=$(shell if [ -f /usr/include/newt.h ]; then echo zttool; fi) #PRIMARY=wcfxsusb PRIMARY=torisa #PRIMARY=wcfxo +PWD=$(shell pwd) all: $(MODULES) ztcfg torisatool makefw ztmonitor ztspeed $(ZTTOOL) +linux26: +linux26: prereq ztcfg torisatool makefw ztmonitor ztspeed $(ZTTOOL) + @if ! [ -d /usr/src/linux-2.6 ]; then echo "Link /usr/src/linux-2.6 to your kernel sources first!"; exit 1 ; fi + make -C /usr/src/linux-2.6 SUBDIRS=$(PWD) modules + +obj-m := $(MODULES) + +#ifneq ($(TOPDIR),) +#include $(TOPDIR)/Rules.make +#endif + +MOD_DESTDIR := zaptel + devel: tor2ee tests: patgen pattest patlooptest hdlcstress hdlctest hdlcgen hdlcverify timertest @@ -172,6 +130,8 @@ gendigits: gendigits.o zaptel.c: tones.h +prereq: tones.h tor2fw.h + zttool.o: zttool.c zaptel.h ztprovision.o: ztprovision.c zaptel.h -- cgit v1.2.3