bmake45 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #!/bin/sh
  2. cd ..
  3. #may be
  4. #-Waggregate-return -Winline
  5. #for feature
  6. #-Wstrict-overflow=4 -Wfloat-equal
  7. #-Wunsafe-loop-optimizations
  8. #-Woverloaded-virtual
  9. #-Wformat=2
  10. #-Wswitch-enum
  11. #for better code
  12. # -Weffc++
  13. #need fix: -Wold-style-cast -Wconversion
  14. #prof -pg
  15. dir=`pwd`
  16. export CC=gcc-4.5
  17. export CXX=g++-4.5
  18. export LANG=C
  19. export CXXFLAGS="-Wunreachable-code -Wmissing-field-initializers \
  20. -Wabi -Wdisabled-optimization -Wuninitialized \
  21. -Wvolatile-register-var -Winvalid-pch -Wredundant-decls \
  22. -Wnormalized=nfkc -Wmissing-format-attribute -Wmissing-noreturn \
  23. -Wswitch-default -Wsign-promo -Waddress -Wmissing-declarations \
  24. -Wctor-dtor-privacy -Wstrict-null-sentinel \
  25. -Wunused-parameter -Wlogical-op \
  26. -Wempty-body -Wsign-compare -Wclobbered -Wcast-align -Wcast-qual \
  27. -Wtype-limits -Wpointer-arith -Wundef -Wmissing-include-dirs \
  28. -Wignored-qualifiers -Winit-self -pedantic -Wall -ggdb3 -O2 -pipe \
  29. -Wpacked -Wshadow -Wunused -Wsynth \
  30. -Wbuiltin-macro-redefined -Wctor-dtor-privacy -Wdeprecated -Wextra \
  31. -Wendif-labels -Wformat=1 -Wimport -Wnon-virtual-dtor -Wpsabi \
  32. -Wsign-promo -Wwrite-strings -D_FORTIFY_SOURCE=2 \
  33. -Wno-attributes"
  34. autoreconf -i
  35. ./configure --prefix=$dir/run \
  36. --datadir=$dir/run/share/games \
  37. --bindir=$dir/run/bin \
  38. --mandir=$dir/run/share/man \
  39. --enable-memdebug=yes \
  40. --enable-tcmalloc=no \
  41. --enable-googleprofiler=no
  42. #--enable-applebuild=yes
  43. #--without-librt
  44. cd po
  45. #make -j16 update-po 2>../make1.log
  46. make -j16 update-gmo 2>../build/make1.log
  47. cd ..
  48. make -j16 2>build/make2.log