diff --git a/Makefile b/Makefile index 43df8de..56887be 100644 --- a/Makefile +++ b/Makefile @@ -24,12 +24,12 @@ ifdef WIN SUBDIRS += host/win endif +.PHONY: $(TOPTARGETS) $(SUBDIRS) install + $(TOPTARGETS): $(SUBDIRS) $(SUBDIRS): - $(MAKE) -j1 -C $@ $(MAKECMDGOALS) - -.PHONY: $(TOPTARGETS) $(SUBDIRS) + $(MAKE) -C $@ $(MAKECMDGOALS) install: cp -r samples/. $(DESTDIR)/samples diff --git a/crt/Makefile b/crt/Makefile index c106f46..a1f4d09 100644 --- a/crt/Makefile +++ b/crt/Makefile @@ -41,6 +41,8 @@ OBJ := crt.o syscall.o klog.o nid.o kernel.o rtld.o rtld_so.o rtld_sprx.o \ ARCHIVE := libcrt.a +.PHONY: all clean install + all: $(ARCHIVE) $(ARCHIVE): $(OBJ) diff --git a/host/Makefile b/host/Makefile index 4c8b486..8745fa7 100644 --- a/host/Makefile +++ b/host/Makefile @@ -36,6 +36,8 @@ TOOLS := bin/cmake-bin-wrapper \ LDSCRIPTS := elf_x86_64.x +.PHONY: all clean install + all: bin/prospero-nid clean: diff --git a/include/Makefile b/include/Makefile index ba704cd..4fc3241 100644 --- a/include/Makefile +++ b/include/Makefile @@ -16,6 +16,8 @@ DESTDIR ?= /opt/ps5-payload-sdk +.PHONY: all clean install + all: clean: diff --git a/libc/Makefile b/libc/Makefile index 086df50..f29de23 100644 --- a/libc/Makefile +++ b/libc/Makefile @@ -39,6 +39,8 @@ OBJS := $(SRCS:.c=.o) ARCHIVE := libc.a +.PHONY: all clean install + all: $(ARCHIVE) $(ARCHIVE): $(OBJS) diff --git a/sce_stubs/Makefile b/sce_stubs/Makefile index 653b053..11f0fd8 100644 --- a/sce_stubs/Makefile +++ b/sce_stubs/Makefile @@ -44,6 +44,8 @@ SHARED := $(SOURCES:.c=.so) NID_DB := aerolib.csv NID_DB_URL := https://raw.githubusercontent.com/zecoxao/sce_symbols/main/$(NID_DB) +.PHONY: all clean install + all: $(SOURCES) $(SHARED) stubs: $(NID_DB) $(STUBS)