1SRCS := codesign_wrapper.c MISEntitlement.c codesign.c # MISCrypto_OpenSSL.c 2OBJS := $(SRCS:.c=.o) 3CFLAGS := -Wall -Wmost -Werror -g -O2 -I. -std=c99 -DDEBUG_ASSERT_PRODUCTION_CODE=0 4LDFLAGS := -framework CoreFoundation -framework Security 5VERSION := 0.5.4 6 7all: codesign_wrapper check_entitlements 8 9codesign_wrapper: $(OBJS) 10 11check_entitlements: check_entitlements.o 12 13tags: $(SRCS) 14 ctags $(SRCS) 15 16clean: 17 rm -f tags $(OBJS) codesign_wrapper 18 19zip: 20 (cd ..; zip -r codesign_wrapper-$(VERSION).zip codesign_wrapper -x \*/.git/\*) 21 22sign: 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 28demosign: 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 32