Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031
  1. iOS_GCC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2
  2. iOS_SYSROOT=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk
  3. ANDROID_GCC=$(ANDROID_NDK)/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc
  4. linux:
  5. gcc zlib_helper.c -c -oi386-linux/zlib_helper.o -O2 -s -ffast-math -std=c99 -march=i686 -m32
  6. gcc zlib_helper.c -c -ox86_64-linux/zlib_helper.o -O2 -s -ffast-math -std=c99 -m64 -fPIC
  7. android:
  8. $(ANDROID_GCC) zlib_helper.c -c -oarm-linux/zlib_helper.o -O2 -s -marm -march=armv5 -Xassembler "-meabi=5" -ffast-math -std=c99 -I$(ANDROID_NDK)/platforms/android-3/arch-arm/usr/include
  9. win32:
  10. i486-mingw32-gcc zlib_helper.c -c -oi386-win32/zlib_helper.o -O2 -s -ffast-math -std=c99 -march=i686
  11. win64:
  12. x86_64-w64-mingw32-gcc zlib_helper.c -c -ox86_64-win64/zlib_helper.o -O2 -s -ffast-math -std=c99
  13. wince:
  14. arm-wince-cegcc-gcc zlib_helper.c -c -oarm-wince/zlib_helper.o -I./ -O2 -s -ffast-math
  15. macos:
  16. gcc zlib_helper.c -c -oi386-darwin/zlib_helper.o -O2 -s -ffast-math -std=c99 -march=i686 -m32
  17. powerpc-apple-darwin10-gcc-4.2.1 zlib_helper.c -c -opowerpc-darwin/zlib_helper.o -O2 -s -ffast-math -std=c99
  18. ios:
  19. $(iOS_GCC) -isysroot$(iOS_SYSROOT) -arch armv6 zlib_helper.c -c -oarm-darwin/zlib_helper_armv6.o -O2 -s -ffast-math -std=c99
  20. $(iOS_GCC) -isysroot$(iOS_SYSROOT) -arch armv7 zlib_helper.c -c -oarm-darwin/zlib_helper_armv7.o -O2 -s -ffast-math -std=c99
  21. lipo -create arm-darwin/zlib_helper_armv6.o arm-darwin/zlib_helper_armv7.o -output arm-darwin/zlib_helper.o
  22. rm -f arm-darwin/zlib_helper_armv6.o
  23. rm -f arm-darwin/zlib_helper_armv7.o
  24. gcc zlib_helper.c -c -oi386-iphonesim/zlib_helper.o -O2 -s -ffast-math -std=c99 -march=i686 -m32