forked from tihmstar/xpwn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
76 lines (66 loc) · 2.16 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
all: hfs/hfsplus dmg/dmg hdutil/hdutil ipsw-patch/pch xpwn/xpwn
dmg/dmg:
cd dmg; make
hfs/hfsplus:
cd hfs; make
hdutil/hdutil:
cd hdutil; make
ipsw-patch/pch: hfs/hfsplus dmg/dmg
cd ipsw-patch; make
xpwn/xpwn: hfs/hfsplus dmg/dmg
cd xpwn; make
install: ipsw-patch/pch xpwn/xpwn
-rm -rf xpwn-build
mkdir xpwn-build
cp ipsw-patch/pch xpwn-build/ipsw
cp xpwn/build/xpwn xpwn-build/xpwn
cp xpwn/ramdisk.dmg xpwn-build/ramdisk.dmg
cp -R ipsw-patch/FirmwareBundles xpwn-build/FirmwareBundles
cp -R ipsw-patch/bundles xpwn-build/bundles
cp README.markdown xpwn-build/README
cp LICENSE xpwn-build/LICENSE
tar jcvf xpwn-linux.tar.bz2 xpwn-build
install-win: ipsw-patch/pch xpwn/xpwn
-rm -rf xpwn-build
mkdir xpwn-build
-cp ipsw-patch/pch.exe xpwn-build/ipsw.exe
-cp xpwn/build/xpwn.exe xpwn-build/xpwn.exe
-cp ipsw-patch/pch xpwn-build/ipsw.exe
-cp xpwn/build/xpwn xpwn-build/xpwn.exe
cp xpwn/ramdisk.dmg xpwn-build/ramdisk.dmg
cp -R ipsw-patch/FirmwareBundles xpwn-build/FirmwareBundles
cp -R ipsw-patch/bundles xpwn-build/bundles
sed "`echo s/$$/\\\r`/" README.markdown > xpwn-build/README.txt
sed "`echo s/$$/\\\r`/" LICENSE > xpwn-build/LICENSE.txt
cd xpwn-build; zip -r ../xpwn-windows.zip *
clean:
cd dmg; make clean
cd hfs; make clean
cd hdutil; make clean
cd ipsw-patch; make clean
cd xpwn; make clean
dist-clean: clean
-cd dmg/zlib-1.2.3; make clean
-rm dmg/zlib-1.2.3/Makefile
-rm dmg/zlib-1.2.3/*.exe
-rm dmg/openssl-0.9.8g/crypto/objects/obj_dat.h
-cd dmg/openssl-0.9.8g; make clean
-cd ipsw-patch/libpng-1.2.28; make clean
-cd ipsw-patch/bzip2-1.0.5; make clean
-cd xpwn/libusb-0.1.12; make clean
-rm -rf xpwn/libusb-0.1.12/autom4te.cache
-rm xpwn/libusb-0.1.12/config.h
-rm xpwn/libusb-0.1.12/config.log
-rm xpwn/libusb-0.1.12/config.status
-rm xpwn/libusb-0.1.12/config.status.lineno
-rm xpwn/libusb-0.1.12/libtool
-rm xpwn/libusb-0.1.12/doc/Makefile
-rm xpwn/libusb-0.1.12/tests/Makefile
-rm -rf xpwn/libusb-0.1.12/.deps
-rm -rf xpwn/libusb-0.1.12/tests/.deps
-rm xpwn/libusb-0.1.12/Makefile
-cd xpwn/libusb-win32; make clean
-rm -rf ide/xcode/build
-rm dmg/zlib-1.2.3/contrib/minizip/*.o
-rm ipsw-patch/bzip2-1.0.5/*.exe
-rm -rf xpwn-build