Files
fastway-plugin-webui/Makefile
Ken Johnson cdf5074214
All checks were successful
Build & Release Plugin / build (push) Successful in 12s
Add Wait For Call screen and local status proxy
New WFC dashboard page (wfc.html) showing real-time node status,
protocol listeners, plugin info, and primary server connection.
Auto-refreshes every 2 seconds via local status proxy endpoint.
Added /api/local/status route that proxies to the thin client's
built-in status HTTP server. Updated Makefile with FCL source paths.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 20:44:54 -07:00

62 lines
1.5 KiB
Makefile

#
# Fastway BBS - WebUI Thin Client Plugin
#
# Usage:
# make Build for Linux x86_64
# make PLATFORM=freebsd-x86_64 Cross-compile for FreeBSD
# make PLATFORM=win64 Cross-compile for Windows
# make clean Remove build artifacts
#
FPC ?= fpc
TARGET = libwebui.so
SOURCE = webui.pp
PLATFORM ?= linux-x86_64
SYNAPSE_DIR ?= synapse
FCL_SRC ?= /opt/fpcup/fpcsrc/packages
CROSS_UNITS ?= /opt/fpcup/fpc/units
FPCFLAGS = -Mobjfpc -Sh -CX -XXs -O2 -fPIC \
-Fubuild -FUbuild \
-Fu. \
-Fu$(SYNAPSE_DIR) \
-o$(TARGET)
ifeq ($(PLATFORM),linux-x86_64)
FPCFLAGS += \
-Fu$(FCL_SRC)/fcl-json/src \
-Fu$(FCL_SRC)/fcl-web/src/base \
-Fu$(FCL_SRC)/fcl-web/src/webdata \
-Fu$(FCL_SRC)/fcl-xml/src \
-Fu$(FCL_SRC)/fcl-base/src \
-Fu$(FCL_SRC)/fcl-base/src/unix \
-Fu$(FCL_SRC)/fcl-process/src \
-Fu$(FCL_SRC)/fcl-process/src/unix \
-Fu$(FCL_SRC)/fcl-net/src \
-Fu$(FCL_SRC)/fcl-net/src/unix \
-Fu$(FCL_SRC)/fcl-extra/src/unix
endif
ifeq ($(PLATFORM),freebsd-x86_64)
FPC = ppcrossx64
FPCFLAGS += -Tfreebsd \
-Fu$(CROSS_UNITS)/x86_64-freebsd/*
endif
ifeq ($(PLATFORM),win64)
FPC = ppcrossx64
TARGET = webui.dll
FPCFLAGS += -Twin64 -o$(TARGET) \
-Fu$(CROSS_UNITS)/x86_64-win64/*
endif
.PHONY: all clean
all:
@mkdir -p build
$(FPC) $(FPCFLAGS) $(SOURCE)
clean:
rm -rf build libwebui.so webui.dll *.rsj