Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #download clang 3.7 from here: http://llvm.org/releases/download.html
  2. #CUSTOM_CLANG=/tools/clang370/bin/clang
  3. LOCAL_CLANG=clang+llvm-3.7.0-x86_64-apple-darwin/bin/clang
  4. CUSTOM_CLANG=`pwd`/$(LOCAL_CLANG)
  5. Android_armeabi:
  6. make -j1 libmono-urho.so -f MakeAndroid ABI="armeabi"
  7. Android_armeabi-v7a:
  8. make -j1 libmono-urho.so -f MakeAndroid ABI="armeabi-v7a"
  9. Android_x86:
  10. make -j1 libmono-urho.so -f MakeAndroid ABI="x86"
  11. # Make -j3 Android
  12. Android: Android_armeabi Android_armeabi-v7a Android_x86
  13. Mac:
  14. make -j1 libmono-urho.dylib -f MakeMac
  15. iOS:
  16. make -j1 fat-libmono-urho.dylib -f MakeiOS
  17. tvOS:
  18. make -j1 fat-libmono-urho.dylib -f MaketvOS
  19. Windows:
  20. make -j1 libUrho3D.a -f MakeWindows && make -j1 CoreData.pak -f MakeWindows
  21. All-Macos: Android Mac iOS
  22. All-Windows: Android Windows
  23. $(LOCAL_CLANG):
  24. if test ! -e clang+llvm-3.7.0-x86_64-apple-darwin.tar.xz; then curl -O http://llvm.org/releases/3.7.0/clang+llvm-3.7.0-x86_64-apple-darwin.tar.xz; fi
  25. tar xzvf clang+llvm-3.7.0-x86_64-apple-darwin.tar.xz
  26. #compile Urho.pch for SharpieBinder on Mac
  27. PchMac: $(LOCAL_CLANG)
  28. if test ! -e /usr/include; then xcode-select --install; fi
  29. make -j1 Urho3D_Mac -f MakeMac && $(CUSTOM_CLANG) -cc1 -emit-pch -o bindings/Urho.pch bindings/all-urho.cpp -IUrho3D/Urho3D_Mac/include -IUrho3D/Urho3D_Mac/include/Urho3D/ThirdParty
  30. ParseEventsMac:
  31. cd bindings && perl parse.pl ../Urho3D/Urho3D_Mac/include/Urho3d/*/*h