TARGET = pspawn_payload.dylib OUTDIR ?= bin CC = xcrun -sdk appletvos cc -arch arm64 # it is injected into trust cache by code # which only supports sha-256 signatures LDID = ldid2 CFLAGS = -Wall -I./apple_include .PHONY: all clean all: $(OUTDIR)/$(TARGET) DEBUG ?= 1 ifeq ($(DEBUG), 1) CFLAGS += -DPSPAWN_PAYLOAD_DEBUG else CFLAGS += -O2 endif $(OUTDIR): mkdir -p $(OUTDIR) $(OUTDIR)/$(TARGET): mach/jailbreak_daemonUser.c pspawn_payload.m fishhook.c | $(OUTDIR) $(CC) -dynamiclib -o $@ $^ -framework Foundation $(CFLAGS) $(LDID) -S $@ clean: rm -f $(OUTDIR)/$(TARGET)