mirror of
https://github.com/EchoStretch/kstuff-lite.git
synced 2026-10-19 02:09:50 -05:00
22 lines
364 B
Makefile
22 lines
364 B
Makefile
ifdef PS5_PAYLOAD_SDK
|
|
include $(PS5_PAYLOAD_SDK)/toolchain/prospero.mk
|
|
else
|
|
$(error PS5_PAYLOAD_SDK is undefined)
|
|
endif
|
|
|
|
ELF := debug-reader.elf
|
|
BIN := debug-reader.bin
|
|
|
|
CFLAGS += -Wall -Wextra -g
|
|
|
|
all: $(BIN)
|
|
|
|
$(ELF): debug-reader.c uelf/shared_area.h
|
|
$(CC) $(CFLAGS) -o $@ debug-reader.c
|
|
|
|
$(BIN): $(ELF)
|
|
$(OBJCOPY) -O binary $< $@
|
|
|
|
clean:
|
|
rm -f $(ELF) $(BIN)
|