mirror of
https://github.com/s0liton/ps5-romm.git
synced 2026-10-23 17:01:44 +02:00
21 lines
667 B
Makefile
21 lines
667 B
Makefile
# Built inside the romm-sync PS5 SDK image: tools/ps5-build.sh --test
|
|
include $(PS5_PAYLOAD_SDK)/toolchain/prospero.mk
|
|
|
|
CURL_CFLAGS := $(shell $(PKG_CONFIG) --cflags libcurl)
|
|
CURL_LIBS := $(shell $(PKG_CONFIG) --static --libs libcurl)
|
|
|
|
CFLAGS := -Wall -Werror -O2 $(CURL_CFLAGS)
|
|
# also compiles and links platform_ps5.c against a throwaway main
|
|
PLAT_LIBS := -lSceSystemService -lSceAppInstUtil
|
|
|
|
all: curltest.elf platcheck.elf
|
|
|
|
curltest.elf: curltest.c
|
|
$(CC) $(CFLAGS) -o $@ $< $(CURL_LIBS)
|
|
|
|
platcheck.elf: platcheck.c ../../../src/platform_ps5.c
|
|
$(CC) -Wall -Werror -Wextra -Wno-unused-parameter -O2 -I../../../src -o $@ $^ $(PLAT_LIBS)
|
|
|
|
clean:
|
|
rm -f *.elf *.o
|