mirror of
https://github.com/Techsociology/ps5_appcache_remove.git
synced 2026-10-21 16:01:50 +02:00
28 lines
499 B
Makefile
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
|