-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
35 lines (27 loc) · 1.41 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
MODELID := _MUSCLENERD_IPHONE_4S
ARM-CC := arm-apple-darwin10-gcc-4.2.1
ARM-CFLAGS := -dynamiclib -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -Fbinaries/System/Library/PrivateFrameworks/ -c -I include/ -I include/SAObjects/ -I include/Assistant -I. -g -D$(MODELID)
ARM-LDCFLAGS := -fconstant-cfstrings -dynamiclib -Wall -multiply_defined suppress -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/lib/libMobileGestalt.dylib -framework IOKit -framework CoreTelephony -framework CoreFoundation -framework SAObjects -lobjc -Fbinaries/System/Library/PrivateFrameworks -framework Foundation -framework AppSupport /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/lib/liblockdown.dylib -g
OBJS := siri_auth.o gestalt.o iokit.o sysctl.o telephony.o lockdown.o
LDID := ldid
DYLIB := libsandwich.dylib
libsandwich.dylib: $(OBJS) Makefile
@echo Linking $(DYLIB)...
@$(ARM-CC) $(OBJS) $(ARM-LDCFLAGS) -o $(DYLIB)
@echo Fake-codesigning $(DYLIB)...
@$(LDID) -S $(DYLIB)
%.o : %.m
@echo Compiling $<
@$(ARM-CC) $(ARM-CFLAGS) -c $<
%.o : %.c
@echo Compiling $<
@$(ARM-CC) $(ARM-CFLAGS) -c $<
clean:
@echo Deleting "$(DYLIB) $(OBJS)"...
@rm $(DYLIB) $(OBJS)
me:
@true
a:
@true
sandwich:
@[ -w /etc/master.passwd ] && echo "Okay." || echo "What? Make it yourself."