forked from akusio/KernBypass-Public
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Makefile
57 lines (43 loc) · 1.47 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
ARCHS = arm64 arm64e
DEBUG = 0
FINALPACKAGE = 1
TARGET := iphone:clang:14.0:12.1.2
MIN_IOS_SDK_VERSION = 7.0
THEOS_DEVICE_IP = localhost -p 2222
TOOL_NAME = preparerootfs changerootfs
preparerootfs_FILES = preparerootfs.m kernel.m libdimentio.c vnode_utils.c
preparerootfs_CFLAGS = -objc-arc -D USE_DEV_FAKEVAR
preparerootfs_FRAMEWORKS = IOKit
preparerootfs_CODESIGN_FLAGS = -Sent.plist
changerootfs_FILES = changerootfs.m kernel.m libdimentio.c vnode_utils.c
changerootfs_CFLAGS = -objc-arc
changerootfs_FRAMEWORKS = IOKit
changerootfs_CODESIGN_FLAGS = -Sent.plist
SUBPROJECTS += zzzzzzzzznotifychroot
SUBPROJECTS += kernbypassprefs
SUBPROJECTS += kernbypassd
SUBPROJECTS += prerm
SUBPROJECTS += KernBypassdCC
include $(THEOS)/makefiles/common.mk
include $(THEOS_MAKE_PATH)/tool.mk
include $(THEOS_MAKE_PATH)/aggregate.mk
LIB_DIR := lib
ifdef USE_JELBREK_LIB
preparerootfs_LDFLAGS = $(LIB_DIR)/jelbrekLib.dylib
changerootfs_LDFLAGS = $(LIB_DIR)/jelbrekLib.dylib
endif
ifdef USE_JELBREK_LIB
before-package::
$(THEOS)/toolchain/linux/iphone/bin/ldid -S./ent.plist $(THEOS_STAGING_DIR)/usr/lib/jelbrekLib.dylib
endif
before-package::
mkdir -p $(THEOS_STAGING_DIR)/usr/lib/
cp $(LIB_DIR)/jelbrekLib.dylib $(THEOS_STAGING_DIR)/usr/lib
cp ./layout/DEBIAN/* $(THEOS_STAGING_DIR)/DEBIAN
chmod -R 755 $(THEOS_STAGING_DIR)
chmod 6755 $(THEOS_STAGING_DIR)/usr/bin/kernbypassd
chmod 666 $(THEOS_STAGING_DIR)/DEBIAN/control
after-package::
make clean
after-install::
install.exec "sbreload"