-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
24 lines (19 loc) · 1.1 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
BTOUCH=/Developer/MonoTouch/usr/bin/btouch
SMCS=/Developer/MonoTouch/usr/bin/smcs
MONOXBUILD=/Library/Frameworks/Mono.framework/Commands/xbuild
all: AFNetworking.dll
vendor:
git submodule update --init --recursive
libAFNetworking.a: vendor
xcodebuild -project "./vendor/afnetworking/AFNetworking Static Library.xcodeproj" -sdk iphonesimulator -configuration Release clean build
xcodebuild -project "./vendor/afnetworking/AFNetworking Static Library.xcodeproj" -sdk iphoneos -configuration Release clean build
lipo -create -output ./vendor/afnetworking/build/libAFNetworking.a ./vendor/afnetworking/build/Release-iphoneos/libAFNetworking.a ./vendor/afnetworking/build/Release-iphonesimulator/libAFNetworking.a
cp ./vendor/afnetworking/build/libAFNetworking.a ./libAFNetworking.a
AFNetworking.dll: libAFNetworking.a
$(BTOUCH) AFNetworking/ApiDefinition.cs AFNetworking/libAFNetworking.linkwith.cs -s:AFNetworking/StructsAndEnums.cs --out=$@ --link-with=libAFNetworking.a,libAFNetworking.a
clean:
rm -r vendor
rm -r ./AFNetworking/bin
rm -r ./AFNetworking/obj
rm ./AFNetworking/libAFNetworking.a
rm ./AFNetworking.dll