properly differenciate between header and lib folders

This commit is contained in:
Ivan Folgueira Bande 2025-10-22 00:49:05 +02:00
parent b501442965
commit 911541c82b
No known key found for this signature in database
GPG Key ID: 3C117481F89E24A7

View File

@ -1,9 +1,8 @@
# Makefile for SDS Go Bindings
# The NIM_SDS_REPO_PATH env var should be defined beforehand and it represents the absolute path
# to the cloned nim-sds repository, i.e, ....../third_party/nim-sds
export CGO_CFLAGS="-I${NIM_SDS_REPO_PATH}/library/"
export CGO_LDFLAGS="-L${NIM_SDS_REPO_PATH}/build -lsds -Wl,-rpath,${NIM_SDS_REPO_PATH}/build"
# The NIM_SDS_LIB_PATH and NIM_SDS_HEADER_PATH env vars should be defined beforehand
export CGO_CFLAGS="-I${NIM_SDS_HEADER_PATH}/"
export CGO_LDFLAGS="-L${NIM_SDS_LIB_PATH}/ -lsds -Wl,-rpath,${NIM_SDS_LIB_PATH}/"
.PHONY: all clean prepare build-libsds build