mirror of
https://github.com/Quad4-Software/Reticulum-Go
synced 2026-08-29 23:48:44 -04:00
25 lines
564 B
Makefile
25 lines
564 B
Makefile
# SPDX-License-Identifier: Apache-2.0
|
|
# Copyright (c) 2024-2026 Quad4.io
|
|
|
|
CXX ?= g++
|
|
ROOT := ../../../..
|
|
LIB := $(ROOT)/bin/librns.so
|
|
CPP_BIND := ../..
|
|
INC := -I$(CPP_BIND)/include -I$(ROOT)/include
|
|
CXXFLAGS ?= -std=c++17 -Wall -Wextra -O2
|
|
|
|
.PHONY: all clean librns
|
|
|
|
all: cpp-page-fetch
|
|
|
|
librns: $(LIB)
|
|
|
|
$(LIB):
|
|
cd $(ROOT) && task build-librns
|
|
|
|
cpp-page-fetch: main.cpp $(LIB) $(CPP_BIND)/src/event.cpp
|
|
$(CXX) $(CXXFLAGS) $(INC) -L$(ROOT)/bin -Wl,-rpath,'$$ORIGIN/../../../../bin' \
|
|
-o $@ main.cpp $(CPP_BIND)/src/event.cpp -lrns
|
|
|
|
clean:
|
|
rm -f cpp-page-fetch
|