diff options
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -35,10 +35,10 @@ 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 +MODULES=zaptel.o tor2.o torisa.o wcfxsusb.o wcfxo.o MODULES+=$(shell if [ -f wct1xxp.c ]; then echo wct1xxp.o; fi) -PRIMARY=tigerjet +PRIMARY=wcfxsusb #PRIMARY=torisa #PRIMARY=wcfxo @@ -57,8 +57,8 @@ zaptel.o: zaptel.c zaptel.h digits.h torisa.o: torisa.c zaptel.h torisa.h gcc $(KFLAGS) -c torisa.c -tigerjet.o: tigerjet.c tigerjet.h zaptel.h - gcc $(KFLAGS) -c tigerjet.c +wcfxsusb.o: wcfxsusb.c wcfxsusb.h zaptel.h + gcc $(KFLAGS) -c wcfxsusb.c wcfxo.o: wcfxo.c zaptel.h gcc $(KFLAGS) -c wcfxo.c @@ -133,15 +133,15 @@ install: all devices mv -f $(MODCONF) $(MODCONF).bak cat $(MODCONF).bak | grep -v "alias char-major-250" | \ grep -v "post-install torisa /sbin/ztcfg" | \ - grep -v "post-install tigerjet /sbin/ztcfg" > $(MODCONF) + grep -v "post-install wcfxsusb /sbin/ztcfg" > $(MODCONF) if ! grep "options torisa" $(MODCONF); then \ echo "options torisa base=$(BASEADDR)" >> $(MODCONF); \ fi if ! grep "alias char-major-196" $(MODCONF); then \ echo "alias char-major-196 $(PRIMARY)" >> $(MODCONF); \ fi - if ! grep "post-install tigerjet" $(MODCONF); then \ - echo "post-install tigerjet /sbin/ztcfg" >> $(MODCONF); \ + if ! grep "post-install wcfxsusb" $(MODCONF); then \ + echo "post-install wcfxsusb /sbin/ztcfg" >> $(MODCONF); \ fi if ! grep "post-install torisa" $(MODCONF); then \ echo "post-install torisa /sbin/ztcfg" >> $(MODCONF); \ @@ -156,6 +156,7 @@ install: all devices [ -f /etc/zaptel.conf ] || install -m 644 zaptel.conf.sample /etc/zaptel.conf clean: + rm -f torisatool makefw tor2fw.h rm -f *.o ztcfg tzdriver sethdlc rm -f $(TZOBJS) $(LIBTONEZONE) *.lo rm -f gendigits tones.h |