mirror of
https://github.com/logos-storage/logos-storage-go-bindings-example.git
synced 2026-01-05 23:13:06 +00:00
Debug
This commit is contained in:
parent
0ed267cdb6
commit
cfeeb3fc29
13
Makefile
13
Makefile
@ -1,16 +1,9 @@
|
|||||||
# Destination folder for the downloaded libraries
|
# Destination folder for the downloaded libraries
|
||||||
LIBS_DIR := $(abspath ./libs)
|
LIBS_DIR := $(abspath ./libs)
|
||||||
|
|
||||||
UNAME_S := $(shell uname -s)
|
|
||||||
|
|
||||||
# Flags for CGO to find the headers and the shared library
|
# Flags for CGO to find the headers and the shared library
|
||||||
ifeq ($(UNAME_S),Darwin)
|
CGO_CFLAGS := -I$(LIBS_DIR)
|
||||||
CGO_CFLAGS := -I$(LIBS_DIR)
|
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,$(LIBS_DIR)
|
||||||
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,@executable_path/libs
|
|
||||||
else
|
|
||||||
CGO_CFLAGS := -I$(LIBS_DIR)
|
|
||||||
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,$(LIBS_DIR)
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
BIN_NAME := example.exe
|
BIN_NAME := example.exe
|
||||||
@ -33,7 +26,7 @@ fetch:
|
|||||||
unzip -o -qq $(LIBS_DIR)/codex-${OS}-${ARCH}.zip -d $(LIBS_DIR)
|
unzip -o -qq $(LIBS_DIR)/codex-${OS}-${ARCH}.zip -d $(LIBS_DIR)
|
||||||
rm -f $(LIBS_DIR)/*.zip
|
rm -f $(LIBS_DIR)/*.zip
|
||||||
ifeq ($(UNAME_S),Darwin)
|
ifeq ($(UNAME_S),Darwin)
|
||||||
install_name_tool -id @rpath/libcodex.dylib libs/libcodex.dylib
|
install_name_tool -id @rpath/libcodex.dylib $(LIBS_DIR)/libcodex.dylib
|
||||||
endif
|
endif
|
||||||
build:
|
build:
|
||||||
@echo "CGO_CFLAGS=$(CGO_CFLAGS)"
|
@echo "CGO_CFLAGS=$(CGO_CFLAGS)"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user