Get the bodies, footers working in the c-api
This commit is contained in:
9
rust-ffi-demo/Makefile
Normal file
9
rust-ffi-demo/Makefile
Normal file
@@ -0,0 +1,9 @@
|
||||
LDFLAGS := -L../src/rust-base/target/debug -lstorybook -Wl,--gc-sections -lpthread -ldl
|
||||
.PHONY: all clean
|
||||
all: demo
|
||||
demo: demo.h demo.c
|
||||
$(CC) -g $^ $(LDFLAGS) -o $@
|
||||
demo.h:
|
||||
cbindgen -c ../src/rust-base/cbindgen.toml --crate storybook --lang c -o demo.h ../src/rust-base
|
||||
clean:
|
||||
rm -f demo demo.h
|
||||
Reference in New Issue
Block a user