From b3a511f9c590fdb62afd2ab7dc15ef39043063dd Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Fri, 8 Mar 2013 16:13:29 +0000 Subject: [PATCH] Broken down cocoa target --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4fcb4cff..716d0d28 100644 --- a/Makefile +++ b/Makefile @@ -101,12 +101,14 @@ solaris: # For codesign to work in non-interactive mode, unlock login keychain: # security unlock ~/Library/Keychains/login.keychain # See e.g. http://lists.apple.com/archives/apple-cdsa/2008/Jan/msg00027.html -cocoa: +Mongoose: mongoose.c main.c $(CC) mongoose.c main.c build/lsqlite3.c build/sqlite3.c \ -DUSE_COCOA $(CFLAGS) -I$(LUA) -Ibuild \ $(YASSL_SOURCES) $(YASSL_FLAGS) -DNO_SSL_DL \ $(LUA_SOURCES) -DUSE_LUA -DUSE_LUA_SQLITE3 -DLUA_COMPAT_ALL \ -framework Cocoa -ObjC -arch i386 -arch x86_64 -o Mongoose + +cocoa: Mongoose V=`perl -lne '/define\s+MONGOOSE_VERSION\s+"(\S+)"/ and print $$1' mongoose.c`; DIR=dmg/Mongoose.app && rm -rf $$DIR && mkdir -p $$DIR/Contents/{MacOS,Resources} && install -m 644 build/mongoose_*.png $$DIR/Contents/Resources/ && install -m 644 build/Info.plist $$DIR/Contents/ && install -m 755 Mongoose $$DIR/Contents/MacOS/ && ln -fs /Applications dmg/ ; hdiutil create Mongoose_$$V.dmg -volname "Mongoose $$V" -srcfolder dmg -ov #; rm -rf dmg u: