feat: makefile

This commit is contained in:
Richard Ramos 2020-05-06 17:26:32 -04:00
parent f628630ea5
commit 9a93298508
No known key found for this signature in database
GPG Key ID: 80D4B01265FDFE8F
3 changed files with 5 additions and 4 deletions

4
Makefile Normal file
View File

@ -0,0 +1,4 @@
SHELL := bash
build:
nim c -d:release -L:libstatus.a -L:-lm --outdir:. src/nim_status_client.nim

View File

@ -29,6 +29,6 @@ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/dotherside/build/lib
# 6. # 6.
nimble build make build
./nim_status_client ./nim_status_client
``` ```

View File

@ -1,6 +1,3 @@
{.passL: "libstatus.a -lm".}
proc hashMessage*(p0: cstring): cstring {.importc: "HashMessage".} proc hashMessage*(p0: cstring): cstring {.importc: "HashMessage".}
proc initKeystore*(keydir: cstring): cstring {.importc: "InitKeystore".} proc initKeystore*(keydir: cstring): cstring {.importc: "InitKeystore".}