dominus

Untitled

May 9th, 2020
1,121
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. if [ "$TARGET" = "" ]; then
  4.     TARGET=`basename $0 -make.sh`
  5. fi
  6. if [ "$TARGET" = "" -o "$TARGET" = "cross" ]; then
  7.     TARGET=i686-w64-mingw32
  8. fi
  9. if [ "$PREFIX" != "" ]; then
  10.     PATH="$PREFIX/bin:$PREFIX/$TARGET/bin:$PATH"
  11.     export PATH
  12.     PKG_CONFIG_PATH=$PREFIX/$TARGET/lib/pkgconfig
  13.     export PKG_CONFIG_PATH
  14. fi
  15. if [ "$PREFIX" != "" ]; then
  16.     PATH="$PREFIX/bin:$PREFIX/$TARGET/bin:$PATH"
  17.     export PATH
  18. fi
  19. export CC="$TARGET-gcc -static-libgcc"
  20. export CXX="$TARGET-g++ -static-libgcc"
  21. exec make $*
RAW Paste Data