summaryrefslogtreecommitdiff
path: root/libgrust/libformat_parser/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'libgrust/libformat_parser/Makefile.am')
-rw-r--r--libgrust/libformat_parser/Makefile.am13
1 files changed, 13 insertions, 0 deletions
diff --git a/libgrust/libformat_parser/Makefile.am b/libgrust/libformat_parser/Makefile.am
new file mode 100644
index 00000000000..e0e1f45703f
--- /dev/null
+++ b/libgrust/libformat_parser/Makefile.am
@@ -0,0 +1,13 @@
+LIBFORMAT_PARSER = debug/liblibformat_parser.a
+
+all-local: $(LIBFORMAT_PARSER)
+
+# TODO: Improve `cargo` invocation with host specific flags, possibly creating a $(CARGO) variable?
+$(LIBFORMAT_PARSER): $(srcdir)/Cargo.toml $(srcdir)/src/*.rs
+ cargo \
+ --config $(srcdir)/.cargo/config \
+ build \
+ --offline \
+ --target-dir . \
+ --manifest-path $(srcdir)/Cargo.toml \
+ # FIXME: Not always '--release', right?