~ubuntu-branches/ubuntu/saucy/dahdi-tools/saucy

« back to all changes in this revision

Viewing changes to xpp/Makefile

  • Committer: Stefan Lesicnik
  • Date: 2011-05-08 12:22:46 UTC
  • mfrom: (2.1.4 sid)
  • Revision ID: stefan@lsd.co.za-20110508122246-lh6k2x1uy8pl3vdi
Tags: 1:2.4.1-1ubuntu1
* Merge from Debian. Remaining changes:
  - Bug Fix: If linux-headers are not installed, don't block, and print
    information for the user.
  - added debian/dahdi.postinst
  - added --error-handler=init_failed to debian/rules
  - Changes from Debian:
    - debian/control: Change Maintainer
    - debian/control: Removed Uploaders field.
    - debian/control: Removed Debian Vcs-Svn entry and replaced with
      ubuntu-voip Vcs-Bzr, to reflect divergence in packages.
    - debian/control: Package dahdi Depends on dahdi-dkms | dahdi-source
* debian/control: Added gawk as dependency for dkms build (LP: #493304)
* New upstream release (Closes: #581076, #582094).
* Patches hardware_rescan, perl_fix_noserial, perl_fix_transportdir,
  astribank_allow_ignoreend, init_unload_modules and wcb4xxp_extra_trunk
  dropped: merged upstream.
* dahdi-linux 2.3.0 is required (extra config options for dahdi_cfg).
* Convert to dpkg v.3 format.
* Standards version: 3.9.1.0 (No change needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
SBINDIR         = $(prefix)/sbin
28
28
DATADIR         = $(datadir)/dahdi
29
29
MANDIR          = $(mandir)/man8
30
 
HOTPLUG_USB_DIR = /etc/hotplug/usb
31
 
PERLLIBDIR      := $(shell eval `perl -V:sitelib`; echo "$$sitelib")
 
30
HOTPLUG_USB_DIR = $(sysconfdir)/hotplug/usb
 
31
PERLLIBDIR      := $(shell eval `perl -V:vendorlib`; echo "$$vendorlib")
32
32
PERL_DIRS       := $(shell cd perl_modules; find * -name '[A-Z]*' -type d| xargs)
33
33
PERL_MODS_PAT   := *.pm $(PERL_DIRS:%=%/*.pm)
34
34
PERL_MODS       := $(shell cd perl_modules; echo $(PERL_MODS_PAT))
38
38
HOSTCC          ?= $(CC)
39
39
 
40
40
 
41
 
CFLAGS          = -g -Wall $(EXTRA_CFLAGS)
 
41
CFLAGS          += -g -Wall $(USB_INCLUDE)
42
42
 
43
43
%.8: %
44
44
        pod2man --section 8 $^ > $@ || $(RM) $@
58
58
ABTOOL_OBJS             = astribank_tool.o astribank_usb.o mpp_funcs.o debug.o
59
59
ABALLOW_OBJS            = astribank_allow.o astribank_usb.o mpp_funcs.o debug.o
60
60
 
61
 
TARGETS = .perlcheck
62
 
PROG_INSTALL    = 
 
61
TARGETS = .perlcheck astribank_is_starting
 
62
PROG_INSTALL    = astribank_is_starting
63
63
MAN_INSTALL     = $(PROG_INSTALL:%=%.8)
64
64
ifeq    (1,$(PBX_USB))
65
65
TARGETS += fpga_load            \
66
66
           astribank_tool       \
67
67
           astribank_hexload    \
68
68
           astribank_allow      \
69
 
           astribank_is_starting        \
70
69
           test_parse
71
 
PROG_INSTALL    += fpga_load astribank_tool astribank_hexload astribank_allow astribank_is_starting
 
70
PROG_INSTALL    += fpga_load astribank_tool astribank_hexload astribank_allow
72
71
endif
73
72
ifneq   (,$(PERLLIBDIR))
74
73
PROG_INSTALL    += $(PERL_SCRIPTS)
104
103
endif
105
104
 
106
105
fpga_load: fpga_load.o hexfile.o
107
 
        $(CC) -L. -o $@ $^ $(EXTRA_LIBS) -lusb
 
106
fpga_load: LIBS+=$(EXTRA_LIBS) $(USB_LIB)
108
107
 
109
108
astribank_hexload: $(ABHEXLOAD_OBJS)
110
 
        $(CC) -L. -o $@ $(ABHEXLOAD_OBJS) $(EXTRA_LIBS) -lusb
 
109
astribank_hexload: LIBS+=$(EXTRA_LIBS) $(USB_LIB)
111
110
 
112
111
astribank_tool: $(ABTOOL_OBJS)
113
 
        $(CC) -L. -o $@ $(ABTOOL_OBJS) $(EXTRA_LIBS) -lusb
 
112
astribank_tool: LIBS+=$(EXTRA_LIBS) $(USB_LIB)
114
113
 
115
114
astribank_allow: $(ABALLOW_OBJS)
116
 
        $(CC) -L. -o $@ $(ABALLOW_OBJS) $(EXTRA_LIBS) -lusb
 
115
astribank_allow: LIBS+=$(EXTRA_LIBS) $(USB_LIB)
117
116
 
118
117
astribank_is_starting: astribank_is_starting.o
119
 
        $(CC) -L. -o $@ $^ $(EXTRA_LIBS)
 
118
astribank_is_starting: LIBS+=$(EXTRA_LIBS)
120
119
 
121
120
fpga_load.o: CFLAGS+=-D_GNU_SOURCE      # We use memrchr()
122
121
 
123
122
test_parse: test_parse.o hexfile.o
124
 
        $(CC) -L. -o $@ $^ $(EXTRA_LIBS) -lusb
 
123
test_parse: LIBS+=$(EXTRA_LIBS) $(USB_LIB)
125
124
 
 
125
%: %.o
 
126
        $(CC) $(LDFLAGS) $^ $(LIBS) -o $@
126
127
 
127
128
.perlcheck: $(PERL_SCRIPTS)
128
129
        for i in $^; do perl -I./perl_modules -c $$i || exit 1; done