finalcut/build.sh

29 lines
1.5 KiB
Bash
Raw Normal View History

2015-05-23 13:35:12 +02:00
#!/bin/sh
2015-08-22 18:53:52 +02:00
PREFIX="/usr"
2015-08-10 00:56:32 +02:00
2015-05-23 13:35:12 +02:00
case "$1" in
"--help"|"help")
2015-09-24 00:41:43 +02:00
echo "Usage: $0 {help|debug|fulldebug|profile|gcov|release}"
2015-05-23 13:35:12 +02:00
exit 1
;;
"--debug"|"debug")
2015-08-10 00:56:32 +02:00
./configure --prefix="$PREFIX" CPPFLAGS="-DDEBUG" CXXFLAGS="-g -O0 -DDEBUG -W -Wall -pedantic"
2015-05-23 13:35:12 +02:00
;;
2015-09-22 04:18:20 +02:00
"--fulldebug"|"fulldebug")
./configure --prefix="$PREFIX" CPPFLAGS="-DDEBUG" CXXFLAGS="-g -O0 -DDEBUG -W -Wall -Weffc++ -pedantic -pedantic-errors -Wextra -Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimport -Winit-self -Winvalid-pch -Wlong-long -Wmissing-braces -Wmissing-field-initializers -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wpacked -Wpadded -Wparentheses -Wpointer-arith -Wredundant-decls -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wstack-protector -Wstrict-aliasing -Wstrict-aliasing=2 -Wswitch -Wswitch-enum -Wtrigraphs -Wuninitialized -Wunknown-pragmas -Wunreachable-code -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -Wvariadic-macros -Wvolatile-register-var -Wwrite-strings -Wsign-promo -Woverloaded-virtual -Wstrict-null-sentinel -fext-numeric-literals -Wreorder -Wnoexcept -Wnarrowing -Wliteral-suffix -Wctor-dtor-privacy"
;;
2015-05-23 13:35:12 +02:00
"--profile"|"profile")
2015-08-10 00:56:32 +02:00
./configure --prefix="$PREFIX" CPPFLAGS="-DDEBUG" CXXFLAGS="-pg -O0 -DDEBUG -W -Wall -pedantic"
2015-05-23 13:35:12 +02:00
;;
2015-08-10 21:50:27 +02:00
"--gcov"|"gcov")
./configure --prefix="$PREFIX" CXXFLAGS="-fprofile-arcs -ftest-coverage"
;;
2015-05-23 13:35:12 +02:00
"--release"|"release"|*)
2015-08-10 00:56:32 +02:00
./configure --prefix="$PREFIX"
2015-05-23 13:35:12 +02:00
;;
esac
2015-09-30 22:39:02 +02:00
make V=1 -j10
2015-05-23 13:35:12 +02:00
# make install