Scope gate is the product: deny-by-default, deny beats allow, DNS answers must stay inside allow_ip, port and radio-transmission are separate switches. 27 tools over libmcp: recon (in-process portscan, nmap, dns, tls, banner), web (http_request, header audit, path discovery, sqli/xss leads), ESP32 Marauder serial bridge, findings with evidence, and 12 method playbooks. 56 end-to-end checks, seen red with the no-scope branch disabled. Not yet wired into systemd or a fleet router.
28 lines
560 B
Makefile
28 lines
560 B
Makefile
CC ?= cc
|
|
CFLAGS ?= -std=c99 -O2 -Wall -Wextra -Wpedantic -Werror \
|
|
-D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE
|
|
LIBDIR ?= vendor/libmcp
|
|
PREFIX ?= /usr/local
|
|
SRC := $(wildcard src/*.c)
|
|
OBJ := $(SRC:.c=.o)
|
|
|
|
all: apex-twin
|
|
|
|
apex-twin: $(OBJ)
|
|
$(CC) $(CFLAGS) -o $@ $(OBJ)
|
|
|
|
src/%.o: src/%.c src/apex.h $(LIBDIR)/mcp.h
|
|
$(CC) $(CFLAGS) -I$(LIBDIR) -Isrc -c -o $@ $<
|
|
|
|
test: apex-twin
|
|
./tests/run.sh
|
|
|
|
install: apex-twin
|
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
|
cp apex-twin $(DESTDIR)$(PREFIX)/bin/
|
|
|
|
clean:
|
|
rm -f apex-twin $(OBJ)
|
|
|
|
.PHONY: all test install clean
|