-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
100 lines (78 loc) · 2.04 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
ZTEPACKAGE_NAME=@PACKAGE_NAME@
ZTEPACKAGE_STRING=@PACKAGE_STRING@
ZTEPACKAGE_TARNAME=@PACKAGE_TARNAME@
ZTEPACKAGE_VERSION=@PACKAGE_VERSION@
prefix=/usr/local
WVSTREAMS_INC=
WVSTREAMS_LIB=
WVSTREAMS_BIN=$(prefix)/bin
WVSTREAMS_SRC=.
PC_CFLAGS=$(shell pkg-config --cflags libwvstreams)
ifeq ($(PC_CFLAGS),)
$(error WvStreams does not appear to be installed)
endif
CPPFLAGS+=$(PC_CFLAGS)
PC_LIBS=$(shell pkg-config --libs libwvstreams)
ifeq ($(PC_LIBS),)
$(error WvStreams does not appear to be installed)
endif
LIBS+=$(PC_LIBS)
LIBUDEV_CFLAGS=$(shell pkg-config --cflags libudev)
#ifeq ($(PC_CFLAGS),)
# $(error libudev does not appear to be installed)
#endif
CPPFLAGS+=$(LIBUDEV_CFLAGS)
LIBUDEV_LIBS=$(shell pkg-config --libs libudev)
ifeq ($(LIBUDEV_LIBS),)
$(error libudev does not appear to be installed)
endif
LIBS+=$(LIBUDEV_LIBS)
BINDIR=${prefix}/bin
MANDIR=${prefix}/share/man
include wvrules.mk
default: all
all: ztedial.a ztedial
ztedial_a_OBJS = \
atevent.o \
atlistener.o \
atproperties.o \
dispatchmanager.o \
listener.o \
log.o \
messagedispatch.o \
modem.o\
mutex.o \
netlinkevent.o \
netlinkobserver.o \
signalistener.o \
syslog.o \
uevent.o \
ztedial.o \
ztedialmanager.o \
ztemodem.o \
ztemodemmanager.o \
ztenetlink.o
ztedial.a: ${ztedial_a_OBJS}
ztedial: LIBS+=-lpthread -lwvstreams -lwvutils -lwvbase
ztedial: ztedial.a
wvdial wvdialconf papchaptest pppmon: \
LIBS+=-luniconf -lwvstreams -lwvutils -lwvbase
ztedial: main.o
install-bin: all
[ -d ${BINDIR} ] || install -d ${BINDIR}
[ -d ${PPPDIR} ] || install -d ${PPPDIR}
install -m 0755 ztedial ${BINDIR}
install-man:
[ -d ${MANDIR}/man1 ] || install -d ${MANDIR}/man1
[ -d ${MANDIR}/man5 ] || install -d ${MANDIR}/man5
install: install-bin install-man
uninstall-bin:
rm -f ${BINDIR}/ztedial
uninstall-man:
uninstall: uninstall-bin uninstall-man
clean:
rm -f ztedial
distclean:
rm -f version.h Makefile
.PHONY: clean all install-bin install-man install uninstall-bin uninstall-man \
uninstall