aboutsummaryrefslogtreecommitdiffstats
path: root/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/build.rs b/build.rs
new file mode 100644
index 0000000..5e14209
--- /dev/null
+++ b/build.rs
@@ -0,0 +1,19 @@
+// Copyright 2018 Matthias P. Braendli
+// SPDX-License-Identifier: GPL-2.0-only
+
+extern crate cc;
+
+fn main() {
+ cc::Build::new()
+ .file("src/kissattach.c")
+ .compile("kissattach");
+
+ println!("cargo:rustc-link-lib=ax25");
+
+ /*
+ .file("bar.c")
+ .define("FOO", Some("bar"))
+ .include("src")
+ .compile("foo");
+ */
+}