* Add codesign makefile target for OSX 10.6

This commit is contained in:
pancake 2010-11-26 13:11:11 +01:00
parent caee8a1009
commit cb077db5f2
2 changed files with 41 additions and 0 deletions

37
binr/radare2/Info.plist Normal file
View File

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>net.radare.radare2</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>radare2</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>SecTaskAccess</key>
<array>
<string>allowed</string>
</array>
</dict>
</plist>
<!--
To use the debugger in OSX>10.6 you have to create a self-signed certificate
using the "KeyChain Access" utility. Then do the following:
Menu -> CertificateAssistant -> Create Certificate
-> certificate type: code signing
Use organization: radare.org
Name: radare2
When created:
Right click on certificate -> Trust options -> Always trust
$ make osxsign
-->

View File

@ -8,6 +8,10 @@ include ../binr.mk
sign:
ldid -Sradare2.xml radare2
osxsign:
${CC} radare2.o ${CFLAGS} ${LDFLAGS} -sectcreate __TEXT __info_plist ./Info.plist -o radare2 -framework Security -framework CoreFoundation
codesign -dvvv -s radare2 ./radare2
ifeq ($(WITHNONPIC),1)
LDFLAGS+=${DL_LIBS} -lm -lpthread
ifeq ($(HAVE_LIB_GMP),1)