diff options
-rwxr-xr-x | make.sh | 2 | ||||
-rw-r--r-- | makefile | 3 | ||||
-rw-r--r-- | uialert.mm | 7 |
3 files changed, 8 insertions, 4 deletions
@@ -0,0 +1,2 @@ +#!/bin/bash +PATH=/apl/n42/pre/bin:$PATH exec /apl/tel/exec.sh uikittools make "$@" @@ -1,5 +1,4 @@ all: uialert %: %.mm - arm-apple-darwin-g++ -o $@ $< -framework CoreFoundation -framework Foundation -framework UIKit -lobjc - arm-apple-darwin-strip $@ + $${PKG_TARG}-g++ -o $@ $< -framework CoreFoundation -framework Foundation -framework UIKit -lobjc @@ -1,5 +1,8 @@ -#include <UIKit/UIKit.h> +#import <Foundation/Foundation.h> +#import <UIKit/UIKit.h> + #include <unistd.h> +#include <cstdlib> int argc_; char **argv_; @@ -44,7 +47,7 @@ int main(int argc, char *argv[]) { argv_ = argv; char *args[] = { - "AlertSheet", NULL + (char *) "AlertSheet", NULL }; NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; |