blob: 9e3024b6d4664fb618e21e0045a3f63e6de13790 (
plain)
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
# Automake descrotion for gpsd
#
# Build stuff depending on Motif
#
if HAVE_MOTIF
BUILD_PROGS = xgps xgpsspeed
endif
XMLTO = xmlto
bin_PROGRAMS = $(BUILD_PROGS)
bin_SCRIPTS = gpsprobe gpsprof gpsfake
#
# Build xgps
#
xgps_SOURCES = display.c display.h xgps.c
xgps_CFLAGS = $(X_CFLAGS)
xgps_LDADD = $(LIBM) $(LIBC) $(LIBNSL) $(LIBSOCKET) $(XM_LIBS) $(XT_LIBS) $(X_LIBS) $(X_PRE_LIBS) libgps.la -lm
#
# Build xgpsspeed
#
xgpsspeed_SOURCES = \
xgpsspeed.c \
Tachometer.c \
TachometerP.h \
Tachometer.h \
xgpsspeed.icon
xgpsspeed_CFLAGS = $(X_CFLAGS)
xgpsspeed_LDADD = $(LIBM) $(LIBC) $(LIBNSL) $(LIBSOCKET) $(XAW_LIBS) $(XM_LIBS) $(X_LIBS) $(X_PRE_LIBS) libgps.la -lm
#
# Build gpsd
#
sbin_PROGRAMS = gpsd
gpsd_SOURCES = gpsd.c
gpsd_LDADD = $(LIBM) libgps.la -lm
#
# Build shared library
#
libgps_la_LDFLAGS = -version-number 3:0:0
lib_LTLIBRARIES = libgps.la
libgps_la_SOURCES = \
netlib.c \
nmea_parse.c \
serial.c \
drivers.c \
zodiac.c \
libgpsd_core.c \
libgps.c \
sirf.c \
report.c
libgps_la_LIBADD = $(LIBM) $(LIBC) $(LIBNSL) $(LIBSOCKET)
#
# Create Manpages
#
man_MANS = \
gpsd.1 \
libgps.3 \
libgpsd.3 \
gpsprobe.1 \
gpsprof.1 \
gpsfake.1
gpsd.1 gps.1 xgpsspeed.1: gpsd.xml
$(XMLTO) man gpsd.xml
libgps.3: libgps.xml
$(XMLTO) man libgps.xml
libgpsd.3: libgpsd.xml
$(XMLTO) man libgpsd.xml
gpsprobe.1: gpsprobe.xml
$(XMLTO) man gpsprobe.xml
gpsprof.1: gpsprof.xml
$(XMLTO) man gpsprof.xml
gpsfake.1: gpsfake.xml
$(XMLTO) man gpsfake.xml
#
# Do a release with a tar.gz and a tar.bz2
#
release: distdir
-chmod -R a+r $(distdir)
GZIP=$(GZIP_ENV) $(AMTAR)$(TAR) chozf $(distdir).tar.gz $(distdir)
rm -f $(distdir)/gpsd.spec
sed '/^Source:/s/\.tar\.gz$$/\.tar\.bz2/' gpsd.spec \
> $(distdir)/gpsd.spec
BZIP2=$(BZIP2_ENV) $(AMTAR)$(TAR) --bzip2 -chof $(distdir).tar.bz2 $(distdir)
-rm -rf $(distdir)
include_HEADERS = gps.h gpsd.h sirf.h
# Automake is buggy and doesn't automatically include bin_SCRIPTS in dist
EXTRA_DIST = \
autogen.sh \
README \
INSTALL \
COPYING \
HACKING \
TODO \
AUTHORS \
gpsd.xml \
libgpsd.xml \
libgps.xml \
gpsprobe.xml \
gpsprof.xml \
gpsfake.xml \
$(man_MANS) \
xgps.ad \
xgpsspeed.ad \
gpsd.init \
gpsd.spec \
gps.py \
gpsd.py \
gpsprobe \
gpsprof \
gpsfake \
logextract
# This is not distributed
libgps: libgps.c .libs/libgps.a
$(CC) -o libgps -DTESTMAIN libgps.c .libs/libgps.a
|