Skip to content

Commit bbbfc26

Browse files
committed
Simple working makefile to link rust into C
1 parent c34081e commit bbbfc26

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Makefile_simple

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# For OS X
2+
shlib_suffix = .dylib
3+
4+
rdiff: ./target/debug/librsync_rs$(shlib_suffix) Makefile_simple src/rdiff.c
5+
clang -o rdiff src/rdiff.c src/isprefix.c \
6+
-L . "-Wl,-rpath,`pwd`" \
7+
-lpopt -I /usr/local/include -L /usr/local/lib -l rsync \
8+
-L ./target/debug "-Wl,-rpath,`pwd`/target/debug" \
9+
-l rsync_rs

0 commit comments

Comments
 (0)