Permalink
Browse files

fix the build

  • Loading branch information...
1 parent bae183a commit ca66daaa00694c19c64177d288e4d2b76abe07cb Geoff Norton committed Jul 10, 2010
Showing with 7 additions and 3 deletions.
  1. +1 −1 env.mk
  2. +3 −1 libgcc/Makefile
  3. +3 −1 rpc/Makefile
View
2 env.mk
@@ -5,7 +5,7 @@ XSTUFF := --sysroot $(SDK) -F$(SDK)/System/Library/Frameworks -F$(SDK)/System/Li
GCC := gcc $(XSTUFF)
GXX := g++ $(XSTUFF)
else
-SDK := /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhone3.2.sdk/
+SDK := /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.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
endif
View
@@ -1,7 +1,9 @@
+include ../env.mk
+
libgccstuff.dylib:
ar x /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/lib/gcc/arm-apple-darwin10/4.2.1/libgcc.a
python fix.py
python fix2.py
- gcc-4.2 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/ -arch armv7 -dynamiclib -exported_symbols_list symbols -o libgccstuff.dylib *.o
+ $(GCC) -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/ -arch armv7 -dynamiclib -exported_symbols_list symbols -o libgccstuff.dylib *.o
clean:
rm -f *.o libgccstuff.dylib
View
@@ -1,6 +1,8 @@
+include ../env.mk
+
all:
python PROTOCOLBUFFERS.py food.proto
- gcc -O2 -g3 --sysroot /var/sdk -Dstream_t=int -c food_rpc[12].c
+ $(GCC) -O2 -g3 --sysroot $(SDK) -Dstream_t=int -c food_rpc[12].c
cp food_rpc2.h food_rpc2.c ../Player2/
clean:
rm *.[cho]

0 comments on commit ca66daa

Please sign in to comment.