# Copyright (C) 2004 Jens Oberender # # Build stuff depending on Motif # if HAVE_MOTIF BUILD_PROGS = gps xgpsspeed endif bin_PROGRAMS = $(BUILD_PROGS) bin_SCRIPTS = gpsprobe # # Build gps # gps_SOURCES = display.c gps.c gps_CFLAGS = $(X_CFLAGS) gps_LDADD = $(LIBM) $(LIBC) $(LIBNSL) $(LIBSOCKET) $(XM_LIBS) $(X_LIBS) $(X_PRE_LIBS) libgps.la # # Build xgpsspeed # xgpsspeed_SOURCES = \ xgpsspeed.c \ Tachometer.c \ TachometerP.h \ Tachometer.h \ xgpsspeed.icon xgpsspeed_CFLAGS = $(X_CFLAGS) xgpsspeed_LDADD = $(LIBM) $(LIBC) $(LIBNSL) $(LIBSOCKET) $(XAW_LIBS) $(XM_LIBS) $(X_LIBS) $(X_PRE_LIBS) libgps.la # # Build gpsd # sbin_PROGRAMS = gpsd gpsd_SOURCES = gpsd.c gpsd_LDADD = $(LIBM) libgps.la # # Build shared library # libgps_la_LDFLAGS = -version-number 1:0:0 lib_LTLIBRARIES = libgps.la libgps_la_SOURCES = \ netlib.c \ nmea_parse.c \ serial.c \ drivers.c \ zodiac.c \ libgpsd_core.c \ libgps.c \ report.c libgps_la_LIBADD = $(LIBM) $(LIBC) $(LIBNSL) $(LIBSOCKET) # # Create Manpages # man_MANS = \ gpsd.1 \ libgps.3 \ libgpsd.3 \ gpsprobe.1 gpsd.1 gps.1 xgpsspeed.1: gpsd.xml xmlto man gpsd.xml libgps.3: libgps.xml xmlto man libgps.xml libgpsd.3: libgpsd.xml xmlto man libgpsd.xml gpsprobe.1: gpsprobe.xml xmlto man gpsprobe.xml # # Do a release with a tar.gz and a tar.bz2 # release: distdir -chmod -R a+r $(distdir) GZIP=$(GZIP_ENV) $(AMTAR)$(TAR) chozf $(distdir).tar.gz $(distdir) rm -f $(distdir)/gpsd.spec sed '/^Source:/s/\.tar\.gz$$/\.tar\.bz2/' gpsd.spec \ > $(distdir)/gpsd.spec BZIP2=$(BZIP2_ENV) $(AMTAR)$(TAR) --bzip2 -chof $(distdir).tar.bz2 $(distdir) -rm -rf $(distdir) include_HEADERS = gps.h gpsd.h # Automake is buggy and doesn't automatically include bin_SCRIPTS in dist EXTRA_DIST = \ autogen.sh \ README \ INSTALL \ COPYING \ HACKING \ TODO \ gpsd.xml \ libgpsd.xml \ libgps.xml \ gpsprobe.xml \ $(man_MANS) \ gps.ad \ xgpsspeed.ad \ gpsd.init \ gpsd.spec \ gpsd.lsm \ gps.py \ gpsd.py \ gpsprobe # This is not distributed libgps: libgps.c .libs/libgps.a $(CC) -o libgps -DTESTMAIN libgps.c .libs/libgps.a