simplify Makefile and nwaku.go after using git subtree

This commit is contained in:
Ivan Folgueira Bande 2025-10-02 11:58:30 +02:00
parent baab0fc7ab
commit 12223ecacf
No known key found for this signature in database
GPG Key ID: 3C117481F89E24A7
2 changed files with 4 additions and 9 deletions

View File

@ -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 \

View File

@ -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>