Files
moloapp/audit/MOLO-WS-001/Makefile
T

25 lines
735 B
Makefile

# MOLO-WS-001: see README.md in this directory. Compiles a tiny harness
# directly against the real HandshakeValidator (no server binary wires it
# to a live upgrade route today; see README "What the check does").
CXX ?= g++
ROOT := $(abspath ../..)
SRC := $(ROOT)/src
BUILD := $(abspath ../../build/audit-ws-001)
SOURCES := reproduce.cpp \
$(SRC)/realtime/websocket/server/handshake_validator.cpp \
$(SRC)/realtime/shared/sha1.cpp \
$(SRC)/realtime/shared/base64.cpp \
$(SRC)/realtime/shared/realtime_metrics.cpp \
$(SRC)/realtime/shared/http_seam.cpp
BIN := $(BUILD)/reproduce
.PHONY: test
test: $(BIN)
@$(BIN)
$(BIN): $(SOURCES)
@mkdir -p $(BUILD)
@$(CXX) -std=c++23 -Wall -Wextra -O1 -I$(SRC) -o $(BIN) $(SOURCES)