mirror of
https://github.com/H4zeyaf/Ghostcontrol-PS5-USB-Controller-Patcher-Cyclone2.git
synced 2026-10-06 10:00:17 +02:00
28 lines
615 B
Makefile
28 lines
615 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 controller_xbox360.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)
|