mirror of
https://github.com/drakmor/ShadowMountPlus.git
synced 2026-10-21 22:22:28 -05:00
Added stale mount.lnk cleanup logic for /user/app/* entries, including broken links and invalid sources. Added automatic remount recovery: if a previously mounted image becomes inactive while the image file still exists, retry mounting. Added optional cleanup of related /system_ex/app/<TITLE_ID> nullfs bind mounts when unmounting an image source. Added debug log rotation on startup
23 lines
548 B
Makefile
23 lines
548 B
Makefile
PS5_PAYLOAD_SDK ?= /opt/ps5-payload-sdk
|
|
include $(PS5_PAYLOAD_SDK)/toolchain/prospero.mk
|
|
|
|
# Standard Flags (No extra libraries)
|
|
CFLAGS := -O2 -Wall -D_BSD_SOURCE -std=gnu11 -Isrc
|
|
|
|
# Linker
|
|
LDFLAGS :=
|
|
|
|
# Standard Libraries Only
|
|
LIBS := -lkernel_sys -lSceSystemService -lSceUserService -lSceAppInstUtil -lsqlite3
|
|
|
|
# Targets
|
|
all: shadowmountplus.elf
|
|
|
|
# Build Daemon
|
|
shadowmountplus.elf: src/main.c
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
|
|
$(PS5_PAYLOAD_SDK)/bin/prospero-strip --strip-debug $@
|
|
|
|
clean:
|
|
rm -f shadowmountplus.elf kill.elf src/*.o
|