]> git.saurik.com Git - apple/security.git/blob - codesign_wrapper/Makefile
Security-59306.80.4.tar.gz
[apple/security.git] / codesign_wrapper / Makefile
1 SRCS := codesign_wrapper.c MISEntitlement.c codesign.c # MISCrypto_OpenSSL.c
2 OBJS := $(SRCS:.c=.o)
3 CFLAGS := -Wall -Wmost -Werror -g -O2 -I. -std=c99 -DDEBUG_ASSERT_PRODUCTION_CODE=0
4 LDFLAGS := -framework CoreFoundation -framework Security
5 VERSION := 0.5.4
6
7 all: codesign_wrapper check_entitlements
8
9 codesign_wrapper: $(OBJS)
10
11 check_entitlements: check_entitlements.o
12
13 tags: $(SRCS)
14 ctags $(SRCS)
15
16 clean:
17 rm -f tags $(OBJS) codesign_wrapper
18
19 zip:
20 (cd ..; zip -r codesign_wrapper-$(VERSION).zip codesign_wrapper -x \*/.git/\*)
21
22 sign:
23 rm -r AccelerometerGraph.app
24 cp -R ../codesign_wrapper-unused/AccelerometerGraph.app .
25 cp ../codesign_wrapper-unused/Core_OS_IMG_v1_profile_052808.mobileprovision AccelerometerGraph.app/embedded.mobileprovision
26 CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate ./codesign_wrapper -s "iPhone Developer: Katherine Kojima" -f -vvvv -r'=designated => anchor apple generic' AccelerometerGraph.app
27
28 demosign:
29 rm -r AccelerometerGraph.app
30 cp -R ../codesign_wrapper-unused/AccelerometerGraph.app .
31 CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate ./codesign_wrapper --no-profile -s "iPhone Developer: Katherine Kojima" -f -vvvv -r'=designated => anchor apple generic' AccelerometerGraph.app