TrollStore/RootHelper/Makefile

37 lines
1.2 KiB
Makefile
Raw Permalink Normal View History

TARGET := iphone:clang:16.5:14.0
2022-09-02 23:19:48 +08:00
ARCHS = arm64
2024-09-02 19:27:04 +08:00
ifdef TROLLSTORE_LITE
HELPER_NAME = trollstorehelper_lite
else
HELPER_NAME = trollstorehelper
2023-11-27 03:43:30 +08:00
TARGET_CODESIGN = ../Exploits/fastPathSign/fastPathSign
2024-09-02 19:27:04 +08:00
endif
2023-11-27 03:43:30 +08:00
2022-09-02 23:19:48 +08:00
include $(THEOS)/makefiles/common.mk
2024-09-02 19:27:04 +08:00
TOOL_NAME = $(HELPER_NAME)
2022-09-02 23:19:48 +08:00
2024-09-02 19:27:04 +08:00
$(HELPER_NAME)_FILES = $(wildcard *.m) $(wildcard ../Shared/*.m) $(wildcard ../ChOma/src/*.c)
ifndef TROLLSTORE_LITE
$(HELPER_NAME)_FILES += ../Exploits/fastPathSign/src/coretrust_bug.c ../Exploits/fastPathSign/src/codesign.m
$(HELPER_NAME)_CODESIGN_FLAGS = --entitlements entitlements.plist
$(HELPER_NAME)_LDFLAGS = -L../ChOma/external/ios -lcrypto
else
$(HELPER_NAME)_CODESIGN_FLAGS = -Sentitlements.plist
endif
$(HELPER_NAME)_CFLAGS = -fobjc-arc -I../Shared $(shell pkg-config --cflags libcrypto) -I../ChOma/src -I../Exploits/fastPathSign/src -I$(shell brew --prefix)/opt/libarchive/include
$(HELPER_NAME)_INSTALL_PATH = /usr/local/bin
$(HELPER_NAME)_LIBRARIES = archive
$(HELPER_NAME)_FRAMEWORKS = CoreTelephony
$(HELPER_NAME)_PRIVATE_FRAMEWORKS = SpringBoardServices BackBoardServices MobileContainerManager FrontBoardServices RunningBoardServices
ifdef TROLLSTORE_LITE
$(HELPER_NAME)_CFLAGS += -DTROLLSTORE_LITE -DDISABLE_SIGNING=1
endif
2022-09-02 23:19:48 +08:00
include $(THEOS_MAKE_PATH)/tool.mk