Skip to content
Browse files

fix the build

  • Loading branch information...
1 parent e72b524 commit 4be11e2aa8c62c60033b56a91252dcb2afe42ac1 Geoff Norton committed with Jul 10, 2010
Showing with 4 additions and 2 deletions.
  1. +1 −1 env.mk
  2. +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
4 rpc/Makefile
@@ -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 4be11e2

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