10 lines
298 B
Makefile
10 lines
298 B
Makefile
|
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
|