diff options
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | salticidae.go | 2 | ||||
-rw-r--r-- | stream.go | 1 |
3 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,9 @@ +# NOTE: this Makefile only serves the purpose as an example (works on my +# Linux). Your Go project uses salticidae-go should setup CGO environment +# variables properly to have a successful build. +# +# TODO: improve this Makefile + .PHONY: all clean all: build/test_msgnet build/test_p2p_stress build/test_msgnet_tls build/bench_network diff --git a/salticidae.go b/salticidae.go index 8676a3d..f977fbd 100644 --- a/salticidae.go +++ b/salticidae.go @@ -1,7 +1,5 @@ package salticidae -// #cgo CFLAGS: -I${SRCDIR}/salticidae/include/ -// #cgo LDFLAGS: ${SRCDIR}/salticidae/libsalticidae.so -Wl,-rpath=${SRCDIR}/salticidae/ // #include "salticidae/util.h" import "C" import "unsafe" @@ -2,6 +2,7 @@ package salticidae // #include <stdlib.h> // #include "salticidae/stream.h" +// #include "salticidae/endian.h" // uint16_t _salti_htole16(uint16_t x) { return htole16(x); } // uint32_t _salti_htole32(uint32_t x) { return htole32(x); } // uint64_t _salti_htole64(uint64_t x) { return htole64(x); } |