We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbc8374 commit da2b58fCopy full SHA for da2b58f
ports/.gitignore
@@ -1,2 +1,3 @@
1
#ignore binary
2
-gilbert
+gilbert-cpp
3
+gilbert-rs
ports/Makefile
@@ -1,17 +1,19 @@
CC := gcc
+RUSTC := rustc
4
CFLAGS :=
5
OPT := -O3
6
+RUSTOPT := -O
7
-SRCFILES := gilbert.c
8
+all: gilbert-c gilbert-rs
9
-all: gilbert
10
+gilbert-c: gilbert.c
11
+ $(CC) gilbert.c -o gilbert-c $(CFLAGS) $(OPT)
12
-gilbert: gilbert.c
- $(CC) gilbert.c -o gilbert $(CFLAGS) $(OPT)
13
+gilbert-rs: gilbert.rs
14
+ $(RUSTC) --cfg 'feature="gilbert_main"' -o gilbert-rs gilbert.rs $(RUSTOPT)
15
-.PHONY: clean
16
+.PHONY: clean all
17
18
clean:
- rm -f gilbert
-
19
+ rm -f gilbert-c gilbert-rs
0 commit comments