Files
2026-10-19 23:10:28 +03:30

28 lines
499 B
Makefile

PS5_HOST ?= ps5
PS5_PORT ?= 9021
VERSION ?= dev
ifdef PS5_PAYLOAD_SDK
include $(PS5_PAYLOAD_SDK)/toolchain/prospero.mk
else
$(error PS5_PAYLOAD_SDK is undefined. Export it before running make.)
endif
ELF := Browser_appCache_remove.elf
SRCS := main.c
CFLAGS := -Wall -Wextra -Werror -g -O2 -DVERSION_STR=\"$(VERSION)\"
all: $(ELF)
$(ELF): $(SRCS)
$(CC) $(CFLAGS) -o $@ $^
clean:
rm -f $(ELF)
test: $(ELF)
$(PS5_DEPLOY) -h $(PS5_HOST) -p $(PS5_PORT) $^
.PHONY: all clean test