mirror of
https://github.com/logos-messaging/logos-messaging-go-bindings.git
synced 2026-01-02 14:03:10 +00:00
simplify Makefile and nwaku.go after using git subtree
This commit is contained in:
parent
baab0fc7ab
commit
12223ecacf
@ -1,7 +1,7 @@
|
||||
# Makefile for Waku Go Bindings
|
||||
|
||||
# Directories
|
||||
THIRD_PARTY_DIR := ../third_party
|
||||
THIRD_PARTY_DIR := ../third-party
|
||||
NWAKU_REPO := https://github.com/waku-org/nwaku
|
||||
NWAKU_DIR := $(THIRD_PARTY_DIR)/nwaku
|
||||
|
||||
@ -12,13 +12,8 @@ all: build
|
||||
|
||||
# Prepare third_party directory and clone nwaku
|
||||
prepare:
|
||||
@echo "Creating third_party directory..."
|
||||
@mkdir -p $(THIRD_PARTY_DIR)
|
||||
|
||||
@echo "Cloning nwaku repository..."
|
||||
@if [ ! -d "$(NWAKU_DIR)" ]; then \
|
||||
cd $(THIRD_PARTY_DIR) && \
|
||||
git clone $(NWAKU_REPO) && \
|
||||
cd $(NWAKU_DIR) && \
|
||||
make update; \
|
||||
else \
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
package waku
|
||||
|
||||
/*
|
||||
#cgo LDFLAGS: -L../third_party/nwaku/build/ -lwaku
|
||||
#cgo LDFLAGS: -L../third_party/nwaku -Wl,-rpath,../third_party/nwaku/build/
|
||||
#cgo LDFLAGS: -L../third-party/nwaku/build/ -lwaku
|
||||
#cgo LDFLAGS: -L../third-party/nwaku -Wl,-rpath,../third-party/nwaku/build/
|
||||
|
||||
#include "../third_party/nwaku/library/libwaku.h"
|
||||
#include "../third-party/nwaku/library/libwaku.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user