summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-07-16 22:09:07 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-07-16 22:09:07 +0000
commit1818360e59b558561a6b0b530d2c9ef7f2407da5 (patch)
tree0dfea157fa66dc329a1107e891a8af37aa0facba /Makefile
parentb6f5d94bb37d52f93b2b869c1105ded1fe520fe8 (diff)
Add udev support (courtesy matt / creslin)
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@433 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 5378596..c748e70 100755
--- a/Makefile
+++ b/Makefile
@@ -38,8 +38,13 @@ MODCONF=$(shell if [ -d $(INSTALL_PREFIX)/etc/modprobe.d ]; then echo "$(INSTALL
ifeq (${BUILDVER},linux24)
#We only support DEVFS in linux 2.4 kernels, since its considered obsolete post 2.4
-DEVFS=$(shell ps ax | grep -v grep | grep devfsd)
+DYNFS=$(shell ps ax | grep -v grep | grep devfsd)
endif
+ifeq (${BUILDVER},linux26)
+#Tests for newer linux-2.6 udev support
+DYNFS=$(shell ps ax | grep -v grep | grep udevd)
+endif
+
TZOBJS=zonedata.lo tonezone.lo
LIBTONEZONE=libtonezone.so.1.0
@@ -213,7 +218,7 @@ fxsdump: fxsdump.o
$(CC) -o fxsdump fxsdump.o -lm
devices:
-ifeq ($(DEVFS),)
+ifeq ($(DYNFS),)
mkdir -p $(INSTALL_PREFIX)/dev/zap
rm -f $(INSTALL_PREFIX)/dev/zap/ctl
rm -f $(INSTALL_PREFIX)/dev/zap/channel
@@ -234,7 +239,8 @@ ifeq ($(DEVFS),)
N=$$[$$N+1]; \
done
else
- @echo "**** devfs detected -- not making device nodes"
+ @echo "**** Dynamic filesystem detected -- not creating device nodes"
+ @echo "**** If you are running udev, read README.udev"
endif
install: all devices $(LIBTONEZONE)