why bother? Via publish an SDK for it.
I should also point out that you will need the lib files for linking.
The sha256 setup is very likely bitcoin-specific, and you don't need lib files or SDK to simply issue an instruction:
asm volatile (".byte 0xf3,0x0f,0xa6,0xd0" /* rep xsha256 */
: \
: "c"((unsigned long)state.count + count), \
"a"((unsigned long)state.count), \
"S"(in), "D"(result));