summaryrefslogtreecommitdiff
path: root/xpp/utils/Makefile
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-07-06 13:47:05 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-07-06 13:47:05 +0000
commit39a1812c1ef76b6a792f00087f1e507616bbbb25 (patch)
treee50633c999779c514ef16f4a2ce7a70fc7511c9e /xpp/utils/Makefile
parent70ef1183eba2d2fe4f00668fd3438b7f1c842c94 (diff)
Tons of updates to the Astribank (xpp) driver:
* xpd_fxo.ko (FXO span) is now operational * Remove obsolete .inc initialization files (we use user-space init) * Added an install target to the utils dir. * Updated README.Astribank accordingly. * Using RBS signalling, as caller ID did not work well otherwise. * Better handling of USB protocol errors. * Fixed some procfs-related races. * per-card-module ioctls. * fxotune support. * opermode support (set through /etc/default/zaptel for now) * Userspace initialization script can also read registers. * Power calibration works (and implemented in perl) * some fine-tuning to the regster initialization parameters. * Leds turn on before registration and turn off after it. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1204 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'xpp/utils/Makefile')
-rw-r--r--xpp/utils/Makefile24
1 files changed, 13 insertions, 11 deletions
diff --git a/xpp/utils/Makefile b/xpp/utils/Makefile
index 562c738..d840333 100644
--- a/xpp/utils/Makefile
+++ b/xpp/utils/Makefile
@@ -3,13 +3,14 @@ PEDANTIC = -ansi -pedantic -std=c99
CC = gcc
RANLIB = ranlib
INSTALL = install
+INSTALL_DATA = install -m 644
-BINDIR = /sbin
+BINDIR = /usr/sbin
DATADIR = /usr/share/zaptel
MANDIR = /usr/share/man/man8
HOTPLUG_USB_DIR = /etc/hotplug/usb
-DATA_FILES = ../init_data_*.cmd ../initialize_registers
+DATA_FILES = $(wildcard ../init_data_*.cmd *.hex)
CFLAGS = -g -Wall $(EXTRA_CFLAGS)
@@ -18,15 +19,16 @@ TARGETS = libhexfile.a fpga_load test_parse
all: $(TARGETS)
install: all
- $(INSTALL) -d $(BINDIR)
- $(INSTALL) genzaptelconf fpga_load $(BINDIR)/
- $(INSTALL) -d $(DATADIR)
- $(INSTALL) $(DATA_FILES) $(DATADIR)/
- $(INSTALL) -d $(MANDIR)
- $(INSTALL) fpga_load.8 $(MANDIR)/
- $(INSTALL) -d $(HOTPLUG_USB_DIR)
- $(INSTALL) xpp_fxloader xpp_fxloader.usermap $(HOTPLUG_USB_DIR)/
-
+ $(INSTALL) -d $(DESTDIR)$(BINDIR)
+ $(INSTALL) genzaptelconf fpga_load $(DESTDIR)$(BINDIR)/
+ $(INSTALL) -d $(DESTDIR)$(DATADIR)
+ $(INSTALL_DATA) $(DATA_FILES) $(DESTDIR)$(DATADIR)/
+ $(INSTALL) ../initialize_registers $(DESTDIR)$(DATADIR)/
+ $(INSTALL) -d $(DESTDIR)$(MANDIR)
+ $(INSTALL_DATA) fpga_load.8 genzaptelconf.8 $(DESTDIR)$(MANDIR)/
+ $(INSTALL) -d $(DESTDIR)$(HOTPLUG_USB_DIR)
+ $(INSTALL_DATA) xpp_fxloader.usermap $(DESTDIR)$(HOTPLUG_USB_DIR)/
+ $(INSTALL) xpp_fxloader $(DESTDIR)$(HOTPLUG_USB_DIR)/
libhexfile.a: hexfile.o
$(AR) cru $@ $^