~ubuntu-branches/ubuntu/quantal/wvdial/quantal

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Thierry Randrianiriana
  • Date: 2011-01-09 18:59:33 UTC
  • mfrom: (3.3.1 experimental) (3.2.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110109185933-kxifjmo0g6dggf42
Tags: 1.61-2
* New upstream release in unstable:
  + FAQ URL updated (LP: #415524).
* Updated manpage pon.wvdial.1
* Prevent ftbfs with binutils-gold and gcc 4.5 (Closes: #608018, #609573).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
prefix=/usr/local
3
 
WVSTREAMS_INC=
4
 
WVSTREAMS_LIB=
5
 
WVSTREAMS_BIN=$(prefix)/bin
6
 
WVSTREAMS_SRC=.
7
 
 
8
 
PC_CFLAGS=$(shell pkg-config --cflags libwvstreams)
9
 
ifeq ($(PC_CFLAGS),)
10
 
 $(error WvStreams does not appear to be installed)
11
 
endif
12
 
CPPFLAGS+=$(PC_CFLAGS)
13
 
 
14
 
PC_LIBS=$(shell pkg-config --libs libwvstreams)
15
 
ifeq ($(PC_LIBS),)
16
 
 $(error WvStreams does not appear to be installed)
17
 
endif
18
 
LIBS+=$(PC_LIBS)
19
 
 
20
 
BINDIR=${prefix}/bin
21
 
MANDIR=${prefix}/share/man
22
 
PPPDIR=/etc/ppp/peers
23
 
 
24
 
include wvrules.mk
25
 
 
26
 
 
27
 
default: all papchaptest
28
 
all: wvdial.a wvdial wvdialconf pppmon
29
 
 
30
 
wvdial.a: wvdialer.o wvmodemscan.o wvpapchap.o wvdialbrain.o \
31
 
        wvdialmon.o
32
 
 
33
 
wvdial: LIBS+=-luniconf
34
 
 
35
 
wvdial wvdialconf papchaptest pppmon: wvdial.a
36
 
 
37
 
install-bin: all
38
 
        [ -d ${BINDIR}      ] || install -d ${BINDIR}
39
 
        [ -d ${PPPDIR}      ] || install -d ${PPPDIR}
40
 
        install -m 0755 wvdial wvdialconf ${BINDIR}
41
 
        cp ppp.provider ${PPPDIR}/wvdial
42
 
        cp ppp.provider-pipe ${PPPDIR}/wvdial-pipe
43
 
 
44
 
install-man:
45
 
        [ -d ${MANDIR}/man1 ] || install -d ${MANDIR}/man1
46
 
        [ -d ${MANDIR}/man5 ] || install -d ${MANDIR}/man5
47
 
        install -m 0644 wvdial.1 wvdialconf.1 ${MANDIR}/man1
48
 
        install -m 0644 wvdial.conf.5 ${MANDIR}/man5
49
 
 
50
 
install: install-bin install-man
51
 
 
52
 
uninstall-bin:
53
 
        rm -f ${BINDIR}/wvdial ${BINDIR}/wvdialconf
54
 
        rm -f ${PPPDIR}/wvdial
55
 
        rm -f ${PPPDIR}/wvdial-pipe
56
 
 
57
 
uninstall-man:
58
 
        rm -f ${MANDIR}/man1/wvdial.1 ${MANDIR}/man1/wvdialconf.1
59
 
        rm -f ${MANDIR}/man5/wvdial.conf.5
60
 
 
61
 
uninstall: uninstall-bin uninstall-man
62
 
 
63
 
clean:
64
 
        rm -f wvdial wvdialconf wvdialmon papchaptest pppmon
65
 
 
66
 
.PHONY: clean all install-bin install-man install uninstall-bin uninstall-man \
67
 
        uninstall