1 # Makefile.in generated by automake 1.11.1 from Makefile.am.
4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
7 # This Makefile.in is free software; the Free Software Foundation
8 # gives unlimited permission to copy and/or distribute it,
9 # with or without modifications, as long as this notice is preserved.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
18 # Automake description for gpsd
20 # This file is Copyright (c) 2010 by the GPSD project
21 # BSD terms apply: see the file COPYING in the distribution root for details.
29 pkgdatadir = $(datadir)/@PACKAGE@
30 pkgincludedir = $(includedir)/@PACKAGE@
31 pkglibdir = $(libdir)/@PACKAGE@
32 pkglibexecdir = $(libexecdir)/@PACKAGE@
33 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
34 install_sh_DATA = $(install_sh) -c -m 644
35 install_sh_PROGRAM = $(install_sh) -c
36 install_sh_SCRIPT = $(install_sh) -c
37 INSTALL_HEADER = $(INSTALL_DATA)
38 transform = $(program_transform_name)
45 build_triplet = @build@
47 @HAVE_DBUS_TRUE@am__append_1 = $(DBUS_CFLAGS) $(DBUS_GLIB_CFLAGS) -DDBUS_API_SUBJECT_TO_CHANGE=1
48 @HAVE_BLUEZ_TRUE@am__append_2 = $(BLUEZ_CFLAGS)
49 bin_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) gpsctl$(EXEEXT) \
50 gpspipe$(EXEEXT) gpxlogger$(EXEEXT) lcdgps$(EXEEXT)
51 sbin_PROGRAMS = gpsd$(EXEEXT)
52 check_PROGRAMS = test_float$(EXEEXT) test_trig$(EXEEXT) \
53 test_bits$(EXEEXT) test_packet$(EXEEXT) test_mkgmtime$(EXEEXT) \
54 test_geoid$(EXEEXT) test_json$(EXEEXT) $(am__EXEEXT_3) \
56 @LIBGPSMM_ENABLE_TRUE@am__append_3 = test_gpsmm
57 @LIB_Q_GPSMM_ENABLE_TRUE@am__append_4 = test_qgpsmm
59 # Warning: This overrides autoconf's normal link-line generation process
60 @LIBGPSMM_ENABLE_TRUE@am__append_5 = libgpsmm.cpp
61 @HAVE_PYTHON_TRUE@am__append_6 = stamp-python setup.py
62 @HAVE_PYTHON_TRUE@am__append_7 = stamp-python stamp-python.tmp
63 @LIB_Q_GPSMM_ENABLE_TRUE@am__append_8 = stamp-qt
64 @LIB_Q_GPSMM_ENABLE_TRUE@am__append_9 = stamp-qt
65 @HAVE_XSLT_PROCESSOR_TRUE@am__append_10 = stamp-gps-manpages stamp-gps-manpages.tmp
67 DIST_COMMON = README $(am__configure_deps) $(am__include_HEADERS_DIST) \
68 $(am__python_PYTHON_DIST) $(noinst_HEADERS) \
69 $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
70 $(srcdir)/gpsd_config.h.in $(srcdir)/jsongen.py.in \
71 $(srcdir)/libgps.pc.in $(srcdir)/libgpsd.pc.in \
72 $(srcdir)/maskaudit.py.in $(srcdir)/valgrind-audit.in \
73 $(top_srcdir)/configure \
74 $(top_srcdir)/packaging/rpm/gpsd.spec.in AUTHORS COPYING \
75 INSTALL NEWS TODO config.guess config.sub depcomp install-sh \
76 ltmain.sh missing py-compile
77 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
78 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
79 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
81 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
82 configure.lineno config.status.lineno
83 mkinstalldirs = $(install_sh) -d
84 CONFIG_HEADER = gpsd_config.h
85 CONFIG_CLEAN_FILES = packaging/rpm/gpsd.spec libgps.pc libgpsd.pc \
86 jsongen.py maskaudit.py valgrind-audit
87 CONFIG_CLEAN_VPATH_FILES =
88 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
89 am__vpath_adj = case $$p in \
90 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
93 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
95 am__nobase_strip_setup = \
96 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
98 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
99 am__nobase_list = $(am__nobase_strip_setup); \
100 for p in $$list; do echo "$$p $$p"; done | \
101 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
102 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
103 if (++n[$$2] == $(am__install_max)) \
104 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
105 END { for (dir in files) print dir, files[dir] }'
107 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
108 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
109 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \
110 "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(pythondir)" \
111 "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man3dir)" \
112 "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(man8dir)" \
113 "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(includedir)" \
114 "$(DESTDIR)$(includedir)"
115 LTLIBRARIES = $(lib_LTLIBRARIES)
117 libgps_la_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
118 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
119 $(am__DEPENDENCIES_1)
120 am__libgps_la_SOURCES_DIST = ais_json.c gpsd_report.c gpsutils.c \
121 geoid.c gpsdclient.c gps_maskdump.c hex.c json.c libgps_core.c \
122 libgps_json.c netlib.c rtcm2_json.c shared_json.c strl.c \
124 am__objects_1 = ais_json.lo gpsd_report.lo gpsutils.lo geoid.lo \
125 gpsdclient.lo gps_maskdump.lo hex.lo json.lo libgps_core.lo \
126 libgps_json.lo netlib.lo rtcm2_json.lo shared_json.lo strl.lo
127 @LIBGPSMM_ENABLE_TRUE@am__objects_2 = libgpsmm.lo
128 am_libgps_la_OBJECTS = $(am__objects_1) $(am__objects_2)
129 libgps_la_OBJECTS = $(am_libgps_la_OBJECTS)
130 libgpsd_la_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
131 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
132 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) libgps.la
133 am__objects_3 = bits.lo bsd-base64.lo crc24q.lo gpsd_json.lo isgps.lo \
134 gpsd_maskdump.lo libgpsd_core.lo net_dgpsip.lo \
135 net_gnss_dispatch.lo net_ntrip.lo ntpshm.lo packet.lo \
136 pseudonmea.lo serial.lo srecord.lo subframe.lo drivers.lo \
137 driver_aivdm.lo driver_evermore.lo driver_garmin.lo \
138 driver_garmin_txt.lo driver_italk.lo driver_navcom.lo \
139 driver_nmea.lo driver_oncore.lo driver_rtcm2.lo \
140 driver_rtcm3.lo driver_sirf.lo driver_superstar2.lo \
141 driver_tsip.lo driver_ubx.lo driver_zodiac.lo
143 am_libgpsd_la_OBJECTS = $(am__objects_3) $(am__objects_4)
144 nodist_libgpsd_la_OBJECTS =
145 libgpsd_la_OBJECTS = $(am_libgpsd_la_OBJECTS) \
146 $(nodist_libgpsd_la_OBJECTS)
147 @HAVE_AIVDM_TRUE@@HAVE_RTCM104V2_TRUE@@HAVE_RTCM104V3_TRUE@am__EXEEXT_1 = gpsdecode$(EXEEXT)
148 @HAVE_NCURSES_TRUE@am__EXEEXT_2 = cgps$(EXEEXT) gpsmon$(EXEEXT)
149 @LIBGPSMM_ENABLE_TRUE@am__EXEEXT_3 = test_gpsmm$(EXEEXT)
150 @LIB_Q_GPSMM_ENABLE_TRUE@am__EXEEXT_4 = test_qgpsmm$(EXEEXT)
151 PROGRAMS = $(bin_PROGRAMS) $(sbin_PROGRAMS)
152 am_cgps_OBJECTS = cgps.$(OBJEXT)
153 cgps_OBJECTS = $(am_cgps_OBJECTS)
154 cgps_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
155 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
156 $(am__DEPENDENCIES_1) libgps.la $(am__DEPENDENCIES_1)
157 am_gpsctl_OBJECTS = gpsctl.$(OBJEXT)
158 gpsctl_OBJECTS = $(am_gpsctl_OBJECTS)
159 gpsctl_DEPENDENCIES = $(am__DEPENDENCIES_1) libgpsd.la libgps.la \
160 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
161 am__objects_5 = gpsd_dbus.$(OBJEXT) gpsd.$(OBJEXT)
162 am_gpsd_OBJECTS = $(am__objects_5)
163 gpsd_OBJECTS = $(am_gpsd_OBJECTS)
164 gpsd_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
165 libgpsd.la libgps.la $(am__DEPENDENCIES_1) \
166 $(am__DEPENDENCIES_1)
167 am_gpsdecode_OBJECTS = gpsdecode.$(OBJEXT)
168 gpsdecode_OBJECTS = $(am_gpsdecode_OBJECTS)
169 gpsdecode_DEPENDENCIES = $(am__DEPENDENCIES_1) libgpsd.la libgps.la \
170 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
171 am_gpsmon_OBJECTS = gpsmon.$(OBJEXT) monitor_nmea.$(OBJEXT) \
172 monitor_sirf.$(OBJEXT) monitor_italk.$(OBJEXT) \
173 monitor_ubx.$(OBJEXT) monitor_superstar2.$(OBJEXT) \
174 monitor_oncore.$(OBJEXT) monitor_tnt.$(OBJEXT)
175 gpsmon_OBJECTS = $(am_gpsmon_OBJECTS)
176 gpsmon_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
177 libgpsd.la libgps.la $(am__DEPENDENCIES_1) \
178 $(am__DEPENDENCIES_1)
179 am_gpspipe_OBJECTS = gpspipe.$(OBJEXT)
180 gpspipe_OBJECTS = $(am_gpspipe_OBJECTS)
181 gpspipe_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
183 am_gpxlogger_OBJECTS = gpxlogger.$(OBJEXT)
184 gpxlogger_OBJECTS = $(am_gpxlogger_OBJECTS)
185 gpxlogger_DEPENDENCIES = $(am__DEPENDENCIES_1) libgps.la
186 am_lcdgps_OBJECTS = lcdgps.$(OBJEXT)
187 lcdgps_OBJECTS = $(am_lcdgps_OBJECTS)
188 lcdgps_DEPENDENCIES = $(am__DEPENDENCIES_1) libgps.la
189 am_test_bits_OBJECTS = test_bits.$(OBJEXT)
190 test_bits_OBJECTS = $(am_test_bits_OBJECTS)
191 test_bits_DEPENDENCIES = $(am__DEPENDENCIES_1) libgpsd.la libgps.la \
192 $(am__DEPENDENCIES_1)
193 am_test_float_OBJECTS = test_float.$(OBJEXT)
194 test_float_OBJECTS = $(am_test_float_OBJECTS)
195 test_float_DEPENDENCIES = $(am__DEPENDENCIES_1)
196 am_test_geoid_OBJECTS = test_geoid.$(OBJEXT)
197 test_geoid_OBJECTS = $(am_test_geoid_OBJECTS)
198 test_geoid_DEPENDENCIES = $(am__DEPENDENCIES_1) libgps.la
199 am__test_gpsmm_SOURCES_DIST = test_gpsmm.cpp
200 @LIBGPSMM_ENABLE_TRUE@am_test_gpsmm_OBJECTS = test_gpsmm.$(OBJEXT)
201 test_gpsmm_OBJECTS = $(am_test_gpsmm_OBJECTS)
202 @LIBGPSMM_ENABLE_TRUE@test_gpsmm_DEPENDENCIES = $(am__DEPENDENCIES_1) \
203 @LIBGPSMM_ENABLE_TRUE@ libgps.la $(am__DEPENDENCIES_1)
204 am_test_json_OBJECTS = test_json.$(OBJEXT)
205 test_json_OBJECTS = $(am_test_json_OBJECTS)
206 test_json_DEPENDENCIES = $(am__DEPENDENCIES_1) libgps.la
207 am_test_mkgmtime_OBJECTS = test_mkgmtime.$(OBJEXT)
208 test_mkgmtime_OBJECTS = $(am_test_mkgmtime_OBJECTS)
209 test_mkgmtime_DEPENDENCIES = $(am__DEPENDENCIES_1) libgps.la
210 am_test_packet_OBJECTS = test_packet.$(OBJEXT)
211 test_packet_OBJECTS = $(am_test_packet_OBJECTS)
212 test_packet_DEPENDENCIES = $(am__DEPENDENCIES_1) libgpsd.la libgps.la \
213 $(am__DEPENDENCIES_1)
214 am__test_qgpsmm_SOURCES_DIST = test_gpsmm.cpp
215 @LIB_Q_GPSMM_ENABLE_TRUE@am_test_qgpsmm_OBJECTS = \
216 @LIB_Q_GPSMM_ENABLE_TRUE@ test_gpsmm.$(OBJEXT)
217 test_qgpsmm_OBJECTS = $(am_test_qgpsmm_OBJECTS)
218 test_qgpsmm_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
219 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
220 $(CXXFLAGS) $(test_qgpsmm_LDFLAGS) $(LDFLAGS) -o $@
221 am_test_trig_OBJECTS = test_trig.$(OBJEXT)
222 test_trig_OBJECTS = $(am_test_trig_OBJECTS)
223 test_trig_DEPENDENCIES = $(am__DEPENDENCIES_1)
224 SCRIPTS = $(noinst_SCRIPTS)
225 DEFAULT_INCLUDES = -I.@am__isrc@
226 depcomp = $(SHELL) $(top_srcdir)/depcomp
227 am__depfiles_maybe = depfiles
229 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
230 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
231 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
232 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
233 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
235 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
236 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
238 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
239 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
240 LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
241 --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
242 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
244 CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
245 --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
247 SOURCES = $(libgps_la_SOURCES) $(libgpsd_la_SOURCES) \
248 $(nodist_libgpsd_la_SOURCES) $(cgps_SOURCES) $(gpsctl_SOURCES) \
249 $(gpsd_SOURCES) $(gpsdecode_SOURCES) $(gpsmon_SOURCES) \
250 $(gpspipe_SOURCES) $(gpxlogger_SOURCES) $(lcdgps_SOURCES) \
251 $(test_bits_SOURCES) $(test_float_SOURCES) \
252 $(test_geoid_SOURCES) $(test_gpsmm_SOURCES) \
253 $(test_json_SOURCES) $(test_mkgmtime_SOURCES) \
254 $(test_packet_SOURCES) $(test_qgpsmm_SOURCES) \
256 DIST_SOURCES = $(am__libgps_la_SOURCES_DIST) $(libgpsd_la_SOURCES) \
257 $(cgps_SOURCES) $(gpsctl_SOURCES) $(gpsd_SOURCES) \
258 $(gpsdecode_SOURCES) $(gpsmon_SOURCES) $(gpspipe_SOURCES) \
259 $(gpxlogger_SOURCES) $(lcdgps_SOURCES) $(test_bits_SOURCES) \
260 $(test_float_SOURCES) $(test_geoid_SOURCES) \
261 $(am__test_gpsmm_SOURCES_DIST) $(test_json_SOURCES) \
262 $(test_mkgmtime_SOURCES) $(test_packet_SOURCES) \
263 $(am__test_qgpsmm_SOURCES_DIST) $(test_trig_SOURCES)
264 am__python_PYTHON_DIST = gpscap.py
265 py_compile = $(top_srcdir)/py-compile
266 man1dir = $(mandir)/man1
267 man3dir = $(mandir)/man3
268 man5dir = $(mandir)/man5
269 man8dir = $(mandir)/man8
272 DATA = $(pkgconfig_DATA)
273 am__include_HEADERS_DIST = gps.h libgpsmm.h
274 HEADERS = $(include_HEADERS) $(nodist_include_HEADERS) \
279 red=; grn=; lgn=; blu=; std=
280 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
281 distdir = $(PACKAGE)-$(VERSION)
282 top_distdir = $(distdir)
283 am__remove_distdir = \
284 { test ! -d "$(distdir)" \
285 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
286 && rm -fr "$(distdir)"; }; }
287 DIST_ARCHIVES = $(distdir).tar.gz
289 distuninstallcheck_listfiles = find . -type f -print
290 distcleancheck_listfiles = find . -type f -print
295 AUTOCONF = @AUTOCONF@
296 AUTOHEADER = @AUTOHEADER@
297 AUTOMAKE = @AUTOMAKE@
299 BLUEZ_CFLAGS = @BLUEZ_CFLAGS@
300 BLUEZ_LIBS = @BLUEZ_LIBS@
302 CCDEPMODE = @CCDEPMODE@
305 CPPFLAGS = @CPPFLAGS@
308 CXXDEPMODE = @CXXDEPMODE@
309 CXXFLAGS = @CXXFLAGS@
310 CYGPATH_W = @CYGPATH_W@
311 DBUS_CFLAGS = @DBUS_CFLAGS@
312 DBUS_GLIB_CFLAGS = @DBUS_GLIB_CFLAGS@
313 DBUS_GLIB_LIBS = @DBUS_GLIB_LIBS@
314 DBUS_LIBS = @DBUS_LIBS@
317 DSYMUTIL = @DSYMUTIL@
326 HTMLTARGET = @HTMLTARGET@
328 INSTALL_DATA = @INSTALL_DATA@
329 INSTALL_PROGRAM = @INSTALL_PROGRAM@
330 INSTALL_SCRIPT = @INSTALL_SCRIPT@
331 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
338 LIBPTHREAD = @LIBPTHREAD@
340 LIBSOCKET = @LIBSOCKET@
342 LIBUSB_CFLAGS = @LIBUSB_CFLAGS@
343 LIBUSB_LIBS = @LIBUSB_LIBS@
346 LTLIBOBJS = @LTLIBOBJS@
347 MAKEINFO = @MAKEINFO@
348 MANTARGET = @MANTARGET@
350 NCURSES_LIBS = @NCURSES_LIBS@
358 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
359 PACKAGE_NAME = @PACKAGE_NAME@
360 PACKAGE_STRING = @PACKAGE_STRING@
361 PACKAGE_TARNAME = @PACKAGE_TARNAME@
362 PACKAGE_URL = @PACKAGE_URL@
363 PACKAGE_VERSION = @PACKAGE_VERSION@
364 PATH_SEPARATOR = @PATH_SEPARATOR@
365 PKG_CONFIG = @PKG_CONFIG@
366 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
367 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
369 PYTHON_CFLAGS = @PYTHON_CFLAGS@
370 PYTHON_DISTUTILS_LIBDIR = @PYTHON_DISTUTILS_LIBDIR@
371 PYTHON_DISTUTILS_SCRIPTDIR = @PYTHON_DISTUTILS_SCRIPTDIR@
372 PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
373 PYTHON_LIBS = @PYTHON_LIBS@
374 PYTHON_PLATFORM = @PYTHON_PLATFORM@
375 PYTHON_PREFIX = @PYTHON_PREFIX@
376 PYTHON_VERSION = @PYTHON_VERSION@
378 QtNetwork_CFLAGS = @QtNetwork_CFLAGS@
379 QtNetwork_LIBS = @QtNetwork_LIBS@
382 SET_MAKE = @SET_MAKE@
386 WITH_XMLTO = @WITH_XMLTO@
387 WITH_XSLTPROC = @WITH_XSLTPROC@
389 XMLPROCFLAGS = @XMLPROCFLAGS@
390 abs_builddir = @abs_builddir@
391 abs_srcdir = @abs_srcdir@
392 abs_top_builddir = @abs_top_builddir@
393 abs_top_srcdir = @abs_top_srcdir@
394 ac_ct_CC = @ac_ct_CC@
395 ac_ct_CXX = @ac_ct_CXX@
396 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
397 am__include = @am__include@
398 am__leading_dot = @am__leading_dot@
399 am__quote = @am__quote@
401 am__untar = @am__untar@
404 build_alias = @build_alias@
405 build_cpu = @build_cpu@
406 build_os = @build_os@
407 build_vendor = @build_vendor@
408 builddir = @builddir@
410 datarootdir = @datarootdir@
413 exec_prefix = @exec_prefix@
415 host_alias = @host_alias@
416 host_cpu = @host_cpu@
418 host_vendor = @host_vendor@
420 includedir = @includedir@
422 install_sh = @install_sh@
424 libexecdir = @libexecdir@
425 localedir = @localedir@
426 localstatedir = @localstatedir@
430 oldincludedir = @oldincludedir@
432 pkgpyexecdir = @pkgpyexecdir@
433 pkgpythondir = @pkgpythondir@
435 program_transform_name = @program_transform_name@
437 pyexecdir = @pyexecdir@
438 pythondir = @pythondir@
440 sharedstatedir = @sharedstatedir@
442 sysconfdir = @sysconfdir@
443 target_alias = @target_alias@
444 top_build_prefix = @top_build_prefix@
445 top_builddir = @top_builddir@
446 top_srcdir = @top_srcdir@
447 CLEANFILES = $(am__append_7) $(am__append_9) $(am__append_10) \
448 $(BUILT_SOURCES) *.core $(PYEXTENSIONS) $(BUILT_MANPAGES)
450 # For a detailed explanation of what this ugly code is doing, see
451 # http://www.gnu.org/software/automake/manual/automake.html#Multiple-Outputs
452 MULTIOUT_RECOVER_DELETED = \
453 if test -f '$@'; then :; else \
454 trap "rm -rf '$$WITNESS.lock' '$$WITNESS'" HUP INT PIPE TERM; \
455 if mkdir "$$WITNESS.lock" 2>/dev/null; then \
457 $(MAKE) $(AM_MAKEFLAGS) "$$WITNESS"; \
458 result=$$?; rm -rf "$$WITNESS.lock"; exit $$result; \
460 while test -d "$$WITNESS.lock"; do sleep 1; done; \
461 test -f "$$WITNESS"; \
470 # Conditionally add programs depending on libraries that may or may not be present.
472 @HAVE_NCURSES_TRUE@CURSESPROGS = cgps gpsmon
474 # Conditional includes.
475 INCLUDES = $(LIBUSB_CFLAGS) $(am__append_1) $(am__append_2)
476 RTCM104PAGES_DIST = gpsdecode.1
477 @HAVE_AIVDM_TRUE@@HAVE_RTCM104V2_TRUE@@HAVE_RTCM104V3_TRUE@RTCM104PROGS = gpsdecode
478 @HAVE_AIVDM_TRUE@@HAVE_RTCM104V2_TRUE@@HAVE_RTCM104V3_TRUE@RTCM104PAGES = $(RTCM104PAGES_DIST)
480 # List of Python scripts and modules, which are handled by setup.py.
481 # Required to ensure that the extensions/modules/scripts are rebuilt via
482 # setup.py in case they changed.
483 # Also used to specify which files to include during make dist.
484 PYTHONSCRIPTS_DIST = gpscat gpsfake gpsprof xgps xgpsspeed
485 PYTHONMODULES_DIST = gps/__init__.py gps/misc.py gps/fake.py gps/gps.py gps/client.py
486 PYTHONPAGES_DIST = gpsprof.1 gpsfake.1 gpscat.1 xgpsspeed.1 xgps.1
487 @HAVE_PYTHON_TRUE@python_PYTHON = gpscap.py
488 @HAVE_PYTHON_TRUE@PYTHONPAGES = $(PYTHONPAGES_DIST)
493 cgps_SOURCES = cgps.c
494 cgps_LDADD = $(LIBM) $(LIBC) $(LIBNSL) $(LIBSOCKET) $(NCURSES_LIBS) libgps.la -lm $(LIBPTHREAD)
499 gpxlogger_SOURCES = gpxlogger.c
500 gpxlogger_LDADD = $(DBUS_GLIB_LIBS) libgps.la -lm
505 gpsd_c_sources = gpsd_dbus.c gpsd.c
506 gpsd_SOURCES = $(gpsd_c_sources) gpsd_dbus.h
507 gpsd_LDADD = $(DBUS_LIBS) $(LIBM) libgpsd.la libgps.la -lm $(LIBPTHREAD) $(LIBUSB_LIBS)
512 gpsctl_SOURCES = gpsctl.c
513 gpsctl_LDADD = $(LIBM) libgpsd.la libgps.la -lm $(LIBPTHREAD) $(LIBUSB_LIBS)
518 gpspipe_SOURCES = gpspipe.c
519 gpspipe_LDADD = $(DBUS_LIBS) $(LIBM) libgps.la -lm
524 lcdgps_SOURCES = lcdgps.c
525 lcdgps_LDADD = $(LIBM) libgps.la -lm
530 gpsmon_SOURCES = gpsmon.c monitor_nmea.c monitor_sirf.c \
531 monitor_italk.c monitor_ubx.c monitor_superstar2.c \
532 monitor_oncore.c monitor_tnt.c
534 gpsmon_LDADD = $(LIBM) $(NCURSES_LIBS) libgpsd.la libgps.la -lm $(LIBPTHREAD) $(LIBUSB_LIBS)
539 gpsdecode_SOURCES = gpsdecode.c
540 gpsdecode_LDADD = $(LIBM) libgpsd.la libgps.la -lm $(LIBPTHREAD) $(LIBUSB_LIBS)
543 # Build shared libraries
545 # As we need to retrieve the version from qmake to build the Qt library,
546 # we provide targets to print the necessary informations.
547 libgps_VERSION_CURRENT = 19
548 libgps_VERSION__REVISION = 0
549 libgps_VERSION_AGE = 0
550 libgps_VERSION_NUMBER = $(libgps_VERSION_AGE):$(libgps_VERSION__REVISION):$(libgps_VERSION_AGE)
551 libgps_la_LDFLAGS = -version-number $(libgps_VERSION_CURRENT):$(libgps_VERSION__REVISION):$(libgps_VERSION_AGE)
552 lib_LTLIBRARIES = libgps.la libgpsd.la
553 libgps_SONAME = $(shell expr $(libgps_VERSION_CURRENT) - $(libgps_VERSION_AGE))
554 libgps_VERSION = $(libgps_SONAME).$(libgps_VERSION_AGE).$(libgps_VERSION__REVISION)
571 libgpsd_c_sources = \
580 net_gnss_dispatch.c \
592 driver_garmin_txt.c \
600 driver_superstar2.c \
605 libgpsd_h_sources = \
612 BUILT_SOURCES = packet_names.h gpsd.h revision.h ais_json.i gps_maskdump.c gpsd_maskdump.c
613 libgps_la_SOURCES = $(libgps_c_sources) $(am__append_5)
614 libgpsd_la_SOURCES = $(libgpsd_c_sources) $(libgpsd_h_sources) \
615 driver_rtcm2.h packet_states.h
617 @LIBGPSMM_ENABLE_FALSE@libgps_la_LINK = /bin/sh ./libtool --tag=CC --mode=link gcc $(libgps_la_LDFLAGS) -o $@
618 @LIBGPSMM_ENABLE_TRUE@libgps_la_LINK = /bin/sh ./libtool --tag=CXX --mode=link g++ $(libgps_la_LDFLAGS) -o $@
619 nodist_libgpsd_la_SOURCES = packet_names.h ais_json.i
620 libgps_la_LIBADD = $(LIBM) $(LIBC) $(LIBNSL) $(LIBSOCKET) $(LIBPTHREAD)
621 libgpsd_la_LIBADD = $(LIBM) $(LIBC) $(LIBNSL) $(LIBSOCKET) $(LIBPTHREAD) $(BLUEZ_LIBS) libgps.la
622 noinst_SCRIPTS = $(am__append_6) $(am__append_8)
624 # Build Python binding
626 @HAVE_PYTHON_TRUE@PYEXTENSIONS = gpspacket.so gpslib.so
627 QTLIB_DIST = libQgpsmm/libQgpsmm.pro \
628 libQgpsmm/gpsutils.cpp \
629 libQgpsmm/libgps_core.cpp \
630 libQgpsmm/libQgpsmm_global.h
632 QTLIB_DIST_MINGW = libQgpsmm/mingw/gpsd_config.h \
633 libQgpsmm/mingw/test_qgpsmm.pro
635 @LIB_Q_GPSMM_ENABLE_TRUE@QTLIBS = libQgpsmm/binaries/libQgpsmm.so \
636 @LIB_Q_GPSMM_ENABLE_TRUE@ libQgpsmm/binaries/libQgpsmm.so.$(libgps_SONAME) \
637 @LIB_Q_GPSMM_ENABLE_TRUE@ libQgpsmm/binaries/libQgpsmm.so.$(libgps_SONAME).$(libgps_VERSION_AGE) \
638 @LIB_Q_GPSMM_ENABLE_TRUE@ libQgpsmm/binaries/libQgpsmm.so.$(libgps_VERSION)
640 @LIB_Q_GPSMM_ENABLE_TRUE@QTLIB_sources = gpsutils.c \
641 @LIB_Q_GPSMM_ENABLE_TRUE@ libgps_core.c \
642 @LIB_Q_GPSMM_ENABLE_TRUE@ libgpsmm.cpp \
643 @LIB_Q_GPSMM_ENABLE_TRUE@ libgps_json.c \
644 @LIB_Q_GPSMM_ENABLE_TRUE@ hex.c \
645 @LIB_Q_GPSMM_ENABLE_TRUE@ gpsd_report.c \
646 @LIB_Q_GPSMM_ENABLE_TRUE@ strl.c \
647 @LIB_Q_GPSMM_ENABLE_TRUE@ shared_json.c \
648 @LIB_Q_GPSMM_ENABLE_TRUE@ rtcm2_json.c \
649 @LIB_Q_GPSMM_ENABLE_TRUE@ ais_json.c \
650 @LIB_Q_GPSMM_ENABLE_TRUE@ json.c \
651 @LIB_Q_GPSMM_ENABLE_TRUE@ gps.h \
652 @LIB_Q_GPSMM_ENABLE_TRUE@ libgpsmm.h \
653 @LIB_Q_GPSMM_ENABLE_TRUE@ gps_json.h \
654 @LIB_Q_GPSMM_ENABLE_TRUE@ json.h \
655 @LIB_Q_GPSMM_ENABLE_TRUE@ ais_json.i \
656 @LIB_Q_GPSMM_ENABLE_TRUE@ gpsd.h \
657 @LIB_Q_GPSMM_ENABLE_TRUE@ $(QTLIB_DIST)
659 @LIB_Q_GPSMM_ENABLE_TRUE@QMAKE_OPTS = "PREFIX=${prefix}" \
660 @LIB_Q_GPSMM_ENABLE_TRUE@ "MAKE=$(MAKE)" \
661 @LIB_Q_GPSMM_ENABLE_TRUE@ "QMAKE_CXX=$(CXX)" \
662 @LIB_Q_GPSMM_ENABLE_TRUE@ "QMAKE_CC=$(CC)" \
663 @LIB_Q_GPSMM_ENABLE_TRUE@ "QMAKE_CFLAGS+=$(CFLAGS)" \
664 @LIB_Q_GPSMM_ENABLE_TRUE@ "QMAKE_LFLAGS+=$(LDFLAGS)" \
665 @LIB_Q_GPSMM_ENABLE_TRUE@ "VERSION=$(libgps_VERSION)" \
666 @LIB_Q_GPSMM_ENABLE_TRUE@ "TARGET_LIBDIR=${libdir}" \
667 @LIB_Q_GPSMM_ENABLE_TRUE@ "TARGET_INCLUDEDIR=${includedir}"
673 test_float_SOURCES = test_float.c
674 test_float_LDADD = $(LIBC) -lm
679 test_trig_SOURCES = test_trig.c
680 test_trig_LDADD = $(LIBC) -lm
685 @LIBGPSMM_ENABLE_TRUE@test_gpsmm_SOURCES = test_gpsmm.cpp
686 @LIBGPSMM_ENABLE_TRUE@test_gpsmm_LDADD = $(LIBC) libgps.la -lm $(LIBUSB_LIBS)
691 @LIB_Q_GPSMM_ENABLE_TRUE@test_qgpsmm_SOURCES = test_gpsmm.cpp
692 @LIB_Q_GPSMM_ENABLE_TRUE@test_qgpsmm_LDFLAGS = -Wl,-rpath,$(srcdir)/libQgpsmm/binaries
693 @LIB_Q_GPSMM_ENABLE_TRUE@test_qgpsmm_LDADD = $(LIBC) $(LIBUSB) $(QtNetwork_LIBS) -LlibQgpsmm/binaries -lQgpsmm
694 @LIB_Q_GPSMM_ENABLE_TRUE@test_qgpsmm_DEPENDENCIES = libQgpsmm/binaries/libQgpsmm.so
697 # Build test_bits tester
699 test_bits_SOURCES = test_bits.c
700 test_bits_LDADD = $(LIBC) libgpsd.la libgps.la $(LIBUSB_LIBS)
703 # Build packets tester
705 test_packet_SOURCES = test_packet.c
706 test_packet_LDADD = $(LIBC) libgpsd.la libgps.la -lm $(LIBUSB_LIBS)
709 # Build geoid model tester
711 test_geoid_SOURCES = test_geoid.c
712 test_geoid_LDADD = $(LIBC) libgps.la -lm
715 # Build time functions tester
717 test_mkgmtime_SOURCES = test_mkgmtime.c
718 test_mkgmtime_LDADD = $(LIBC) libgps.la -lm
721 # Build JSON parse tester
722 test_json_SOURCES = test_json.c
723 test_json_LDADD = $(LIBC) libgps.la -lm
738 @HAVE_XSLT_PROCESSOR_TRUE@MANPAGES_DIST = \
739 @HAVE_XSLT_PROCESSOR_TRUE@ $(MANPAGES_BASE) \
740 @HAVE_XSLT_PROCESSOR_TRUE@ $(RTCM104PAGES_DIST) \
741 @HAVE_XSLT_PROCESSOR_TRUE@ $(PYTHONPAGES_DIST)
743 @HAVE_XSLT_PROCESSOR_TRUE@man_MANS = \
744 @HAVE_XSLT_PROCESSOR_TRUE@ $(MANPAGES_BASE) \
745 @HAVE_XSLT_PROCESSOR_TRUE@ $(RTCM104PAGES) \
746 @HAVE_XSLT_PROCESSOR_TRUE@ $(PYTHONPAGES)
752 @HAVE_XSLT_PROCESSOR_TRUE@BUILT_MANPAGES = $(MANPAGES_DIST)
753 noinst_HEADERS = gpsd_config.h \
754 driver_italk.h driver_rtcm2.h driver_superstar2.h \
755 driver_ubx.h gpsmon.h gpsdclient.h json.h gps_json.h \
756 revision.h TachometerP.h Tachometer.h
758 nodist_include_HEADERS = gpsd.h
759 @LIBGPSMM_ENABLE_FALSE@include_HEADERS = gps.h
760 @LIBGPSMM_ENABLE_TRUE@include_HEADERS = gps.h libgpsmm.h
778 # Note: packaging/rpm/gpsd.spec is generated, but it needs to be in the
779 # tarball in order for 'make dist-rpm' to work. The BUILT_SOURCES
780 # files are here in order to minimize build dependencies for package
781 # builders who never alter anything, especially the Python dependency.
782 # Also note that the test and gps directories are here rather than
783 # being the contents of a SUBDIRS variable so that autconf won't
784 # go looking for makefiles in them.
808 gpsd.hotplug.wrapper \
811 valgrind-suppressions \
821 packaging/deb/etc_default_gpsd \
822 packaging/deb/etc_init.d_gpsd \
823 packaging/rpm/gpsd.spec \
824 packaging/rpm/gpsd.init \
825 packaging/rpm/gpsd.sysconfig \
826 packaging/X11/xgps.desktop \
827 packaging/X11/xgpsspeed.desktop \
828 packaging/X11/gpsd-logo.png \
831 $(PYTHONSCRIPTS_DIST) \
832 $(PYTHONMODULES_DIST) \
834 $(QTLIB_DIST_MINGW) \
837 pkgconfig_DATA = libgps.pc libgpsd.pc
838 pkgconfigdir = $(libdir)/pkgconfig
840 # Report splint warnings
841 SPLINTOPTS = -I/usr/include/dbus-1.0/ $(LIBUSB_CFLAGS) +quiet
843 # Re-indent the codebase in a uniform style for readability.
844 INDENT_FILES = $(gpsd_c_sources) $(libgpsd_c_sources) $(libgps_c_sources) \
845 $(cgps_SOURCES) $(gpsmon_SOURCES) $(gpspipe_SOURCES) \
846 $(gpxlogger_SOURCES) $(gpsdecode_SOURCES) \
847 $(test_bits_SOURCES) $(test_packet_SOURCES) \
848 $(test_mkgmtime_SOURCES) $(test_geoid_SOURCES) $(test_json_SOURCES)
850 INDENT_OPTIONS = --indent-level4 \
852 --dont-break-procedure-type \
854 --braces-on-if-line \
855 --case-brace-indentation0 \
857 --no-space-after-casts \
858 --no-space-after-function-call-names \
859 --start-left-side-of-comments \
860 --dont-format-comments
864 # Regression tests begin here
866 # Note that the *-makeregress targets re-create the *.log.chk source
867 # files from the *.log source files.
869 # These require gcc4; use of the math coprocessor's on-board trig functions
870 # apparently increases the accuracy of computation in a way that affects
871 # the low-order digits of the track field in the O response.
873 # Our regression tests are make targets, while automake expects
874 # programs. Thus, our approach is to construct the test
875 # infrastructure our way, with make targets, and to have one TEST from
876 # automake's viewpoint: a trivial shell script to invoke make with our
877 # top-level regression target.
879 # One might think that using TESTS_ENVIRONMENT=$(MAKE) would work
880 # around this, but because the generated rule (check-TESTS) both
881 # depends on each TEST as well as invokes it (with TESTS_ENVIRONMENT)
882 # the entire list of tests is run twice.
884 # Use make REGRESSOPTS=-u to force running with UDP rather than pty devices
885 run_regress_driver = PYTHON=$(PYTHON) $(srcdir)/regress-driver $(REGRESSOPTS)
887 # do-tests is a shell script that invokes make with target testregress.
888 # This works around automake's lack of support for make targets as tests.
889 TESTS_ENVIRONMENT = MAKE=$(MAKE) PYTHON=$(PYTHON)
892 # We need to run epydoc with the Python version we built the modules for.
893 # So we define our on epydoc instead of using /usr/bin/epydoc
894 @HAVE_PYTHON_TRUE@EPYDOC = $(PYTHON) -c 'from epydoc.cli import cli; cli()'
896 # We have pre-compiled python scripts in the script directory, so we exclude
897 # all files ending on c here. Needs a better solution as soon as we have a
898 # script ending with c.
899 @HAVE_PYTHON_TRUE@EPYDOCSCRIPTS = $(shell find $(PYTHON_DISTUTILS_SCRIPTDIR) -name '*c' -o -type f -print)
900 @HAVE_PYTHON_TRUE@EPYDOCMODULES = $(PYTHON_DISTUTILS_LIBDIR)/gps
901 all: $(BUILT_SOURCES) gpsd_config.h
902 $(MAKE) $(AM_MAKEFLAGS) all-am
905 .SUFFIXES: .1 .3 .5 .8 .c .cpp .lo .o .obj .xml
908 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
910 case '$(am__configure_deps)' in \
912 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
913 $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
918 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
919 $(am__cd) $(top_srcdir) && \
920 $(AUTOMAKE) --foreign Makefile
922 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
925 echo ' $(SHELL) ./config.status'; \
926 $(SHELL) ./config.status;; \
928 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
929 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
932 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
933 $(SHELL) ./config.status --recheck
935 $(top_srcdir)/configure: $(am__configure_deps)
936 $(am__cd) $(srcdir) && $(AUTOCONF)
937 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
938 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
939 $(am__aclocal_m4_deps):
941 gpsd_config.h: stamp-h1
942 @if test ! -f $@; then \
944 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
947 stamp-h1: $(srcdir)/gpsd_config.h.in $(top_builddir)/config.status
949 cd $(top_builddir) && $(SHELL) ./config.status gpsd_config.h
950 $(srcdir)/gpsd_config.h.in: $(am__configure_deps)
951 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
956 -rm -f gpsd_config.h stamp-h1
957 packaging/rpm/gpsd.spec: $(top_builddir)/config.status $(top_srcdir)/packaging/rpm/gpsd.spec.in
958 cd $(top_builddir) && $(SHELL) ./config.status $@
959 libgps.pc: $(top_builddir)/config.status $(srcdir)/libgps.pc.in
960 cd $(top_builddir) && $(SHELL) ./config.status $@
961 libgpsd.pc: $(top_builddir)/config.status $(srcdir)/libgpsd.pc.in
962 cd $(top_builddir) && $(SHELL) ./config.status $@
963 jsongen.py: $(top_builddir)/config.status $(srcdir)/jsongen.py.in
964 cd $(top_builddir) && $(SHELL) ./config.status $@
965 maskaudit.py: $(top_builddir)/config.status $(srcdir)/maskaudit.py.in
966 cd $(top_builddir) && $(SHELL) ./config.status $@
967 valgrind-audit: $(top_builddir)/config.status $(srcdir)/valgrind-audit.in
968 cd $(top_builddir) && $(SHELL) ./config.status $@
969 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
971 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
972 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
973 list2=; for p in $$list; do \
974 if test -f $$p; then \
975 list2="$$list2 $$p"; \
978 test -z "$$list2" || { \
979 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
980 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
983 uninstall-libLTLIBRARIES:
985 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
986 for p in $$list; do \
988 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
989 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
992 clean-libLTLIBRARIES:
993 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
994 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
995 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
996 test "$$dir" != "$$p" || dir=.; \
997 echo "rm -f \"$${dir}/so_locations\""; \
998 rm -f "$${dir}/so_locations"; \
1000 libgps.la: $(libgps_la_OBJECTS) $(libgps_la_DEPENDENCIES)
1001 $(libgps_la_LINK) -rpath $(libdir) $(libgps_la_OBJECTS) $(libgps_la_LIBADD) $(LIBS)
1002 libgpsd.la: $(libgpsd_la_OBJECTS) $(libgpsd_la_DEPENDENCIES)
1003 $(LINK) -rpath $(libdir) $(libgpsd_la_OBJECTS) $(libgpsd_la_LIBADD) $(LIBS)
1004 install-binPROGRAMS: $(bin_PROGRAMS)
1006 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
1007 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
1008 for p in $$list; do echo "$$p $$p"; done | \
1009 sed 's/$(EXEEXT)$$//' | \
1010 while read p p1; do if test -f $$p || test -f $$p1; \
1011 then echo "$$p"; echo "$$p"; else :; fi; \
1013 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
1014 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
1015 sed 'N;N;N;s,\n, ,g' | \
1016 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
1017 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
1018 if ($$2 == $$4) files[d] = files[d] " " $$1; \
1019 else { print "f", $$3 "/" $$4, $$1; } } \
1020 END { for (d in files) print "f", d, files[d] }' | \
1021 while read type dir files; do \
1022 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
1023 test -z "$$files" || { \
1024 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
1025 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
1029 uninstall-binPROGRAMS:
1030 @$(NORMAL_UNINSTALL)
1031 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
1032 files=`for p in $$list; do echo "$$p"; done | \
1033 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
1034 -e 's/$$/$(EXEEXT)/' `; \
1035 test -n "$$list" || exit 0; \
1036 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
1037 cd "$(DESTDIR)$(bindir)" && rm -f $$files
1040 @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
1041 echo " rm -f" $$list; \
1042 rm -f $$list || exit $$?; \
1043 test -n "$(EXEEXT)" || exit 0; \
1044 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
1045 echo " rm -f" $$list; \
1048 clean-checkPROGRAMS:
1049 @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
1050 echo " rm -f" $$list; \
1051 rm -f $$list || exit $$?; \
1052 test -n "$(EXEEXT)" || exit 0; \
1053 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
1054 echo " rm -f" $$list; \
1056 install-sbinPROGRAMS: $(sbin_PROGRAMS)
1058 test -z "$(sbindir)" || $(MKDIR_P) "$(DESTDIR)$(sbindir)"
1059 @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \
1060 for p in $$list; do echo "$$p $$p"; done | \
1061 sed 's/$(EXEEXT)$$//' | \
1062 while read p p1; do if test -f $$p || test -f $$p1; \
1063 then echo "$$p"; echo "$$p"; else :; fi; \
1065 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
1066 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
1067 sed 'N;N;N;s,\n, ,g' | \
1068 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
1069 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
1070 if ($$2 == $$4) files[d] = files[d] " " $$1; \
1071 else { print "f", $$3 "/" $$4, $$1; } } \
1072 END { for (d in files) print "f", d, files[d] }' | \
1073 while read type dir files; do \
1074 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
1075 test -z "$$files" || { \
1076 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(sbindir)$$dir'"; \
1077 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(sbindir)$$dir" || exit $$?; \
1081 uninstall-sbinPROGRAMS:
1082 @$(NORMAL_UNINSTALL)
1083 @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \
1084 files=`for p in $$list; do echo "$$p"; done | \
1085 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
1086 -e 's/$$/$(EXEEXT)/' `; \
1087 test -n "$$list" || exit 0; \
1088 echo " ( cd '$(DESTDIR)$(sbindir)' && rm -f" $$files ")"; \
1089 cd "$(DESTDIR)$(sbindir)" && rm -f $$files
1092 @list='$(sbin_PROGRAMS)'; test -n "$$list" || exit 0; \
1093 echo " rm -f" $$list; \
1094 rm -f $$list || exit $$?; \
1095 test -n "$(EXEEXT)" || exit 0; \
1096 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
1097 echo " rm -f" $$list; \
1099 cgps$(EXEEXT): $(cgps_OBJECTS) $(cgps_DEPENDENCIES)
1100 @rm -f cgps$(EXEEXT)
1101 $(LINK) $(cgps_OBJECTS) $(cgps_LDADD) $(LIBS)
1102 gpsctl$(EXEEXT): $(gpsctl_OBJECTS) $(gpsctl_DEPENDENCIES)
1103 @rm -f gpsctl$(EXEEXT)
1104 $(LINK) $(gpsctl_OBJECTS) $(gpsctl_LDADD) $(LIBS)
1105 gpsd$(EXEEXT): $(gpsd_OBJECTS) $(gpsd_DEPENDENCIES)
1106 @rm -f gpsd$(EXEEXT)
1107 $(LINK) $(gpsd_OBJECTS) $(gpsd_LDADD) $(LIBS)
1108 gpsdecode$(EXEEXT): $(gpsdecode_OBJECTS) $(gpsdecode_DEPENDENCIES)
1109 @rm -f gpsdecode$(EXEEXT)
1110 $(LINK) $(gpsdecode_OBJECTS) $(gpsdecode_LDADD) $(LIBS)
1111 gpsmon$(EXEEXT): $(gpsmon_OBJECTS) $(gpsmon_DEPENDENCIES)
1112 @rm -f gpsmon$(EXEEXT)
1113 $(LINK) $(gpsmon_OBJECTS) $(gpsmon_LDADD) $(LIBS)
1114 gpspipe$(EXEEXT): $(gpspipe_OBJECTS) $(gpspipe_DEPENDENCIES)
1115 @rm -f gpspipe$(EXEEXT)
1116 $(LINK) $(gpspipe_OBJECTS) $(gpspipe_LDADD) $(LIBS)
1117 gpxlogger$(EXEEXT): $(gpxlogger_OBJECTS) $(gpxlogger_DEPENDENCIES)
1118 @rm -f gpxlogger$(EXEEXT)
1119 $(LINK) $(gpxlogger_OBJECTS) $(gpxlogger_LDADD) $(LIBS)
1120 lcdgps$(EXEEXT): $(lcdgps_OBJECTS) $(lcdgps_DEPENDENCIES)
1121 @rm -f lcdgps$(EXEEXT)
1122 $(LINK) $(lcdgps_OBJECTS) $(lcdgps_LDADD) $(LIBS)
1123 test_bits$(EXEEXT): $(test_bits_OBJECTS) $(test_bits_DEPENDENCIES)
1124 @rm -f test_bits$(EXEEXT)
1125 $(LINK) $(test_bits_OBJECTS) $(test_bits_LDADD) $(LIBS)
1126 test_float$(EXEEXT): $(test_float_OBJECTS) $(test_float_DEPENDENCIES)
1127 @rm -f test_float$(EXEEXT)
1128 $(LINK) $(test_float_OBJECTS) $(test_float_LDADD) $(LIBS)
1129 test_geoid$(EXEEXT): $(test_geoid_OBJECTS) $(test_geoid_DEPENDENCIES)
1130 @rm -f test_geoid$(EXEEXT)
1131 $(LINK) $(test_geoid_OBJECTS) $(test_geoid_LDADD) $(LIBS)
1132 test_gpsmm$(EXEEXT): $(test_gpsmm_OBJECTS) $(test_gpsmm_DEPENDENCIES)
1133 @rm -f test_gpsmm$(EXEEXT)
1134 $(CXXLINK) $(test_gpsmm_OBJECTS) $(test_gpsmm_LDADD) $(LIBS)
1135 test_json$(EXEEXT): $(test_json_OBJECTS) $(test_json_DEPENDENCIES)
1136 @rm -f test_json$(EXEEXT)
1137 $(LINK) $(test_json_OBJECTS) $(test_json_LDADD) $(LIBS)
1138 test_mkgmtime$(EXEEXT): $(test_mkgmtime_OBJECTS) $(test_mkgmtime_DEPENDENCIES)
1139 @rm -f test_mkgmtime$(EXEEXT)
1140 $(LINK) $(test_mkgmtime_OBJECTS) $(test_mkgmtime_LDADD) $(LIBS)
1141 test_packet$(EXEEXT): $(test_packet_OBJECTS) $(test_packet_DEPENDENCIES)
1142 @rm -f test_packet$(EXEEXT)
1143 $(LINK) $(test_packet_OBJECTS) $(test_packet_LDADD) $(LIBS)
1144 test_qgpsmm$(EXEEXT): $(test_qgpsmm_OBJECTS) $(test_qgpsmm_DEPENDENCIES)
1145 @rm -f test_qgpsmm$(EXEEXT)
1146 $(test_qgpsmm_LINK) $(test_qgpsmm_OBJECTS) $(test_qgpsmm_LDADD) $(LIBS)
1147 test_trig$(EXEEXT): $(test_trig_OBJECTS) $(test_trig_DEPENDENCIES)
1148 @rm -f test_trig$(EXEEXT)
1149 $(LINK) $(test_trig_OBJECTS) $(test_trig_LDADD) $(LIBS)
1151 mostlyclean-compile:
1157 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ais_json.Plo@am__quote@
1158 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bits.Plo@am__quote@
1159 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bsd-base64.Plo@am__quote@
1160 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cgps.Po@am__quote@
1161 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crc24q.Plo@am__quote@
1162 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/driver_aivdm.Plo@am__quote@
1163 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/driver_evermore.Plo@am__quote@
1164 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/driver_garmin.Plo@am__quote@
1165 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/driver_garmin_txt.Plo@am__quote@
1166 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/driver_italk.Plo@am__quote@
1167 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/driver_navcom.Plo@am__quote@
1168 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/driver_nmea.Plo@am__quote@
1169 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/driver_oncore.Plo@am__quote@
1170 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/driver_rtcm2.Plo@am__quote@
1171 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/driver_rtcm3.Plo@am__quote@
1172 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/driver_sirf.Plo@am__quote@
1173 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/driver_superstar2.Plo@am__quote@
1174 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/driver_tsip.Plo@am__quote@
1175 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/driver_ubx.Plo@am__quote@
1176 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/driver_zodiac.Plo@am__quote@
1177 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drivers.Plo@am__quote@
1178 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geoid.Plo@am__quote@
1179 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gps_maskdump.Plo@am__quote@
1180 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gpsctl.Po@am__quote@
1181 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gpsd.Po@am__quote@
1182 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gpsd_dbus.Po@am__quote@
1183 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gpsd_json.Plo@am__quote@
1184 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gpsd_maskdump.Plo@am__quote@
1185 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gpsd_report.Plo@am__quote@
1186 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gpsdclient.Plo@am__quote@
1187 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gpsdecode.Po@am__quote@
1188 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gpsmon.Po@am__quote@
1189 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gpspipe.Po@am__quote@
1190 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gpsutils.Plo@am__quote@
1191 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gpxlogger.Po@am__quote@
1192 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hex.Plo@am__quote@
1193 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isgps.Plo@am__quote@
1194 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/json.Plo@am__quote@
1195 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lcdgps.Po@am__quote@
1196 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgps_core.Plo@am__quote@
1197 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgps_json.Plo@am__quote@
1198 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgpsd_core.Plo@am__quote@
1199 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgpsmm.Plo@am__quote@
1200 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/monitor_italk.Po@am__quote@
1201 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/monitor_nmea.Po@am__quote@
1202 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/monitor_oncore.Po@am__quote@
1203 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/monitor_sirf.Po@am__quote@
1204 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/monitor_superstar2.Po@am__quote@
1205 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/monitor_tnt.Po@am__quote@
1206 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/monitor_ubx.Po@am__quote@
1207 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/net_dgpsip.Plo@am__quote@
1208 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/net_gnss_dispatch.Plo@am__quote@
1209 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/net_ntrip.Plo@am__quote@
1210 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/netlib.Plo@am__quote@
1211 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ntpshm.Plo@am__quote@
1212 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/packet.Plo@am__quote@
1213 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pseudonmea.Plo@am__quote@
1214 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rtcm2_json.Plo@am__quote@
1215 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/serial.Plo@am__quote@
1216 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/shared_json.Plo@am__quote@
1217 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/srecord.Plo@am__quote@
1218 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strl.Plo@am__quote@
1219 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/subframe.Plo@am__quote@
1220 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_bits.Po@am__quote@
1221 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_float.Po@am__quote@
1222 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_geoid.Po@am__quote@
1223 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_gpsmm.Po@am__quote@
1224 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_json.Po@am__quote@
1225 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_mkgmtime.Po@am__quote@
1226 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_packet.Po@am__quote@
1227 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_trig.Po@am__quote@
1230 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
1231 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
1232 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
1233 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1234 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
1237 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
1238 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
1239 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
1240 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1241 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
1244 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
1245 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
1246 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
1247 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1248 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
1251 @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
1252 @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
1253 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
1254 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1255 @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
1258 @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
1259 @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
1260 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
1261 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1262 @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
1265 @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
1266 @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
1267 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
1268 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1269 @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
1271 mostlyclean-libtool:
1278 -rm -f libtool config.lt
1279 install-pythonPYTHON: $(python_PYTHON)
1281 test -z "$(pythondir)" || $(MKDIR_P) "$(DESTDIR)$(pythondir)"
1282 @list='$(python_PYTHON)'; dlist=; list2=; test -n "$(pythondir)" || list=; \
1283 for p in $$list; do \
1284 if test -f "$$p"; then b=; else b="$(srcdir)/"; fi; \
1285 if test -f $$b$$p; then \
1287 dlist="$$dlist $$f"; \
1288 list2="$$list2 $$b$$p"; \
1291 for file in $$list2; do echo $$file; done | $(am__base_list) | \
1292 while read files; do \
1293 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pythondir)'"; \
1294 $(INSTALL_DATA) $$files "$(DESTDIR)$(pythondir)" || exit $$?; \
1296 if test -n "$$dlist"; then \
1297 if test -z "$(DESTDIR)"; then \
1298 PYTHON=$(PYTHON) $(py_compile) --basedir "$(pythondir)" $$dlist; \
1300 PYTHON=$(PYTHON) $(py_compile) --destdir "$(DESTDIR)" --basedir "$(pythondir)" $$dlist; \
1304 uninstall-pythonPYTHON:
1305 @$(NORMAL_UNINSTALL)
1306 @list='$(python_PYTHON)'; test -n "$(pythondir)" || list=; \
1307 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
1308 test -n "$$files" || exit 0; \
1309 filesc=`echo "$$files" | sed 's|$$|c|'`; \
1310 fileso=`echo "$$files" | sed 's|$$|o|'`; \
1311 echo " ( cd '$(DESTDIR)$(pythondir)' && rm -f" $$files ")"; \
1312 cd "$(DESTDIR)$(pythondir)" && rm -f $$files || exit $$?; \
1313 echo " ( cd '$(DESTDIR)$(pythondir)' && rm -f" $$filesc ")"; \
1314 cd "$(DESTDIR)$(pythondir)" && rm -f $$filesc || exit $$?; \
1315 echo " ( cd '$(DESTDIR)$(pythondir)' && rm -f" $$fileso ")"; \
1316 cd "$(DESTDIR)$(pythondir)" && rm -f $$fileso
1317 install-man1: $(man_MANS)
1319 test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
1320 @list=''; test -n "$(man1dir)" || exit 0; \
1321 { for i in $$list; do echo "$$i"; done; \
1322 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
1323 sed -n '/\.1[a-z]*$$/p'; \
1324 } | while read p; do \
1325 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
1326 echo "$$d$$p"; echo "$$p"; \
1328 sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
1329 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
1330 sed 'N;N;s,\n, ,g' | { \
1331 list=; while read file base inst; do \
1332 if test "$$base" = "$$inst"; then list="$$list $$file"; else \
1333 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
1334 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
1337 for i in $$list; do echo "$$i"; done | $(am__base_list) | \
1338 while read files; do \
1339 test -z "$$files" || { \
1340 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
1341 $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
1345 @$(NORMAL_UNINSTALL)
1346 @list=''; test -n "$(man1dir)" || exit 0; \
1347 files=`{ for i in $$list; do echo "$$i"; done; \
1348 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
1349 sed -n '/\.1[a-z]*$$/p'; \
1350 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
1351 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
1352 test -z "$$files" || { \
1353 echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \
1354 cd "$(DESTDIR)$(man1dir)" && rm -f $$files; }
1355 install-man3: $(man_MANS)
1357 test -z "$(man3dir)" || $(MKDIR_P) "$(DESTDIR)$(man3dir)"
1358 @list=''; test -n "$(man3dir)" || exit 0; \
1359 { for i in $$list; do echo "$$i"; done; \
1360 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
1361 sed -n '/\.3[a-z]*$$/p'; \
1362 } | while read p; do \
1363 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
1364 echo "$$d$$p"; echo "$$p"; \
1366 sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \
1367 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
1368 sed 'N;N;s,\n, ,g' | { \
1369 list=; while read file base inst; do \
1370 if test "$$base" = "$$inst"; then list="$$list $$file"; else \
1371 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \
1372 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst" || exit $$?; \
1375 for i in $$list; do echo "$$i"; done | $(am__base_list) | \
1376 while read files; do \
1377 test -z "$$files" || { \
1378 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man3dir)'"; \
1379 $(INSTALL_DATA) $$files "$(DESTDIR)$(man3dir)" || exit $$?; }; \
1383 @$(NORMAL_UNINSTALL)
1384 @list=''; test -n "$(man3dir)" || exit 0; \
1385 files=`{ for i in $$list; do echo "$$i"; done; \
1386 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
1387 sed -n '/\.3[a-z]*$$/p'; \
1388 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \
1389 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
1390 test -z "$$files" || { \
1391 echo " ( cd '$(DESTDIR)$(man3dir)' && rm -f" $$files ")"; \
1392 cd "$(DESTDIR)$(man3dir)" && rm -f $$files; }
1393 install-man5: $(man_MANS)
1395 test -z "$(man5dir)" || $(MKDIR_P) "$(DESTDIR)$(man5dir)"
1396 @list=''; test -n "$(man5dir)" || exit 0; \
1397 { for i in $$list; do echo "$$i"; done; \
1398 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
1399 sed -n '/\.5[a-z]*$$/p'; \
1400 } | while read p; do \
1401 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
1402 echo "$$d$$p"; echo "$$p"; \
1404 sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \
1405 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
1406 sed 'N;N;s,\n, ,g' | { \
1407 list=; while read file base inst; do \
1408 if test "$$base" = "$$inst"; then list="$$list $$file"; else \
1409 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man5dir)/$$inst'"; \
1410 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man5dir)/$$inst" || exit $$?; \
1413 for i in $$list; do echo "$$i"; done | $(am__base_list) | \
1414 while read files; do \
1415 test -z "$$files" || { \
1416 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man5dir)'"; \
1417 $(INSTALL_DATA) $$files "$(DESTDIR)$(man5dir)" || exit $$?; }; \
1421 @$(NORMAL_UNINSTALL)
1422 @list=''; test -n "$(man5dir)" || exit 0; \
1423 files=`{ for i in $$list; do echo "$$i"; done; \
1424 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
1425 sed -n '/\.5[a-z]*$$/p'; \
1426 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \
1427 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
1428 test -z "$$files" || { \
1429 echo " ( cd '$(DESTDIR)$(man5dir)' && rm -f" $$files ")"; \
1430 cd "$(DESTDIR)$(man5dir)" && rm -f $$files; }
1431 install-man8: $(man_MANS)
1433 test -z "$(man8dir)" || $(MKDIR_P) "$(DESTDIR)$(man8dir)"
1434 @list=''; test -n "$(man8dir)" || exit 0; \
1435 { for i in $$list; do echo "$$i"; done; \
1436 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
1437 sed -n '/\.8[a-z]*$$/p'; \
1438 } | while read p; do \
1439 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
1440 echo "$$d$$p"; echo "$$p"; \
1442 sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \
1443 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
1444 sed 'N;N;s,\n, ,g' | { \
1445 list=; while read file base inst; do \
1446 if test "$$base" = "$$inst"; then list="$$list $$file"; else \
1447 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \
1448 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst" || exit $$?; \
1451 for i in $$list; do echo "$$i"; done | $(am__base_list) | \
1452 while read files; do \
1453 test -z "$$files" || { \
1454 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man8dir)'"; \
1455 $(INSTALL_DATA) $$files "$(DESTDIR)$(man8dir)" || exit $$?; }; \
1459 @$(NORMAL_UNINSTALL)
1460 @list=''; test -n "$(man8dir)" || exit 0; \
1461 files=`{ for i in $$list; do echo "$$i"; done; \
1462 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
1463 sed -n '/\.8[a-z]*$$/p'; \
1464 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \
1465 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
1466 test -z "$$files" || { \
1467 echo " ( cd '$(DESTDIR)$(man8dir)' && rm -f" $$files ")"; \
1468 cd "$(DESTDIR)$(man8dir)" && rm -f $$files; }
1469 install-pkgconfigDATA: $(pkgconfig_DATA)
1471 test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
1472 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
1473 for p in $$list; do \
1474 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1476 done | $(am__base_list) | \
1477 while read files; do \
1478 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
1479 $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
1482 uninstall-pkgconfigDATA:
1483 @$(NORMAL_UNINSTALL)
1484 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
1485 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
1486 test -n "$$files" || exit 0; \
1487 echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
1488 cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
1489 install-includeHEADERS: $(include_HEADERS)
1491 test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
1492 @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
1493 for p in $$list; do \
1494 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1496 done | $(am__base_list) | \
1497 while read files; do \
1498 echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
1499 $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
1502 uninstall-includeHEADERS:
1503 @$(NORMAL_UNINSTALL)
1504 @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
1505 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
1506 test -n "$$files" || exit 0; \
1507 echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
1508 cd "$(DESTDIR)$(includedir)" && rm -f $$files
1509 install-nodist_includeHEADERS: $(nodist_include_HEADERS)
1511 test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
1512 @list='$(nodist_include_HEADERS)'; test -n "$(includedir)" || list=; \
1513 for p in $$list; do \
1514 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1516 done | $(am__base_list) | \
1517 while read files; do \
1518 echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
1519 $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
1522 uninstall-nodist_includeHEADERS:
1523 @$(NORMAL_UNINSTALL)
1524 @list='$(nodist_include_HEADERS)'; test -n "$(includedir)" || list=; \
1525 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
1526 test -n "$$files" || exit 0; \
1527 echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
1528 cd "$(DESTDIR)$(includedir)" && rm -f $$files
1530 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
1531 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
1532 unique=`for i in $$list; do \
1533 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1535 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
1536 END { if (nonempty) { for (i in files) print i; }; }'`; \
1540 TAGS: $(HEADERS) $(SOURCES) gpsd_config.h.in $(TAGS_DEPENDENCIES) \
1541 $(TAGS_FILES) $(LISP)
1544 list='$(SOURCES) $(HEADERS) gpsd_config.h.in $(LISP) $(TAGS_FILES)'; \
1545 unique=`for i in $$list; do \
1546 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1548 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
1549 END { if (nonempty) { for (i in files) print i; }; }'`; \
1551 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
1552 test -n "$$unique" || unique=$$empty_fix; \
1553 if test $$# -gt 0; then \
1554 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
1557 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
1562 CTAGS: $(HEADERS) $(SOURCES) gpsd_config.h.in $(TAGS_DEPENDENCIES) \
1563 $(TAGS_FILES) $(LISP)
1564 list='$(SOURCES) $(HEADERS) gpsd_config.h.in $(LISP) $(TAGS_FILES)'; \
1565 unique=`for i in $$list; do \
1566 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1568 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
1569 END { if (nonempty) { for (i in files) print i; }; }'`; \
1570 test -z "$(CTAGS_ARGS)$$unique" \
1571 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
1575 here=`$(am__cd) $(top_builddir) && pwd` \
1576 && $(am__cd) $(top_srcdir) \
1577 && gtags -i $(GTAGS_ARGS) "$$here"
1580 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
1582 check-TESTS: $(TESTS)
1583 @failed=0; all=0; xfail=0; xpass=0; skip=0; \
1584 srcdir=$(srcdir); export srcdir; \
1585 list=' $(TESTS) '; \
1586 $(am__tty_colors); \
1587 if test -n "$$list"; then \
1588 for tst in $$list; do \
1589 if test -f ./$$tst; then dir=./; \
1590 elif test -f $$tst; then dir=; \
1591 else dir="$(srcdir)/"; fi; \
1592 if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
1593 all=`expr $$all + 1`; \
1594 case " $(XFAIL_TESTS) " in \
1595 *[\ \ ]$$tst[\ \ ]*) \
1596 xpass=`expr $$xpass + 1`; \
1597 failed=`expr $$failed + 1`; \
1598 col=$$red; res=XPASS; \
1601 col=$$grn; res=PASS; \
1604 elif test $$? -ne 77; then \
1605 all=`expr $$all + 1`; \
1606 case " $(XFAIL_TESTS) " in \
1607 *[\ \ ]$$tst[\ \ ]*) \
1608 xfail=`expr $$xfail + 1`; \
1609 col=$$lgn; res=XFAIL; \
1612 failed=`expr $$failed + 1`; \
1613 col=$$red; res=FAIL; \
1617 skip=`expr $$skip + 1`; \
1618 col=$$blu; res=SKIP; \
1620 echo "$${col}$$res$${std}: $$tst"; \
1622 if test "$$all" -eq 1; then \
1629 if test "$$failed" -eq 0; then \
1630 if test "$$xfail" -eq 0; then \
1631 banner="$$All$$all $$tests passed"; \
1633 if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
1634 banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
1637 if test "$$xpass" -eq 0; then \
1638 banner="$$failed of $$all $$tests failed"; \
1640 if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
1641 banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
1644 dashes="$$banner"; \
1646 if test "$$skip" -ne 0; then \
1647 if test "$$skip" -eq 1; then \
1648 skipped="($$skip test was not run)"; \
1650 skipped="($$skip tests were not run)"; \
1652 test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
1653 dashes="$$skipped"; \
1656 if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
1657 report="Please report to $(PACKAGE_BUGREPORT)"; \
1658 test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
1659 dashes="$$report"; \
1661 dashes=`echo "$$dashes" | sed s/./=/g`; \
1662 if test "$$failed" -eq 0; then \
1663 echo "$$grn$$dashes"; \
1665 echo "$$red$$dashes"; \
1668 test -z "$$skipped" || echo "$$skipped"; \
1669 test -z "$$report" || echo "$$report"; \
1670 echo "$$dashes$$std"; \
1671 test "$$failed" -eq 0; \
1674 distdir: $(DISTFILES)
1675 @list='$(MANS)'; if test -n "$$list"; then \
1676 list=`for p in $$list; do \
1677 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
1678 if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
1679 if test -n "$$list" && \
1680 grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
1681 echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
1682 grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
1683 echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
1684 echo " typically \`make maintainer-clean' will remove them" >&2; \
1688 $(am__remove_distdir)
1689 test -d "$(distdir)" || mkdir "$(distdir)"
1690 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1691 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1692 list='$(DISTFILES)'; \
1693 dist_files=`for file in $$list; do echo $$file; done | \
1694 sed -e "s|^$$srcdirstrip/||;t" \
1695 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
1696 case $$dist_files in \
1697 */*) $(MKDIR_P) `echo "$$dist_files" | \
1698 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
1701 for file in $$dist_files; do \
1702 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
1703 if test -d $$d/$$file; then \
1704 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
1705 if test -d "$(distdir)/$$file"; then \
1706 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
1708 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
1709 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
1710 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
1712 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
1714 test -f "$(distdir)/$$file" \
1715 || cp -p $$d/$$file "$(distdir)/$$file" \
1719 $(MAKE) $(AM_MAKEFLAGS) \
1720 top_distdir="$(top_distdir)" distdir="$(distdir)" \
1722 -test -n "$(am__skip_mode_fix)" \
1723 || find "$(distdir)" -type d ! -perm -755 \
1724 -exec chmod u+rwx,go+rx {} \; -o \
1725 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
1726 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
1727 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
1728 || chmod -R a+r "$(distdir)"
1730 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
1731 $(am__remove_distdir)
1734 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
1735 $(am__remove_distdir)
1738 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
1739 $(am__remove_distdir)
1742 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
1743 $(am__remove_distdir)
1746 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
1747 $(am__remove_distdir)
1750 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
1751 $(am__remove_distdir)
1754 -rm -f $(distdir).zip
1755 zip -rq $(distdir).zip $(distdir)
1756 $(am__remove_distdir)
1758 dist dist-all: distdir
1759 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
1760 $(am__remove_distdir)
1762 # This target untars the dist file and tries a VPATH configuration. Then
1763 # it guarantees that the distribution is self-contained by making another
1766 case '$(DIST_ARCHIVES)' in \
1768 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
1770 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
1772 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
1774 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
1776 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
1778 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
1780 unzip $(distdir).zip ;;\
1782 chmod -R a-w $(distdir); chmod a+w $(distdir)
1783 mkdir $(distdir)/_build
1784 mkdir $(distdir)/_inst
1785 chmod a-w $(distdir)
1786 test -d $(distdir)/_build || exit 0; \
1787 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
1788 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
1790 && $(am__cd) $(distdir)/_build \
1791 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
1792 $(DISTCHECK_CONFIGURE_FLAGS) \
1793 && $(MAKE) $(AM_MAKEFLAGS) \
1794 && $(MAKE) $(AM_MAKEFLAGS) dvi \
1795 && $(MAKE) $(AM_MAKEFLAGS) check \
1796 && $(MAKE) $(AM_MAKEFLAGS) install \
1797 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
1798 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
1799 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
1800 distuninstallcheck \
1801 && chmod -R a-w "$$dc_install_base" \
1803 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
1804 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
1805 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
1806 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
1807 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
1808 } || { rm -rf "$$dc_destdir"; exit 1; }) \
1809 && rm -rf "$$dc_destdir" \
1810 && $(MAKE) $(AM_MAKEFLAGS) dist \
1811 && rm -rf $(DIST_ARCHIVES) \
1812 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
1815 $(am__remove_distdir)
1816 @(echo "$(distdir) archives ready for distribution: "; \
1817 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
1818 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
1820 @$(am__cd) '$(distuninstallcheck_dir)' \
1821 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
1822 || { echo "ERROR: files left after uninstall:" ; \
1823 if test -n "$(DESTDIR)"; then \
1824 echo " (check DESTDIR support)"; \
1826 $(distuninstallcheck_listfiles) ; \
1828 distcleancheck: distclean
1829 @if test '$(srcdir)' = . ; then \
1830 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
1833 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
1834 || { echo "ERROR: files left in build directory after distclean:" ; \
1835 $(distcleancheck_listfiles) ; \
1838 $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
1839 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
1840 check: $(BUILT_SOURCES)
1841 $(MAKE) $(AM_MAKEFLAGS) check-am
1842 all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) \
1843 $(HEADERS) gpsd_config.h
1844 install-binPROGRAMS: install-libLTLIBRARIES
1847 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(pythondir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(man8dir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(includedir)" "$(DESTDIR)$(includedir)"; do \
1848 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
1850 install: $(BUILT_SOURCES)
1851 $(MAKE) $(AM_MAKEFLAGS) install-am
1852 install-exec: install-exec-am
1853 install-data: install-data-am
1854 uninstall: uninstall-am
1857 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1859 installcheck: installcheck-am
1861 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1862 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1863 `test -z '$(STRIP)' || \
1864 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
1865 mostlyclean-generic:
1868 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
1871 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
1872 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
1874 maintainer-clean-generic:
1875 @echo "This command is intended for maintainers to use"
1876 @echo "it deletes files that may require special tools to rebuild."
1877 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
1880 clean-am: clean-binPROGRAMS clean-checkPROGRAMS clean-generic \
1881 clean-libLTLIBRARIES clean-libtool clean-local \
1882 clean-sbinPROGRAMS mostlyclean-am
1884 distclean: distclean-am
1885 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1888 distclean-am: clean-am distclean-compile distclean-generic \
1889 distclean-hdr distclean-libtool distclean-local distclean-tags
1903 install-data-am: install-includeHEADERS install-man \
1904 install-nodist_includeHEADERS install-pkgconfigDATA \
1905 install-pythonPYTHON
1907 install-dvi: install-dvi-am
1911 install-exec-am: install-binPROGRAMS install-exec-local \
1912 install-libLTLIBRARIES install-sbinPROGRAMS
1914 install-html: install-html-am
1918 install-info: install-info-am
1922 install-man: install-man1 install-man3 install-man5 install-man8
1924 install-pdf: install-pdf-am
1928 install-ps: install-ps-am
1934 maintainer-clean: maintainer-clean-am
1935 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1936 -rm -rf $(top_srcdir)/autom4te.cache
1939 maintainer-clean-am: distclean-am maintainer-clean-generic
1941 mostlyclean: mostlyclean-am
1943 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
1954 uninstall-am: uninstall-binPROGRAMS uninstall-includeHEADERS \
1955 uninstall-libLTLIBRARIES uninstall-man \
1956 uninstall-nodist_includeHEADERS uninstall-pkgconfigDATA \
1957 uninstall-pythonPYTHON uninstall-sbinPROGRAMS
1959 uninstall-man: uninstall-man1 uninstall-man3 uninstall-man5 \
1962 .MAKE: all check check-am install install-am install-strip
1964 .PHONY: CTAGS GTAGS all all-am am--refresh check check-TESTS check-am \
1965 clean clean-binPROGRAMS clean-checkPROGRAMS clean-generic \
1966 clean-libLTLIBRARIES clean-libtool clean-local \
1967 clean-sbinPROGRAMS ctags dist dist-all dist-bzip2 dist-gzip \
1968 dist-hook dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
1969 distcheck distclean distclean-compile distclean-generic \
1970 distclean-hdr distclean-libtool distclean-local distclean-tags \
1971 distcleancheck distdir distuninstallcheck dvi dvi-am html \
1972 html-am info info-am install install-am install-binPROGRAMS \
1973 install-data install-data-am install-dvi install-dvi-am \
1974 install-exec install-exec-am install-exec-local install-html \
1975 install-html-am install-includeHEADERS install-info \
1976 install-info-am install-libLTLIBRARIES install-man \
1977 install-man1 install-man3 install-man5 install-man8 \
1978 install-nodist_includeHEADERS install-pdf install-pdf-am \
1979 install-pkgconfigDATA install-ps install-ps-am \
1980 install-pythonPYTHON install-sbinPROGRAMS install-strip \
1981 installcheck installcheck-am installdirs maintainer-clean \
1982 maintainer-clean-generic mostlyclean mostlyclean-compile \
1983 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
1984 tags uninstall uninstall-am uninstall-binPROGRAMS \
1985 uninstall-includeHEADERS uninstall-libLTLIBRARIES \
1986 uninstall-man uninstall-man1 uninstall-man3 uninstall-man5 \
1987 uninstall-man8 uninstall-nodist_includeHEADERS \
1988 uninstall-pkgconfigDATA uninstall-pythonPYTHON \
1989 uninstall-sbinPROGRAMS
1991 print_libgps_VERSION_CURRENT:
1992 echo $(libgps_VERSION_CURRENT)
1993 print_libgps_VERSION__REVISION:
1994 echo $(libgps_VERSION__REVISION)
1995 print_libgps_VERSION_AGE:
1996 echo $(libgps_VERSION_AGE)
1997 print_libgps_SONAME:
1998 echo $(libgps_SONAME)
1999 print_libgps_VERSION:
2000 echo $(libgps_VERSION)
2002 packet_names.h: packet_states.h
2003 rm -f packet_names.h && \
2004 sed -e '/^ *\([A-Z][A-Z0-9_]*\),/s// "\1",/' -e '/_states/s//_names/' < `test -f 'packet_states.h' || echo '$(srcdir)/'`packet_states.h > packet_names.h && \
2005 chmod a-w packet_names.h
2007 gpsd.h: gpsd.h-head gpsd.h-tail gpsd_config.h
2009 echo "/* This file is generated. Do not hand-hack it! */" >gpsd.h && \
2010 cat $(srcdir)/gpsd.h-head >>gpsd.h && \
2011 cat $(srcdir)/gpsd_config.h >>gpsd.h && \
2012 cat $(srcdir)/gpsd.h-tail >>gpsd.h && \
2015 ais_json.i: jsongen.py
2016 rm -f ais_json.i && \
2017 $(PYTHON) jsongen.py --ais --target=parser >ais_json.i && \
2018 chmod a-w ais_json.i
2020 revision.h: Makefile
2021 @rm -f revision.h && \
2022 echo '#define' REVISION '"'`date -u +%Y-%m-%dT%H:%M:%S`'"' >revision.h && \
2023 chmod a-w revision.h
2025 gps_maskdump.c: gps.h maskaudit.py
2026 rm -f gps_maskdump.c && \
2027 $(PYTHON) maskaudit.py -c >gps_maskdump.c && \
2028 chmod a-w gps_maskdump.c
2030 gpsd_maskdump.c: gpsd.h maskaudit.py
2031 rm -f gpsd_maskdump.c && \
2032 $(PYTHON) maskaudit.py -d >gpsd_maskdump.c && \
2033 chmod a-w gpsd_maskdump.c
2035 # Multiple-outputs hack. See
2036 # http://www.gnu.org/software/automake/manual/automake.html#Multiple-Outputs
2037 @HAVE_PYTHON_TRUE@$(PYEXTENSIONS): stamp-python
2038 @HAVE_PYTHON_TRUE@ +@WITNESS=stamp-python; $(MULTIOUT_RECOVER_DELETED)
2039 # TODO: Should the dependency on libgps.la be enforced inside
2040 # setup.py? (See the variable 'needed_files' in setup.py.)
2041 @HAVE_PYTHON_TRUE@stamp-python: gpspacket.c gpsclient.c libgps.la setup.py $(PYTHONMODULES_DIST) $(PYTHONSCRIPTS_DIST)
2042 # Build Python modules and scripts using distutils via setup.py.
2043 # We define build-lib and build-scripts as distutils might have been
2044 # configured to use different directories, but we want to use the
2045 # produced files within the regress-driver script - therefore we
2046 # need to build them in directories we know about.
2047 # See configure.ac for the definition of PYTHON_DISTUTILS_LIBDIR
2048 # and PYTHON_DISTUTILS_SCRIPTDIR.
2049 @HAVE_PYTHON_TRUE@ @rm -f '$@' '$@.tmp'
2050 @HAVE_PYTHON_TRUE@ @echo 'timestamp for $@' > '$@.tmp'
2051 @HAVE_PYTHON_TRUE@ (cd '$(srcdir)' && \
2052 @HAVE_PYTHON_TRUE@ env abs_builddir='$(abs_builddir)' \
2053 @HAVE_PYTHON_TRUE@ MAKE='$(MAKE)' \
2054 @HAVE_PYTHON_TRUE@ $(PYTHON) setup.py build \
2055 @HAVE_PYTHON_TRUE@ --build-lib '$(srcdir)/$(PYTHON_DISTUTILS_LIBDIR)' \
2056 @HAVE_PYTHON_TRUE@ --build-scripts '$(srcdir)/$(PYTHON_DISTUTILS_SCRIPTDIR)' \
2057 @HAVE_PYTHON_TRUE@ --mangenerator '$(XMLPROC)') && \
2058 @HAVE_PYTHON_TRUE@ (cd '$(srcdir)/gps' && \
2059 @HAVE_PYTHON_TRUE@ rm -f *.so && \
2060 @HAVE_PYTHON_TRUE@ ln -s ../$(PYTHON_DISTUTILS_LIBDIR)/gps/*.so . ) && \
2061 @HAVE_PYTHON_TRUE@ mv -f '$@.tmp' '$@'
2063 @LIB_Q_GPSMM_ENABLE_TRUE@libQgpsmm/Makefile: libQgpsmm/libQgpsmm.pro gpsd.h ais_json.i
2064 @LIB_Q_GPSMM_ENABLE_TRUE@ cd $(srcdir)/libQgpsmm && $(QMAKE) $(QMAKE_OPTS)
2065 # Yet another multiple-outputs hack:
2066 @LIB_Q_GPSMM_ENABLE_TRUE@$(QTLIBS): stamp-qt
2067 @LIB_Q_GPSMM_ENABLE_TRUE@ +@WITNESS=stamp-qt; $(MULTIOUT_RECOVER_DELETED)
2068 @LIB_Q_GPSMM_ENABLE_TRUE@stamp-qt: $(QTLIB_sources) libQgpsmm/Makefile
2069 @LIB_Q_GPSMM_ENABLE_TRUE@ $(MAKE) -C $(srcdir)/libQgpsmm
2070 @LIB_Q_GPSMM_ENABLE_TRUE@ touch $@
2072 # Clean up after Python and QT
2074 @HAVE_PYTHON_TRUE@ rm -rf build gps/*.so
2075 @LIB_Q_GPSMM_ENABLE_TRUE@ if test -r $(srcdir)/libQgpsmm/Makefile; then \
2076 @LIB_Q_GPSMM_ENABLE_TRUE@ $(MAKE) -C $(srcdir)/libQgpsmm distclean || true; \
2077 @LIB_Q_GPSMM_ENABLE_TRUE@ fi
2078 @LIB_Q_GPSMM_ENABLE_TRUE@ rm -rf $(srcdir)/libQgpsmm/binaries
2079 @LIB_Q_GPSMM_ENABLE_TRUE@ rm -f $(srcdir)/libQgpsmm/*.o $(srcdir)/libQgpsmm/Makefile
2081 # Install Python modules and QT library
2083 # Make sure we do not use --root as option to setup.py install
2084 # when DESTDIR is not defined as distutils would use the current
2085 # working directory as root directory and not install to ${prefix}.
2086 @HAVE_PYTHON_TRUE@ if test -z "$(DESTDIR)"; then \
2087 @HAVE_PYTHON_TRUE@ $(PYTHON) setup.py install --prefix=${prefix} ;\
2088 @HAVE_PYTHON_TRUE@ else \
2089 @HAVE_PYTHON_TRUE@ $(PYTHON) setup.py install --prefix=${prefix} --root=$(DESTDIR) ;\
2090 @HAVE_PYTHON_TRUE@ fi
2091 @LIB_Q_GPSMM_ENABLE_TRUE@ $(MAKE) -C libQgpsmm install INSTALL_ROOT=$(DESTDIR)
2093 @HAVE_XSLT_PROCESSOR_TRUE@.xml.1:
2094 @HAVE_XSLT_PROCESSOR_TRUE@ $(XMLPROC) $(XMLPROCFLAGS) $(MANTARGET) $<
2096 @HAVE_XSLT_PROCESSOR_TRUE@.xml.3:
2097 @HAVE_XSLT_PROCESSOR_TRUE@ $(XMLPROC) $(XMLPROCFLAGS) $(MANTARGET) $<
2099 @HAVE_XSLT_PROCESSOR_TRUE@.xml.5:
2100 @HAVE_XSLT_PROCESSOR_TRUE@ $(XMLPROC) $(XMLPROCFLAGS) $(MANTARGET) $<
2102 @HAVE_XSLT_PROCESSOR_TRUE@.xml.8:
2103 @HAVE_XSLT_PROCESSOR_TRUE@ $(XMLPROC) $(XMLPROCFLAGS) $(MANTARGET) $<
2105 # Another instance of the multiple-outputs hack.
2106 @HAVE_XSLT_PROCESSOR_TRUE@gps.1 xgps.1 xgpsspeed.1 cgps.1 lcdgps.1: stamp-gps-manpages
2107 @HAVE_XSLT_PROCESSOR_TRUE@ +@WITNESS=stamp-gps-manpages; $(MULTIOUT_RECOVER_DELETED)
2108 @HAVE_XSLT_PROCESSOR_TRUE@stamp-gps-manpages: gps.xml
2109 @HAVE_XSLT_PROCESSOR_TRUE@ @rm -f '$@' '$@.tmp'
2110 @HAVE_XSLT_PROCESSOR_TRUE@ echo 'timestamp for $@' > '$@.tmp' && \
2111 @HAVE_XSLT_PROCESSOR_TRUE@ $(XMLPROC) $(XMLPROCFLAGS) $(MANTARGET) '$(srcdir)/gps.xml' && \
2112 @HAVE_XSLT_PROCESSOR_TRUE@ mv -f '$@.tmp' '$@'
2114 # Prepare necessary files to build the mingw-port of libQgpsmm
2115 # while creating the dist tarball.
2116 dist-hook: ais_json.i gpsd_config.h
2117 $(MKDIR_P) '$(distdir)/libQgpsmm/mingw'
2118 cp -p ais_json.i $(distdir)/libQgpsmm/mingw
2119 grep "#define VERSION" gpsd_config.h > $(distdir)/libQgpsmm/mingw/version.h
2120 echo "VERSION=$(libgps_VERSION)" > $(distdir)/libQgpsmm/mingw/version.pri
2122 rm -f $(distdir)/libQgpsmm/mingw/version.* $(distdir)/libQgpsmm/mingw/ais_json.i
2124 # These are not distributed
2125 libgps: libgps_core.c gps.h .libs/libgps.a
2126 $(CC) $(CFLAGS) -o libgps -lm -DTESTMAIN $(LIBPTHREAD) -g libgps_core.c .libs/libgps.a
2127 splint: gpsd.h packet_names.h
2128 @echo "Running splint on daemon and libraries..."
2129 -splint $(SPLINTOPTS) -exportlocal -redef $(gpsd_c_sources) $(libgpsd_c_sources) $(libgps_c_sources)
2130 @echo "Running splint on cgps..."
2131 -splint $(SPLINTOPTS) -exportlocal $(cgps_SOURCES)
2132 @echo "Running splint on gpsctl..."
2133 -splint $(SPLINTOPTS) $(gpsctl_SOURCES)
2134 @echo "Running splint on gpsmon..."
2135 -splint $(SPLINTOPTS) -exportlocal $(gpsmon_SOURCES)
2136 @echo "Running splint on gpspipe..."
2137 -splint $(SPLINTOPTS) $(gpspipe_SOURCES)
2138 @echo "Running splint on gpsdecode..."
2139 -splint $(SPLINTOPTS) $(gpsdecode_SOURCES)
2140 @echo "Running splint on gpxlogger..."
2141 -splint $(SPLINTOPTS) $(gpxlogger_SOURCES)
2142 @echo "Running splint on test_bits test harness..."
2143 -splint $(SPLINTOPTS) $(test_bits_SOURCES)
2144 @echo "Running splint on test_packet test harness..."
2145 -splint $(SPLINTOPTS) $(test_packet_SOURCES)
2146 @echo "Running splint on test_mkgmtime test harness..."
2147 -splint $(SPLINTOPTS) $(test_mkgmtime_SOURCES)
2148 @echo "Running splint on test_geoid test harness..."
2149 -splint $(SPLINTOPTS) $(test_geoid_SOURCES)
2150 @echo "Running splint on test_json test harness..."
2151 -splint $(SPLINTOPTS) $(test_json_SOURCES)
2153 # Report cppcheck warnings. Requires 1.40 or later.
2154 cppcheck: gpsd.h packet_names.h
2155 cppcheck --template gcc --all --force .
2157 # Check the documentation for bogons, too
2159 for xml in $(XML); do xmllint --nonet --noout --valid $$xml; done
2161 chmod u+w *maskdump.c
2162 indent $(INDENT_OPTIONS) $(INDENT_FILES)
2163 for f in $(INDENT_FILES); \
2165 sed <$${f} >/tmp/reindent$$$$ -e 's/@ \*/@*/' ; \
2166 mv /tmp/reindent$$$$ $${f} ; \
2168 chmod u-w *maskdump.c
2169 @echo "Diff lines:" `git diff | wc -l`
2174 # Regression-test the daemon
2175 gps-regress: gpsd stamp-python
2176 $(run_regress_driver) $(srcdir)/test/daemon/*.log
2178 # Test that super-raw mode works. Compare each logfile against itself
2179 # dumped through the daemon running in R=2 mode. (This test is not
2180 # included in the normal regressions.)
2181 raw-regress: stamp-python
2182 $(run_regress_driver) -r $(srcdir)/test/daemon/*.log
2184 # Build the regression tests for the daemon.
2185 gps-makeregress: gpsd stamp-python
2186 $(run_regress_driver) -b $(srcdir)/test/daemon/*.log
2188 # To build an individual test for a load named foo.log, put it in
2189 # test/daemon and do this:
2190 # regress-driver -b test/daemon/foo.log
2192 # Regression-test the RTCM decoder.
2193 rtcm-regress: gpsdecode
2194 @echo "Testing RTCM decoding..."
2196 @for f in $(srcdir)/test/*.rtcm2; do \
2197 echo "Testing $${f}..."; \
2198 $(srcdir)/gpsdecode <$${f} >/tmp/test-$$$$.chk; \
2199 diff -ub $${f}.chk /tmp/test-$$$$.chk; \
2201 @echo "Testing idempotency of JSON dump/decode for RTCM2"
2202 @$(srcdir)/gpsdecode -e -j <test/synthetic-rtcm2.json >/tmp/test-$$$$.chk; \
2203 grep -v '^#' test/synthetic-rtcm2.json | diff -ub - /tmp/test-$$$$.chk; \
2204 rm /tmp/test-$$$$.chk
2206 # Rebuild the RTCM regression tests.
2207 rtcm-makeregress: gpsdecode
2208 @for f in $(srcdir)/test/*.rtcm2; do \
2209 $(srcdir)/gpsdecode -j < $${f} > $${f}.chk; \
2212 # Regression-test the AIVDM decoder.
2213 aivdm-regress: gpsdecode
2214 echo "Testing AIVDM decoding..."
2215 @mkdir -p $(srcdir)/test
2216 @for f in $(srcdir)/test/*.aivdm; do \
2217 echo "Testing $${f}..."; \
2218 $(srcdir)/gpsdecode -u -c <$${f} >/tmp/test-$$$$.chk; \
2219 diff -ub $${f}.chk /tmp/test-$$$$.chk; \
2221 @echo "Testing idempotency of JSON dump/decode for AIS"
2222 @$(srcdir)/gpsdecode -e -j <$(srcdir)/test/synthetic-ais.json >/tmp/test-$$$$.chk; \
2223 grep -v '^#' $(srcdir)/test/synthetic-ais.json | diff -ub - /tmp/test-$$$$.chk; \
2224 rm /tmp/test-$$$$.chk
2226 # Rebuild the AIVDM regression tests.
2227 aivdm-makeregress: gpsdecode
2228 @for f in $(srcdir)/test/*.aivdm; do \
2229 $(srcdir)/gpsdecode -u -c <$${f} > $${f}.chk; \
2232 # Regression-test the packet getter.
2233 packet-regress: test_packet
2234 @echo "Testing detection of invalid packets..."
2235 @$(srcdir)/test_packet | diff -u $(srcdir)/test/packet.test.chk -
2237 # Rebuild the packet-getter regression test
2238 packet-makeregress: test_packet
2239 @mkdir -p $(srcdir)/test
2240 $(srcdir)/test_packet >$(srcdir)/test/packet.test.chk
2242 # Regression-test the geoid tester.
2243 geoid-regress: test_geoid
2244 @echo "Testing the geoid model..."
2245 @$(srcdir)/test_geoid 37.371192 122.014965 | diff -u $(srcdir)/test/geoid.test.chk -
2247 # Rebuild the packet-getter regression test
2248 geoid-makeregress: test_geoid
2249 @mkdir -p $(srcdir)/test
2250 $(srcdir)/test_geoid 37.371192 122.014965 >$(srcdir)/test/geoid.test.chk
2252 # Regression-test the calendar functions
2253 time-regress: test_mkgmtime
2254 $(srcdir)/test_mkgmtime
2256 # Regression test the unpacking code in libgps
2257 unpack-regress: libgps
2258 @echo "Testing the client-library sentence decoder..."
2259 $(run_regress_driver) -c $(srcdir)/test/clientlib/*.log
2261 # Build the regression test for the sentence unpacker
2262 unpack-makeregress: libgps
2263 @echo "Rebuilding the client sentence-unpacker tests..."
2264 $(run_regress_driver) -c -b $(srcdir)/test/clientlib/*.log
2266 # Unit-test the JSON parsing
2267 json-regress: test_json
2270 # Unit-test the bitfield extractor - not in normal tests
2271 bits-regress: test_bits
2274 # Do all normal regression tests.
2275 testregress: gps-regress rtcm-regress aivdm-regress packet-regress time-regress unpack-regress json-regress
2276 @echo "Regressions complete."
2278 # The website directory
2280 # None of these productions are fired by 'make all'.
2282 @XMLTOSTDOUT_TRUE@www/%.html: %.xml
2283 @XMLTOSTDOUT_TRUE@ $(XMLPROC) $(XMLPROCFLAGS) $(HTMLTARGET) $< >$(<:.xml=.html) ; cp $(<:.xml=.html) $@
2284 @XMLTOSTDOUT_FALSE@www/%.html: %.xml
2285 @XMLTOSTDOUT_FALSE@ $(XMLPROC) $(XMLPROCFLAGS) $(HTMLTARGET) $<; cp $(<:.xml=.html) $@
2287 website: www/gpscat.html www/gpsctl.html www/gpsdecode.html \
2288 www/gpsd.html www/gpsfake.html www/gpsmon.html \
2289 www/gpspipe.html www/gpsprof.html www/gps.html \
2290 www/libgpsd.html www/libgpsmm.html www/libgps.html \
2291 www/rtcm-104.html www/srec.html \
2292 www/AIVDM.html www/NMEA.html \
2293 www/protocol-evolution.html www/protocol-transition.html \
2294 www/client-howto.html www/writing-a-driver.html \
2295 www/index.html www/hardware.html \
2296 www/performance/performance.html \
2299 www/AIVDM.html: www/AIVDM.txt
2300 asciidoc -a toc -o www/AIVDM.html www/AIVDM.txt
2302 www/NMEA.html: www/NMEA.txt
2303 asciidoc -a toc -o www/NMEA.html www/NMEA.txt
2305 www/protocol-evolution.html: www/protocol-evolution.txt
2306 asciidoc -a toc -o www/protocol-evolution.html www/protocol-evolution.txt
2308 www/protocol-transition.html: www/protocol-transition.txt
2309 asciidoc -a toc -o www/protocol-transition.html www/protocol-transition.txt
2311 www/client-howto.html: www/client-howto.txt
2312 asciidoc -a toc -o www/client-howto.html www/client-howto.txt
2314 www/writing-a-driver.html: www/writing-a-driver.xml
2315 xmlto xhtml-nochunks www/writing-a-driver.xml; mv writing-a-driver.html www
2317 www/index.html: www/index.html.in
2318 sed -e "/@DATE@/s//`date '+%B %d, %Y'`/" <www/index.html.in >www/index.html
2320 www/hardware.html: www/hardware-head.html gpscap.ini www/hardware-tail.html
2321 (cat www/hardware-head.html; python gpscap.py; cat www/hardware-tail.html) >www/hardware.html
2323 www/performance/performance.html: www/performance/performance.xml
2324 (cd www/performance; xmlto xhtml-nochunks performance.xml)
2326 www/internals.html: $(shell ls doc/*.xml)
2327 cd doc; xmlto xhtml-nochunks explanation.xml; cp explanation.html ../www/internals.html
2329 # Experimenting with pydoc. Not yet fired by any other productions.
2331 @HAVE_PYTHON_TRUE@pydoc: www/pydoc/index.html
2333 @HAVE_PYTHON_TRUE@www/pydoc/index.html: gps gpsfake gpscat gpsprof stamp-python
2334 @HAVE_PYTHON_TRUE@ mkdir -p www/pydoc
2335 @HAVE_PYTHON_TRUE@ $(EPYDOC) -v --html --graph all -n GPSD $(EPYDOCSCRIPTS) $(EPYDOCMODULES) -o www/pydoc
2337 # Productions for setting up and performing udev tests.
2339 # Requires root. Do "udev-install", then "tail -f /var/run/syslog" in
2340 # another window, then run 'make udev-test', then plug and unplug the
2341 # GPS ad libitum. All is well when you get fix reports each time a GPS
2345 cp $(srcdir)/gpsd.rules /lib/udev/rules.d/025_gpsd.rules
2346 cp $(srcdir)/gpsd.hotplug $(srcdir)/gpsd.hotplug.wrapper /lib/udev/
2347 chmod a+x /lib/udev/gpsd.hotplug /lib/udev/gpsd.hotplug.wrapper
2350 rm -f /lib/udev/{gpsd.hotplug,gpsd.hotplug.wrapper}
2351 rm -f /lib/udev/rules.d/025_gpsd.rules
2354 $(srcdir)/gpsd -N -F /var/run/gpsd.sock -D 4
2356 # Release machinery begins here
2359 # Make RPM from the specfile in packaging
2361 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
2362 rpmbuild -ta $(distdir).tar.gz
2363 $(am__remove_distdir)
2365 # This is how to ship a release to Berlios incoming.
2366 # It requires developer access verified via ssh.
2369 shasum gpsd-$(VERSION).tar.gz >gpsd.sum
2370 lftp -c "open ftp://ftp.berlios.de/incoming; mput gpsd-$(VERSION).tar.gz gpsd.sum"
2373 # This is how to tag a release.
2374 # It requires developer access verified via ssh.
2377 git tag -s -m "Tagged for external release $(VERSION)" release-$(VERSION)
2381 # Ship a release, providing all regression tests pass.
2382 # The clean is necessary so that dist will remake revision.h
2383 # with the current revision level in it.
2385 ship: testregress clean dist upload-ftp release-tag
2387 .PHONY: print_libgps_VERSION_CURRENT \
2388 print_libgps_VERSION__REVISION \
2389 print_libgps_VERSION_AGE \
2390 print_libgps_SONAME \
2391 print_libgps_VERSION \
2394 # Tell versions [3.59,3.63) of GNU make to not export all variables.
2395 # Otherwise a system limit (for SysV at least) may be exceeded.