summaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorGeorge Hotz <geohot@gmail.com>2011-01-10 23:27:48 -0500
committerGeorge Hotz <geohot@gmail.com>2011-01-10 23:27:48 -0500
commit0d53596107efda4964617340b116e168e20d801a (patch)
tree99e35cc99ab067d1b9ccc20d9ad165ac40e7c6e7 /makefile
parent2a8f3a2e021eec28505a7017bec5207598ee36a8 (diff)
downloadps3publictools-0d53596107efda4964617340b116e168e20d801a.tar.xz
added make_self support
Diffstat (limited to 'makefile')
-rwxr-xr-xmakefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/makefile b/makefile
index 46ac511..63a2e96 100755
--- a/makefile
+++ b/makefile
@@ -1,11 +1,14 @@
linux: make_self.c package_finalize.c
- gcc make_self.c -lgmp -lcrypto -lz -o build/make_self_npdrm
+ gcc make_self.c -DNPDRM -lgmp -lcrypto -lz -o build/make_self_npdrm
+ gcc make_self.c -lgmp -lcrypto -lz -o build/make_self
gcc package_finalize.c -lcrypto -o build/package_finalize
windows: make_self.c package_finalize.c
- gcc make_self.c -I"C:\Program Files (x86)\GnuWin32\include" -L"C:\OpenSSL-Win32\lib\MinGW" -lgmp -leay32 "C:\Program Files (x86)\GnuWin32\bin\zlib1.dll" -o build/make_self_npdrm.exe
+ gcc make_self.c -DNPDRM -I"C:\Program Files (x86)\GnuWin32\include" -L"C:\OpenSSL-Win32\lib\MinGW" -lgmp -leay32 "C:\Program Files (x86)\GnuWin32\bin\zlib1.dll" -o build/make_self_npdrm.exe
+ gcc make_self.c -I"C:\Program Files (x86)\GnuWin32\include" -L"C:\OpenSSL-Win32\lib\MinGW" -lgmp -leay32 "C:\Program Files (x86)\GnuWin32\bin\zlib1.dll" -o build/make_self.exe
gcc package_finalize.c -L"C:\OpenSSL-Win32\lib\MinGW" -leay32 -o build/package_finalize.exe
osx: make_self.c package_finalize.c
- gcc make_self.c -I/opt/local/include -I/opt/local -L/opt/local/lib -lgmp -lcrypto -lz -o build/make_self_npdrm
+ gcc make_self.c -DNPDRM -I/opt/local/include -I/opt/local -L/opt/local/lib -lgmp -lcrypto -lz -o build/make_self_npdrm
+ gcc make_self.c -I/opt/local/include -I/opt/local -L/opt/local/lib -lgmp -lcrypto -lz -o build/make_self
gcc package_finalize.c -I/opt/local/include -I/opt/local -L/opt/local/lib -lcrypto -o build/package_finalize