summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorFred Wright <fw@fwright.net>2016-09-22 17:43:10 -0700
committerGary E. Miller <gem@rellim.com>2016-09-22 17:43:10 -0700
commit2bee7932e24a6cbb7454a81ecc85170049b725d7 (patch)
tree3312646aeaeb10b0aa6de514675f23f57ead6f91 /contrib
parent170c3f8a1521ce8b138338801e335895856021c2 (diff)
downloadgpsd-2bee7932e24a6cbb7454a81ecc85170049b725d7.tar.gz
Adds explicit recipe for strl "library" in contrib/
Although this is a don't-care for the current setup, if a "library- like" object is included as a source for multiple programs with different flag settings, SCons warns about building the same object with different environments. Building such objects separately avoids that. Signed-off-by: Gary E. Miller <gem@rellim.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/SConstruct7
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/SConstruct b/contrib/SConstruct
index 785fb179..5fe25e86 100644
--- a/contrib/SConstruct
+++ b/contrib/SConstruct
@@ -5,10 +5,13 @@
# Note that ../gpsd_config.h is required and is built separately
-ashctl = Program("ashctl", ["ashctl.c", "../strl.c"])
+
+strl = StaticObject("strl", "../strl.c")
+
+ashctl = Program("ashctl", ["ashctl.c", strl])
binlog = Program("binlog", "binlog.c")
binreplay = Program("binreplay", "binreplay.c", parse_flags=['-lutil'])
lla2ecef = Program("lla2ecef", "lla2ecef.c", parse_flags=['-lm'])
-motosend = Program("motosend", ["motosend.c", "../strl.c"])
+motosend = Program("motosend", ["motosend.c", strl])
Default(ashctl, binlog, binreplay, lla2ecef, motosend)