5 WVSTREAMS_BIN
=$(prefix)/bin
8 PC_CFLAGS
=$(shell pkg-config
--cflags libwvstreams
)
10 $(error WvStreams does not appear to be installed
)
12 CPPFLAGS
+=$(PC_CFLAGS
)
14 PC_LIBS
=$(shell pkg-config
--libs libwvstreams
)
16 $(error WvStreams does not appear to be installed
)
21 MANDIR
=${prefix}/share
/man
27 default
: all papchaptest
28 all: wvdial.a wvdial wvdialconf pppmon
30 wvdial.a
: wvdialer.o wvmodemscan.o wvpapchap.o wvdialbrain.o \
33 wvdial
: LDFLAGS
+=-luniconf
35 wvdial wvdialconf papchaptest pppmon
: wvdial.a
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
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
50 install: install-bin install-man
53 rm -f
${BINDIR}/wvdial
${BINDIR}/wvdialconf
54 rm -f
${PPPDIR}/wvdial
55 rm -f
${PPPDIR}/wvdial-pipe
58 rm -f
${MANDIR}/man1
/wvdial
.1 ${MANDIR}/man1
/wvdialconf
.1
59 rm -f
${MANDIR}/man5
/wvdial.conf
.5
61 uninstall: uninstall-bin uninstall-man
64 rm -f wvdial wvdialconf wvdialmon papchaptest pppmon
66 .PHONY
: clean all install-bin install-man
install uninstall-bin uninstall-man \