All pastes #836072 Raw Edit

Untitled

public text v1 · immutable
#836072 ·published 2007-12-29 05:19 UTC
rendered paste body
user@three:~/iphone-dev/projects/Wallpaper$ cat Makefile

NAME    := App
VERSION := 0.1
APPNAME := Wallpaper
CC      := arm-apple-darwin-gcc
CFLAGS  := -Wall -pipe -ansi -O3
LD      := ${CC}
LDFLAGS := -lobjc -framework CoreFoundation -framework Foundation -framework UIKit -framework LayerKit -framework CoreGraphics -framework GraphicsServices -framework PhotoLibrary

all:    ${NAME}

${NAME}: main.o App.o SplashView.o DataPoster.o DataGetter.o
        $(LD) $(LDFLAGS) -o $@ $^
        cp App bundle/

%.o:    %.m %.h
        $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@

package: App
        find bundle -type f -name .DS_Store -print0 | xargs -0 rm
        mv bundle $(APPNAME).app
        zip -9r $(APPNAME).zip $(APPNAME).app
        mv $(APPNAME).app bundle

clean:
        rm -f *.o ${NAME}
user@three:~/iphone-dev/projects/Wallpaper$ ls -lR
.:
total 60
-rw-r--r-- 1 root root  269 2007-12-28 21:38 App.h
-rw-r--r-- 1 root root 6193 2007-12-28 21:38 App.m
drwxr-xr-x 3 root root 4096 2007-12-28 21:38 bundle
-rw-r--r-- 1 root root  371 2007-12-28 21:38 DataGetter.h
-rw-r--r-- 1 root root 1059 2007-12-28 21:38 DataGetter.m
-rw-r--r-- 1 root root  379 2007-12-28 21:38 DataPoster.h
-rw-r--r-- 1 root root 1258 2007-12-28 21:38 DataPoster.m
-rw-r--r-- 1 root root  304 2007-12-28 21:38 main.m
-rw-r--r-- 1 root root  664 2007-12-28 22:12 Makefile
-rw-r--r-- 1 root root  665 2007-12-28 22:12 Makefile~
-rw-r--r-- 1 root root  777 2007-12-28 21:53 Makefile.backup
-rw-r--r-- 1 root root  374 2007-12-28 21:38 SplashView.h
-rw-r--r-- 1 root root 4191 2007-12-28 21:38 SplashView.m

./bundle:
total 232
-rw-r--r-- 1 root root 220620 2007-12-28 21:38 Default.png
-rw-r--r-- 1 root root   5776 2007-12-28 21:38 icon.png
-rw-r--r-- 1 root root    719 2007-12-28 21:38 Info.plist
user@three:~/iphone-dev/projects/Wallpaper$