diff options
-rwxr-xr-x | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -74,6 +74,8 @@ INSTALL_PREFIX= MODCONF=$(shell if [ -d $(INSTALL_PREFIX)/etc/modutils ]; then echo "$(INSTALL_PREFIX)/etc/modutils/zaptel"; elif [ -f $(INSTALL_PREFIX)/etc/modules.conf ]; then echo $(INSTALL_PREFIX)/etc/modules.conf; else echo $(INSTALL_PREFIX)/etc/conf.modules ; fi) +DEVFS=$(shell ps ax | grep -v grep | grep devfsd) + TZOBJS=zonedata.lo tonezone.lo LIBTONEZONE=libtonezone.so.1.0 MODULES=zaptel.o tor2.o torisa.o wcusb.o wcfxo.o wcfxs.o \ @@ -201,6 +203,7 @@ fxstest: fxstest.o $(CC) -o fxstest fxstest.o -ltonezone devices: +ifeq ($(DEVFS),) mkdir -p $(INSTALL_PREFIX)/dev/zap rm -f $(INSTALL_PREFIX)/dev/zap/ctl rm -f $(INSTALL_PREFIX)/dev/zap/channel @@ -220,6 +223,9 @@ devices: mknod $(INSTALL_PREFIX)/dev/zap/$$N c 196 $$N; \ N=$$[$$N+1]; \ done +else + @echo "**** devfs detected -- not making device nodes" +endif install: all devices mkdir -p $(INSTALL_PREFIX)/sbin |