aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2022-12-13 21:26:42 +0200
committerIgor Pashev <pashev.igor@gmail.com>2022-12-13 21:31:37 +0200
commit1ac772400a6a3aea8d006ac46337440600017e4b (patch)
tree59d76f648ce65c344cf701dc0a47ce850ffba762 /Makefile
parent7ee0a6f2cad69d1a013befc758022e9ae22ceb1e (diff)
downloadmendeleev-1ac772400a6a3aea8d006ac46337440600017e4b.tar.gz
Add Rust
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 49a7570..d5399b9 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@ BINARIES := \
mendeleev-f \
mendeleev-hs \
mendeleev-py \
+ mendeleev-rs \
LISP := \
clisp:mendeleev.lisp \
@@ -122,3 +123,9 @@ prof-mendeleev-py.txt: prof-mendeleev-py.dat
python3 -c 'import pstats; pstats.Stats("$<").sort_stats("tottime").print_stats()' > $@
+# Rust
+RUSTC = rustc
+RUSTC_FLAGS = -C opt-level=2 -C strip=symbols
+mendeleev-rs: mendeleev.rs
+ $(RUSTC) $(RUSTC_FLAGS) $< -o $@
+