diff options
-rwxr-xr-x | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -23,7 +23,10 @@ KFLAGS+=$(shell [ -f $(KINCLUDES)/linux/modversions.h ] && echo "-DMODVERSIONS - # # Features # -KFLAGS+=-DCONFIG_ZAPATA_NET +# Uncomment -DCONFIG_ZAPATA_NET to enable PPP, CiscoHDLC, and Frame Relay +# support. +# +#KFLAGS+=-DCONFIG_ZAPATA_NET KFLAGS+=-DDEFAULT_TONE_ZONE=$(DEFAULTZONE) KFLAGS+=-DTORMENTA_BASE=$(BASEADDR) @@ -32,7 +35,8 @@ MODCONF=$(shell if [ -f /etc/modules.conf ]; then echo /etc/modules.conf; else e TZOBJS=zonedata.lo tonezone.lo LIBTONEZONE=libtonezone.so.1.0 -MODULES=zaptel.o tor2.o torisa.o tigerjet.o wcfxo.o wct1xxp.o +MODULES=zaptel.o tor2.o torisa.o tigerjet.o wcfxo.o +MODULES+=$(shell if [ -f wct1xxp.c ]; then echo wct1xxp.o; fi) PRIMARY=tigerjet #PRIMARY=torisa @@ -58,6 +62,7 @@ tigerjet.o: tigerjet.c tigerjet.h zaptel.h wcfxo.o: wcfxo.c zaptel.h gcc $(KFLAGS) -c wcfxo.c + wct1xxp.o:wct1xxp.c gcc $(KFLAGS) -c wct1xxp.c @@ -144,6 +149,9 @@ install: all devices if ! grep "post-install tor2" $(MODCONF); then \ echo "post-install tor2 /sbin/ztcfg" >> $(MODCONF); \ fi + if ! grep "post-install wcfxo" $(MODCONF); then \ + echo "post-install wcfxo /sbin/ztcfg" >> $(MODCONF); \ + fi /sbin/depmod -a [ -f /etc/zaptel.conf ] || install -m 644 zaptel.conf.sample /etc/zaptel.conf |