Files
H4zeyaf--Ghostcontrol-PS5-U…/payload/Makefile
T
ItsDeidara 62e229775e xbox series S support, official NX controllers + refactoring
added support for official Nintendo Switch pro controllers(not just 8bito ultimate 2) and xbox series S
2026-06-08 07:55:15 -04:00

28 lines
594 B
Makefile

PS5_HOST ?= 192.168.69.44
PORT ?= 9021
TARGET := ghost-control-xbox-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 usb_helpers.c controller_nintendo.c controller_xbox.c
.PHONY: all clean deploy
all: $(TARGET)
$(TARGET): $(SRC)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
clean:
rm -f $(TARGET)
deploy: $(TARGET)
nc -w 8 $(PS5_HOST) $(PORT) < $(TARGET)