Skip to content
Browse files

make it actually work

  • Loading branch information...
1 parent b6a32db commit a41bcdda639edaf22324b91c315049a7f151f6e2 Mobile User committed Jul 10, 2010
Showing with 9 additions and 1 deletion.
  1. +0 −1 env.mk
  2. +9 −0 food/Makefile
View
1 env.mk
@@ -5,7 +5,6 @@ XSTUFF := --sysroot $(SDK)
GCC := gcc $(XSTUFF)
GXX := g++ $(XSTUFF)
else
-export IPHONE_GCC = 0
SDK := /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhone3.2.sdk/
GCC := /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 --sysroot $(SDK) -arch armv7
GXX := /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2 --sysroot $(SDK) -arch armv7
View
9 food/Makefile
@@ -19,6 +19,15 @@ multistuff.settings.h: multistuff.py
myjni.o: myjni.c multistuff.settings.h
$(GCC) $(STUFF) -c -o $@ $<
+ifdef IPHONE_GCC
+# current iphone-gcc doesn't support NEON stuff. :(
+neon.o: neon.S
+ cp prebuilt-for-iphone-gcc/neon.o neon.o
+else
+neon.o: neon.S
+ $(GCC) $(STUFF) -c -o $@ $<
+endif
+
%.o: %.S
$(GCC) $(STUFF) -c -o $@ $<

0 comments on commit a41bcdd

Please sign in to comment.
Something went wrong with that request. Please try again.