2022-10-12 04:57:08 +08:00
|
|
|
export EMBEDDED_ROOT_HELPER ?= 0
|
2023-11-27 22:49:54 +08:00
|
|
|
export LEGACY_CT_BUG ?= 0
|
2022-10-12 04:57:08 +08:00
|
|
|
|
2024-01-12 03:21:33 +08:00
|
|
|
TARGET := iphone:clang:16.5:14.0
|
2022-10-12 04:57:08 +08:00
|
|
|
INSTALL_TARGET_PROCESSES = TrollStorePersistenceHelper
|
2023-11-27 23:30:34 +08:00
|
|
|
|
|
|
|
ifdef CUSTOM_ARCHS
|
|
|
|
ARCHS = $(CUSTOM_ARCHS)
|
|
|
|
else
|
2023-11-27 03:43:30 +08:00
|
|
|
ARCHS = arm64
|
2023-11-27 23:30:34 +08:00
|
|
|
endif
|
2023-11-27 03:43:30 +08:00
|
|
|
|
2023-11-27 22:49:54 +08:00
|
|
|
ifneq ($(LEGACY_CT_BUG),1)
|
2023-11-27 03:43:30 +08:00
|
|
|
TARGET_CODESIGN = ../Exploits/fastPathSign/fastPathSign
|
2023-11-27 22:49:54 +08:00
|
|
|
endif
|
2022-10-12 04:57:08 +08:00
|
|
|
|
|
|
|
include $(THEOS)/makefiles/common.mk
|
|
|
|
|
|
|
|
APPLICATION_NAME = TrollStorePersistenceHelper
|
|
|
|
|
|
|
|
TrollStorePersistenceHelper_FILES = $(wildcard *.m) $(wildcard ../Shared/*.m)
|
2023-11-30 00:18:50 +08:00
|
|
|
TrollStorePersistenceHelper_FRAMEWORKS = UIKit CoreGraphics CoreServices CoreTelephony
|
2023-01-26 07:39:58 +08:00
|
|
|
TrollStorePersistenceHelper_PRIVATE_FRAMEWORKS = Preferences MobileContainerManager
|
2024-01-26 23:47:29 +08:00
|
|
|
TrollStorePersistenceHelper_CFLAGS = -fobjc-arc -I../Shared -I$(shell brew --prefix)/opt/libarchive/include
|
2023-11-27 22:49:54 +08:00
|
|
|
|
|
|
|
ifeq ($(LEGACY_CT_BUG),1)
|
|
|
|
TrollStorePersistenceHelper_CODESIGN_FLAGS = -Sentitlements.plist -K../legacy.p12
|
2023-11-27 23:00:54 +08:00
|
|
|
TrollStorePersistenceHelper_CFLAGS += -DLEGACY_CT_BUG=1
|
2023-11-27 22:49:54 +08:00
|
|
|
else
|
2023-11-27 03:43:30 +08:00
|
|
|
TrollStorePersistenceHelper_CODESIGN_FLAGS = --entitlements entitlements.plist
|
2023-11-27 22:49:54 +08:00
|
|
|
endif
|
2022-10-12 04:57:08 +08:00
|
|
|
|
|
|
|
ifeq ($(EMBEDDED_ROOT_HELPER),1)
|
|
|
|
TrollStorePersistenceHelper_CFLAGS += -DEMBEDDED_ROOT_HELPER=1
|
|
|
|
TrollStorePersistenceHelper_FILES += $(wildcard ../RootHelper/*.m)
|
|
|
|
TrollStorePersistenceHelper_LIBRARIES += archive
|
2023-12-31 02:40:05 +08:00
|
|
|
TrollStorePersistenceHelper_PRIVATE_FRAMEWORKS += SpringBoardServices BackBoardServices FrontBoardServices
|
2022-10-12 04:57:08 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
include $(THEOS_MAKE_PATH)/application.mk
|