19 lines
525 B
Makefile
19 lines
525 B
Makefile
# MOLO-EXPOSE-001: see README.md in this directory. UpstreamHostAllowed is a
|
|
# pure function with no deps beyond its own header, so the harness links
|
|
# only reproduce.cpp and upstream.cpp.
|
|
CXX ?= g++
|
|
ROOT := $(abspath ../..)
|
|
SRC := $(ROOT)/src
|
|
BUILD := $(abspath ../../build/audit-expose-001)
|
|
|
|
SOURCES := reproduce.cpp $(SRC)/realtime/expose/upstream.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)
|