forked from opa334/Dopamine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
16 lines (11 loc) · 607 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
TARGET = jailbreakd
CC = clang
CFLAGS = -framework Foundation -framework CoreServices -framework Security -I../_shared -I./src -isysroot $(shell xcrun --sdk iphoneos --show-sdk-path) -arch arm64e -miphoneos-version-min=15.0 -fobjc-arc -Wno-nullability-completeness-on-arrays -O3
LDFLAGS = -L../libjailbreak -ljailbreak -lbsm -larchive
sign: $(TARGET)
@ldid -Sentitlements.plist $<
$(TARGET): $(wildcard src/*.m src/*.S src/machoparse/*.c)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
install_name_tool -change "/var/jb/basebin/libjailbreak.dylib" "@loader_path/libjailbreak.dylib" $@
clean:
@rm -f $(TARGET)