summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-03-21 17:07:58 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-03-21 17:07:58 +0000
commitfeea2219e89b1e510d46cf625f9c3b3391d67f3c (patch)
tree99d3f6750d967f4e6f83c4f7d24429efe2491473 /Makefile
parent4561ffccd62f4a2f356fc3306dfd1a087adbfd74 (diff)
Fix makefile for devfs
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@160 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 19cdc5f..dfeb22c 100755
--- a/Makefile
+++ b/Makefile
@@ -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