-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
35 lines (22 loc) · 877 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
ARCHS = arm64 arm64e
TARGET := iphone:clang:latest:15.0
THEOS_PACKAGE_SCHEME = roothide
FINALPACK = 1
DEBUG ?= 0
include $(THEOS)/makefiles/common.mk
LIBRARY_NAME = roothidepatch
$(LIBRARY_NAME)_FILES = PatchLoader.c
$(LIBRARY_NAME)_CFLAGS = -fvisibility=hidden # make PLRequiredJIT not exported
$(LIBRARY_NAME)_INSTALL_PATH = /usr/lib
include $(THEOS_MAKE_PATH)/library.mk
MIRROR_PATH=/var/mobile/Library/pkgmirror
before-package::
mkdir -p $(THEOS_STAGING_DIR)/var
ln -s / $(THEOS_STAGING_DIR)/var/jb
mkdir -p $(THEOS_STAGING_DIR)/rootfs/var
mkdir -p $(THEOS_STAGING_DIR)/$(MIRROR_PATH)/var
ln -s $(MIRROR_PATH) $(THEOS_STAGING_DIR)/$(MIRROR_PATH)/var/jb
mkdir -p $(THEOS_STAGING_DIR)/$(MIRROR_PATH)/usr/lib
ln -s $(MIRROR_PATH)/Library/MobileSubstrate/DynamicLibraries $(THEOS_STAGING_DIR)/$(MIRROR_PATH)/usr/lib/TweakInject
clean::
rm -rf ./packages/*