mirror of
https://github.com/MiladRTX/Glint.git
synced 2026-10-29 04:02:12 +01:00
Watch, hear and record a jailbroken PS5 on a Windows PC with low latency. - app/: Windows app (C++17, Vulkan + Dear ImGui, static FFmpeg and curl) - payload/: PS5 payload driving the console's H.264 encoder, HTTP API on port 7231 and a browser dashboard - docs/, tests/, tools/: build and API docs, protocol smoke test, asset generators Licensed under GPL-3.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
41 lines
939 B
Makefile
41 lines
939 B
Makefile
# Host build of the Glint payload HTTP/capture stack.
|
|
# Targets: Linux, macOS, MSYS2/MinGW (gcc). For the console build see ps5/.
|
|
# Everything built goes to build/ (objects in build/obj/).
|
|
CC ?= cc
|
|
CFLAGS ?= -O2 -g
|
|
CFLAGS += -std=c11 -Wall -Wextra -Wno-unused-parameter -pthread
|
|
CPPFLAGS += -DSL_HOST_BUILD -Iinclude -Isrc
|
|
LDFLAGS += -pthread
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
LDFLAGS += -static
|
|
LDLIBS += -lws2_32 -lm
|
|
else
|
|
LDLIBS += -lm
|
|
endif
|
|
|
|
SRC := \
|
|
src/state.c \
|
|
src/server.c \
|
|
src/media_http.c \
|
|
src/capture_host.c \
|
|
src/main.c \
|
|
src/dashboard_blob.c \
|
|
src/banner_blob.c
|
|
|
|
OBJ := $(SRC:src/%.c=build/obj/%.o)
|
|
|
|
all: build/glint-payload
|
|
|
|
build/glint-payload: $(OBJ)
|
|
$(CC) $(LDFLAGS) -o $@ $(OBJ) $(LDLIBS)
|
|
|
|
build/obj/%.o: src/%.c include/glint.h src/http_handlers.h
|
|
@mkdir -p build/obj
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
|
|
|
|
clean:
|
|
rm -rf build/obj build/glint-payload build/glint-payload.exe
|
|
|
|
.PHONY: all clean
|