add basic example for compiling upkr to a c library

This commit is contained in:
2023-03-12 13:45:23 +01:00
parent 080db40d00
commit 795e6c3090
8 changed files with 331 additions and 0 deletions

8
c_library/Makefile Normal file
View File

@@ -0,0 +1,8 @@
upkr: upkr.c upkr.h target/release/libupkr.a
gcc -O2 -Ltarget/release -o upkr upkr.c -lupkr -lm
strip upkr
target/release/libupkr.a: cargo
cargo build --release
.PHONY: cargo