~ubuntu-branches/ubuntu/quantal/zaptel/quantal

« back to all changes in this revision

Viewing changes to xpp/utils/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Tzafrir Cohen
  • Date: 2008-08-28 22:58:23 UTC
  • mfrom: (11.1.11 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080828225823-r8bdunirm8hmc76m
Tags: 1:1.4.11~dfsg-2
* Patch xpp_fxs_power: Fixed an issue with hook detection of the Astribank
  FXS module.
* Don't fail init.d script if fxotune fails. This may happen if running it
  when Asterisk is already running.
* Bump standards version to 3.8.0.0 .
* Ignore false lintian warning ("m-a a-i" has "a a").
* Patch xpp_fxo_cid_always: do always pass PCM if that's what the user
  asked.
* Patch vzaphfc_proc_root_dir: fix vzaphfc on 2.6.26.
* Patch wcte12xp_flags: Proper time for irq save flags.
* Patch headers_2627: Fix location of semaphore.h for 2.6.27 .
* Patch xpp_fxs_dtmf_leak: Don't play DTMFs to the wrong channel.
* Patch wctdm_fix_alarm: Fix sending channel alarms.
* Patch device_class_2626: Fix building 2.6.26 (Closes: #493397).
* Using dh_lintian for lintian overrides, hence requiring debhelper 6.0.7.
* Lintian: we know we have direct changes. Too bad we're half-upstream :-(
* Fix doc-base section names. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
PEDANTIC        = -ansi -pedantic -std=c99
2
 
 
3
 
CC              = gcc
4
 
RANLIB          = ranlib
5
 
INSTALL         = install
6
 
INSTALL_DATA    = install -m 644
7
 
 
8
 
BINDIR    = /usr/sbin
9
 
DATADIR   = /usr/share/zaptel
10
 
MANDIR    = /usr/share/man/man8
11
 
HOTPLUG_USB_DIR = /etc/hotplug/usb
12
 
 
13
 
DATA_FILES = $(wildcard ../init_data_*.cmd *.hex) init_fxo_modes
14
 
 
15
 
WCTDM=../../wctdm.c
16
 
 
17
 
CFLAGS          = -g -Wall $(EXTRA_CFLAGS)
18
 
 
19
 
TARGETS = libhexfile.a fpga_load test_parse init_fxo_modes
20
 
 
21
 
all: $(TARGETS)
22
 
 
23
 
install: all
24
 
        $(INSTALL) -d $(DESTDIR)$(BINDIR)
25
 
        $(INSTALL) genzaptelconf fpga_load $(DESTDIR)$(BINDIR)/
26
 
        $(INSTALL) -d $(DESTDIR)$(DATADIR)
27
 
        $(INSTALL_DATA) $(DATA_FILES) $(DESTDIR)$(DATADIR)/
28
 
        $(INSTALL) ../initialize_registers ../calibrate_slics $(DESTDIR)$(DATADIR)/
29
 
        $(INSTALL) -d $(DESTDIR)$(MANDIR)
30
 
        $(INSTALL_DATA) fpga_load.8 genzaptelconf.8 $(DESTDIR)$(MANDIR)/
31
 
        $(INSTALL) -d $(DESTDIR)$(HOTPLUG_USB_DIR)
32
 
        $(INSTALL_DATA) xpp_fxloader.usermap $(DESTDIR)$(HOTPLUG_USB_DIR)/
33
 
        $(INSTALL) xpp_fxloader $(DESTDIR)$(HOTPLUG_USB_DIR)/
34
 
 
35
 
libhexfile.a: hexfile.o
36
 
        $(AR) cru $@ $^
37
 
        $(RANLIB) $@
38
 
 
39
 
fpga_load: fpga_load.o libhexfile.a
40
 
        $(CC) -L. -o $@ $@.o $(EXTRA_LIBS) -lhexfile -lusb
41
 
 
42
 
hexfile.o: hexfile.c hexfile.h
43
 
        $(CC) $(CFLAGS) $(PEDANTIC) -c $*.c
44
 
 
45
 
test_parse.o: test_parse.c hexfile.h
46
 
        $(CC) $(CFLAGS) $(PEDANTIC) -c $*.c
47
 
 
48
 
test_parse: test_parse.o libhexfile.a
49
 
        $(CC) -L. -o $@ $@.o $(EXTRA_LIBS) -lhexfile -lusb
50
 
 
51
 
print_modes.o: wctdm_fxomodes.h
52
 
 
53
 
wctdm_fxomodes.h: $(WCTDM)
54
 
        perl -n -e 'print if (/^static struct fxo_mode {$$/ .. /};$$/)' $(WCTDM) >$@
55
 
 
56
 
init_fxo_modes: print_modes
57
 
        ./$^ >$@
58
 
 
59
 
clean:
60
 
        $(RM) *.o $(TARGETS)