[ntpsec commit] Add build reciipe for util/ntptime.

Eric S. Raymond esr at ntpsec.org
Wed Sep 30 15:40:46 UTC 2015


Module:    ntpsec
Branch:    master
Commit:    08962d4a32d92d3e978a9b08ab098fe6cfada703
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=08962d4a32d92d3e978a9b08ab098fe6cfada703

Author:    Eric S. Raymond <esr at thyrsus.com>
Date:      Wed Sep 30 09:32:23 2015 -0400

Add build reciipe for util/ntptime.

---

 util/wscript | 34 ++++++++++++++++++++--------------
 1 file changed, 20 insertions(+), 14 deletions(-)

diff --git a/util/wscript b/util/wscript
index da494f2..8d0c509 100644
--- a/util/wscript
+++ b/util/wscript
@@ -4,19 +4,25 @@ def build(ctx):
 	srcnode = ctx.srcnode.abspath()
 	bldnode = ctx.bldnode.abspath()
 
-	if ctx.get_define("HAVE_TICKADJ"):
-		tickadj_source = [
-			"tickadj.c",
-		]
+	ctx(
+		target		= "tickadj",
+		features	= "c cprogram bld_include src_include",
+		source		= ["tickadj.c"],
+		includes	= [
+					"%s/tickadj/" % bldnode
+				],
+		use		= "ntp opts isc M RT",
+		install_path= "${PREFIX}/sbin/"
+	)
 
-		ctx(
-			target		= "tickadj",
-			features	= "c cprogram bld_include src_include",
-			source		= tickadj_source,
-			includes	= [
-						"%s/tickadj/" % bldnode
-					],
-			use		= "ntp opts isc M RT",
-			install_path= "${PREFIX}/sbin/"
-		)
+	ctx(
+		target		= "ntptime",
+		features	= "c cprogram bld_include src_include libisc_include",
+		source		= ["ntptime.c"],
+		includes	= [
+					"%s/ntptime/" % bldnode
+				],
+		use		= "ntp opts isc M RT PTHREAD",
+		install_path= "${PREFIX}/sbin/"
+	)
 



More information about the vc mailing list