summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile74
1 files changed, 17 insertions, 57 deletions
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