Files
H4zeyaf--Ghostcontrol-PS5-U…/Makefile
T
2026-06-07 21:14:44 -04:00

31 lines
635 B
Makefile

# SPDX-License-Identifier: GPL-3.0-or-later
# Ghost-Control: USB HID controller → virtual DualSense on PS5
PS5_HOST ?= ps5
PORT ?= 9021
TARGET := ghost-control-ps5.elf
ifndef PS5_PAYLOAD_SDK
$(error PS5_PAYLOAD_SDK is not set)
endif
include $(PS5_PAYLOAD_SDK)/toolchain/prospero.mk
CFLAGS += -D__PROSPERO__ -Wall -Wextra -g -O2 -fPIC -fno-stack-protector
LDFLAGS += -lScePad -lSceUserService -lpthread -ldl
SRC := gc_main.c shellui_pad.c
.PHONY: all clean deploy
all: $(TARGET)
$(TARGET): $(SRC)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
clean:
rm -f $(TARGET)
deploy: $(TARGET)
nc -w 5 $(PS5_HOST) $(PORT) < $(TARGET)