This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
forked from rpetrich/RocketBootstrap
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
54 lines (46 loc) · 2.13 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
TARGET := iphone:clang:latest:13.0
ARCHS := arm64 arm64e
INSTALL_TARGET_PROCESSES = SpringBoard MobileGestaltHelper rocketd _rocketd_reenable
GO_EASY_ON_ME = 1
ifeq ($(ROOTLESS),1)
export THEOS_PACKAGE_SCHEME := rootless
endif
LIBRARY_NAME := librocketbootstrap
librocketbootstrap_FILES += Tweak.x Shims.x
ifeq ($(THEOS_PACKAGE_SCHEME),rootless)
librocketbootstrap_LDFLAGS += -install_name @rpath/librocketbootstrap.dylib
librocketbootstrap_WEAK_LIBRARIES += libs/rootless/TweakInject.tbd
else
librocketbootstrap_WEAK_LIBRARIES += libs/TweakInject.tbd
endif
librocketbootstrap_LIBRARIES += substrate
librocketbootstrap_FRAMEWORKS += Foundation
librocketbootstrap_USE_MODULES += 0
TOOL_NAME := rocketd _rocketd_reenable
rocketd_FILES += rocketd.c
rocketd_CFLAGS += -fblocks
rocketd_FRAMEWORKS += CoreFoundation
rocketd_INSTALL_PATH += /usr/libexec
rocketd_USE_MODULES += 0
rocketd_CODESIGN_FLAGS += -Sentitlements.xml
_rocketd_reenable_FILES += rocketd_reenable.c
_rocketd_reenable_INSTALL_PATH += /usr/libexec
_rocketd_reenable_USE_MODULES += 0
_rocketd_reenable_CODESIGN_FLAGS += -Sentitlements.xml
ADDITIONAL_CFLAGS += -std=c99 -Idefaultheaders -include prefix.pch
ADDITIONAL_LDFLAGS += -Wl,-no_warn_inits
include $(THEOS)/makefiles/common.mk
include $(THEOS_MAKE_PATH)/library.mk
include $(THEOS_MAKE_PATH)/tool.mk
before-all::
@rm -rf layout
@mkdir -p layout
@[ "$$ROOTLESS" = "1" ] && cp -rP defaultlayout/DEBIAN defaultlayout/var layout/ || true
@[ "$$ROOTLESS" = "" ] && cp -rP defaultlayout/DEBIAN defaultlayout/Library layout/ || true
stage::
@mkdir -p "$(THEOS_STAGING_DIR)/usr/include"
@cp -a rocketbootstrap.h rocketbootstrap_dynamic.h "$(THEOS_STAGING_DIR)/usr/include"
@plutil -convert binary1 "$(THEOS_STAGING_DIR)/Library/MobileSubstrate/DynamicLibraries/RocketBootstrap.plist" || true
@plutil -convert binary1 "$(THEOS_STAGING_DIR)/Library/LaunchDaemons/com.rpetrich.rocketbootstrapd.plist" || true
@plutil -convert binary1 "$(THEOS_STAGING_DIR)/var/jb/Library/MobileSubstrate/DynamicLibraries/RocketBootstrap.plist" || true
@plutil -convert binary1 "$(THEOS_STAGING_DIR)/var/jb/Library/LaunchDaemons/com.rpetrich.rocketbootstrapd.plist" || true