bmake44 1.2 KB

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