Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/woip/app/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'woip/app/Makefile')
-rw-r--r--woip/app/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/woip/app/Makefile b/woip/app/Makefile
new file mode 100644
index 0000000..f27cf69
--- /dev/null
+++ b/woip/app/Makefile
@@ -0,0 +1,23 @@
+CC=arm-apple-darwin-gcc
+LD=$(CC)
+LDFLAGS=-lobjc -framework CoreFoundation -framework CoreGraphics -framework WebKit -framework Foundation -framework UIKit -framework LayerKit -lbz2
+CFLAGS=-I/usr/local/arm-apple-darwin/include -DWP_INCLUDE -DDEBUG -g
+SEARCHVIEW=SearchView.o
+
+all: WikiApp
+
+WikiApp: WikiApp.o $(SEARCHVIEW) WebKitView.o main.o ArticleView.o SearchResult.o SearchBar.o WPParser.o ReadStream.o ../c/wp.o ../c/bzipreader.o ../c/safe.o ../c/lsearcher.o ../c/blocks.o
+ $(LD) $(LDFLAGS) -o $@ $^
+
+%.o: %.m
+ $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
+
+%.do: %.m
+ cat $< | ../rb/objcproc.rb > _debug_$< && $(CC) -c $(CFLAGS) $(CPPFLAGS) _debug_$< -o $@
+
+clean:
+ rm -f *.o WikiApp
+
+install:
+ scp WikiApp root@192.168.1.105:
+ ssh root@192.168.1.105 ./WikiApp