📄 makefile.am
字号:
# Automake description for gpsd# $Id: Makefile.am 4683 2008-02-17 02:25:36Z ckuethe $#SUBDIRS = contrib## Build stuff depending on Motif#if HAVE_MOTIFMOTIF_PROGS = xgps xgpsspeedendifXMLTO = xmltoif HAVE_DBUSINCLUDES = $(DBUS_CFLAGS) $(DBUS_GLIB_CFLAGS) -DDBUS_API_SUBJECT_TO_CHANGE=1DBUSPROGS = gpxloggergpxlogger_LDADD = $(DBUS_GLIB_LIBS) libgps.la -lmendifif HAVE_RTCM104RTCM104PROGS = rtcmdecodeRTCM104PAGES = rtcmdecode.1endifif HAVE_NCURSESCURSESPROGS = cgps sirfmonendifbin_PROGRAMS = $(DBUSPROGS) $(MOTIF_PROGS) $(RTCM104PROGS) $(CURSESPROGS) gpsctl gpspipe gpsflash cgpxloggersbin_PROGRAMS = gpsdcheck_PROGRAMS = bits_test gpsmm_test packet_test mkgmtime_testif HAVE_PYTHONdist_bin_SCRIPTS = gpsprof gpsfake gpscatpython_PYTHON = gps.py gpsfake.pynodist_python_PYTHON = gpspacket.soPYTHONPAGES = gpsprof.1 gpsfake.1 gpscat.1endif## Build xgps#xgps_SOURCES = display.c display.h xgps.cxgps_LDADD = $(LIBM) $(LIBC) $(LIBNSL) $(LIBSOCKET) $(XM_LIBS) $(XT_LIBS) $(X_LIBS) $(X_PRE_LIBS) libgps.la -lm $(LIBPTHREAD)## Build xgpsspeed#xgpsspeed_c_sources = \ xgpsspeed.c \ Tachometer.c \ TachometerP.h \ Tachometer.hxgpsspeed_SOURCES = \ $(xgpsspeed_c_sources) \ xgpsspeed.iconxgpsspeed_LDADD = $(LIBM) $(LIBC) $(LIBNSL) $(LIBSOCKET) $(XAW_LIBS) $(XM_LIBS) $(X_LIBS) $(X_PRE_LIBS) libgps.la -lm $(LIBPTHREAD)## Build cgps#cgps_SOURCES = cgps.ccgps_LDADD = $(LIBM) $(LIBC) $(LIBNSL) $(LIBSOCKET) -lncurses libgps.la -lm $(LIBPTHREAD)## Build cgpxlogger#cgpxlogger_SOURCES = cgpxlogger.ccgpxlogger_LDADD = $(LIBC) $(LIBNSL) $(LIBSOCKET) libgps.la -lm $(LIBPTHREAD)## Build gpsd#gpsd_c_sources = gpsd_dbus.c gpsd.cgpsd_SOURCES = $(gpsd_c_sources) gpsd_dbus.hgpsd_LDADD = $(DBUS_LIBS) $(LIBM) libgps.la -lm $(LIBPTHREAD)## Build gpsctl#gpsctl_SOURCES = gpsctl.cgpsctl_LDADD = $(LIBM) libgps.la -lm $(LIBPTHREAD)## Build gpspipe#gpspipe_SOURCES = gpspipe.cgpspipe_LDADD = $(DBUS_LIBS) $(LIBM) libgps.la -lm## Build sirfmon#sirfmon_SOURCES = sirfmon.csirfmon_LDADD = $(LIBM) -lncurses libgps.la -lm $(LIBPTHREAD)## Build rtcmdecode#rtcmdecode_SOURCES = rtcmdecode.crtcmdecode_LDADD = $(LIBM) libgps.la -lm $(LIBPTHREAD)## Build gpsflash#gpsflash_SOURCES = gpsflash.c gpsflash.h sirfflash.cgpsflash_LDADD = $(LIBM) libgps.la -lm## Build shared libraries#libgps_la_LDFLAGS = -version-number 17:0:0lib_LTLIBRARIES = libgps.lalibgpsd_c_sources = \ netlib.c \ nmea_parse.c \ serial.c \ libgpsd_core.c \ subframe.c \ ntpshm.c \ libgps.c \ packet.c \ gpsutils.c \ geoid.c \ dgnss.c \ dgpsip.c \ ntrip.c \ sirf.c \ report.c \ isgps.c \ rtcm.c \ srecord.c \ bsd-base64.c \ strl.c \ hex.c \ drivers.c \ zodiac.c \ ubx.c \ garmin.c \ garmin_txt.c \ tsip.c \ evermore.c \ italk.c \ navcom.clibgpsd_h_sources = \ italk.h \ bsd-base64.h \ timebase.h \ bits.h \ packet_names.h \ rtcm.h \ gpsd.hBUILT_SOURCES = packet_names.h gpsd.hpacket_names.h: packet_states.h 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.hgpsd.h: gpsd.h-head gpsd.h-tail gpsd_config.h cp gpsd.h-head gpsd.h grep VERSION gpsd_config.h >>gpsd.h grep ENABLE gpsd_config.h >>gpsd.h cat gpsd.h-tail >>gpsd.hlibgps_la_SOURCES = $(libgpsd_c_sources) $(libgpsd_h_sources) \ rtcm.h libgpsmm.cpp packet_states.hnodist_libgps_la_SOURCES = packet_names.hlibgps_la_LIBADD = $(LIBM) $(LIBC) $(LIBNSL) $(LIBSOCKET) $(LIBPTHREAD)## Build Python binding## install may require --root depending on what you're doing.# python setup.py install --root=$DESTIR --prefix=$PREFIXif HAVE_PYTHONPYEXTENSIONS = gpspacket.sonoinst_SCRIPTS = gpspacket.so setup.pygpspacket.so: gpspacket.c libgps.la (pwd="`pwd`"; cd $(srcdir) && $(PYTHON) setup.py build_ext --build-lib "$$pwd" --build-temp "$$pwd/build" --include-dirs "$$pwd")endif# Clean up after Pythonclean-local: rm -rf build## Build gpsmm_test#gpsmm_test_SOURCES = gpsmm_test.cppgpsmm_test_LDADD = $(LIBC) libgps.la -lm## Build bits_test tester#bits_test_SOURCES = bits_test.cbits_test_LDADD = $(LIBC) libgps.la## Build packets tester#packet_test_SOURCES = packet_test.cpacket_test_LDADD = $(LIBC) libgps.la -lm## Build packets tester#mkgmtime_test_SOURCES = mkgmtime_test.cmkgmtime_test_LDADD = $(LIBC) libgps.la -lmif HAVE_XSLT_PROCESSOR## Create Manpages#man_MANS = \ gpsd.8 \ gps.1 \ xgps.1 \ xgpsspeed.1 \ cgps.1 \ cgpxlogger.1 \ libgps.3 \ libgpsmm.3 \ libgpsd.3 \ sirfmon.1 \ $(RTCM104PAGES) \ $(PYTHONPAGES) \ gpsctl.1 \ gpspipe.1 \ gpsflash.1 \ rtcm-104.5 \ srec.5.xml.1: $(MANGENERATOR) $(MANFLAGS) $(MANTARGET) $<.xml.3: $(MANGENERATOR) $(MANFLAGS) $(MANTARGET) $<.xml.5: $(MANGENERATOR) $(MANFLAGS) $(MANTARGET) $<.xml.8: $(MANGENERATOR) $(MANFLAGS) $(MANTARGET) $<gpsd.8: gpsd.xmlgps.1 xgps.1 xgpsspeed.1 cgps.1 cgpxlogger.1: gps.xmllibgps.3: libgps.xmllibgpsmm.3: libgpsmm.xmllibgpsd.3: libgpsd.xmlgpsctl.1: gpsctl.xmlgpscat.1: gpsctl.xmlgpsprof.1: gpsprof.xmlgpsfake.1: gpsfake.xmlsirfmon.1: sirfmon.xmlgpspipe.1: gpspipe.xmlrtcmdecode.1: rtcmdecode.xmlrtcm-104.5: rtcm-104.xmlsrec.5: srec.xmlgpsflash.1: gpsflash.xmlendifnoinst_HEADERS = ubx.hnodist_include_HEADERS = gpsd.hinclude_HEADERS = gps.h libgpsmm.hEXTRA_DIST = \ autogen.sh \ README \ INSTALL \ COPYING \ TODO \ AUTHORS \ dgpsip-servers \ floattest.c \ gpsd.php \ gpsd.xml \ gpsd.h-head \ gpsd.h-tail \ gps.xml \ libgpsd.xml \ libgps.xml \ libgpsmm.xml \ gpsprof.xml \ gpsfake.xml \ gpsctl.xml \ sirfmon.xml \ gpspipe.xml \ rtcmdecode.xml \ rtcm-104.xml \ srec.xml \ gpsflash.xml \ $(man_MANS) \ xgps.ad \ xgpsspeed.ad \ gpsd.spec.in \ gpsd.spec \ gpsd.hotplug \ gpsd.usermap \ valgrind-audit \ valgrind-suppressions \ gpspacket.c \ driver_proto.c \ logextract \ striplog \ setup.py \ packet_states.h \ libgps.pc.in \ libgpsd.pc.inCLEANFILES = $(BUILT_SOURCES) floattest *.core $(PYEXTENSIONS)pkgconfig_DATA = libgps.pc libgpsd.pcpkgconfigdir = $(libdir)/pkgconfig# This is not distributedlibgps: libgps.c .libs/libgps.a $(CC) $(CFLAGS) -o libgps -lm -DTESTMAIN $(LIBPTHREAD) -g libgps.c .libs/libgps.a# Report splint warningsSPLINTOPTS = -I/usr/include/dbus-1.0/splint: @echo "Running splint on daemon and libraries..." @echo "Expect 'gpsd.c:230:39: Line expects to suppress 1 error, found 0 errors'" -splint $(SPLINTOPTS) -redef $(gpsd_c_sources) $(libgpsd_c_sources) @echo "Running splint on xgps..." -splint $(SPLINTOPTS) -exportlocal $(xgps_SOURCES) @echo "Running splint on cgps..." -splint $(SPLINTOPTS) -exportlocal $(cgps_SOURCES) @echo "Running splint on xgpsspeed..." -splint $(SPLINTOPTS) -exportlocal $(xgpsspeed_c_sources) @echo "Running splint on gpsctl..." -splint $(SPLINTOPTS) $(gpsctl_SOURCES) @echo "Running splint on sirfmon..." -splint $(SPLINTOPTS) $(sirfmon_SOURCES) @echo "Running splint on gpspipe..." -splint $(SPLINTOPTS) $(gpspipe_SOURCES) @echo "Running splint on rtcmdecode..." -splint $(SPLINTOPTS) -exportlocal rtcmdecode.c @echo "Running splint on gpsflash..." -splint $(SPLINTOPTS) $(gpsflash_SOURCES) @echo "Running splint on bits_test test harness..." -splint $(SPLINTOPTS) $(bits_test_SOURCES) @echo "Running splint on packet_test test harness..." -splint $(SPLINTOPTS) $(packet_test_SOURCES)# Bogon-checking the Python toolspychecker: for f in gps.py gpsfake.py; do pychecker $$f; doneversion: @echo $(VERSION)## Regression tests begin here## Note that the *-makeregress targets re-create the *.log.chk source# files from the *.log source files.## These require gcc4; use of the math coprocessor's on-board trig functions# apparently increases the accuracy of computation in a way that affects# the low-order digits of the track field in the O response.# Regression-test the daemongps-regress: gpsd $(srcdir)/regress-driver -t $(srcdir)/test/stable/*.log# Test that super-raw mode works. Compare each logfile against itself # dumped through the daemon running in R=2 mode. (This test is not# included in the normal regressions.)raw-regress: $(srcdir)/regress-driver -r $(srcdir)/test/stable/*.log# Build the regression tests for the daemon.gps-makeregress: gpsd $(srcdir)/regress-driver -b $(srcdir)/test/stable/*.log# Regression-test the RTCM decoder.rtcm-regress: rtcmdecode @echo "Testing RTCM decoding..." @mkdir -p test @for f in $(srcdir)/test/*.rtcm; do \ echo "Testing $${f}..."; \ $(srcdir)/rtcmdecode <$${f} >test/test.chk; \ diff -ub $${f}.chk test/test.chk; \ done; \ rm test/test.chk# Rebuild the RTCM regression tests.rtcm-makeregress: rtcmdecode @for f in $(srcdir)/test/*.rtcm; do \ $(srcdir)/rtcmdecode < $${f} > $${f}.chk; \ done# Regression-test the packet getter.packet-regress: packet_test @echo "Testing detection of invalid packets..." @$(srcdir)/packet_test | diff -u $(srcdir)/test/packet.test.chk -# Rebuild the packet-getter regression testpacket-makeregress: packet_test @mkdir -p test $(srcdir)/packet_test >test/packet.test.chk# Test RTCM encoding using passthrough mode.undump-regress: rtcmdecode @echo "Testing RTCM encoding..." @mkdir -p test @$(srcdir)/rtcmdecode -p < $(srcdir)/test/undump.sample > test/undump.test @diff -u $(srcdir)/test/undump.sample test/undump.test @rm test/undump.test# Regression-test the calendar functionstime_regress: mkgmtime_test mkgmtime_test# Do all normal regression teststestregress: gps-regress rtcm-regress packet-regress undump-regress time_regress @echo "Regressions complete."## Productions for testing unstable drivers.#unstable-regress: gpsd ./regress-driver -t $(srcdir)/test/unstable/*.logunstable-makeregress: gpsd ./regress-driver -b $(srcdir)/test/unstable/*.log# Release machinery begins here## This is how to ship a release to Berlios incomoing.# It requires developer access verified via ssh.#upload-ftp: sha1 gpsd-$(VERSION).tar.gz >gpsd.sum lftp -c "mput gpsd-$(VERSION).tar.gz gpsd.sum" ftp://ftp.berlios.de/incoming## This is how to tag a release for the SVN repository.# It requires developer access verified via ssh.#REPO=http://svn.berlios.de/svnroot/repos/gpsdsvn-tag: svn copy $(REPO)/trunk $(REPO)/tags/release-$(VERSION) \ -m "Tagged for external release $(VERSION)"## Ship a release, providing all regression tests pass.#ship: testregress dist upload-ftp svn-tag
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -