-if [ "${release}" = yes ]; then
- cppflags="${cppflags} -DHAVE_RELEASE"
-fi
-if [ "${optim}" = yes ]; then
- cppflags="${cppflags} ${cflags_optim} ${cflags_tuning}"
+if [ "${optim}" = size ]; then
+ cflags="${cflags} ${cflags_optim_size} ${cflags_tuning}"
+ cxxflags="${cxxflags} ${cflags_optim_size} ${cflags_tuning}"
+ objcflags="${objcflags} ${cflags_optim_size} ${cflags_tuning}"
+ if [ "${debug}" != yes -a "${gprof}" != yes -a "${cprof}" != yes ]; then
+ cflags="${cflags} ${cflags_optim_nodebug}"
+ cxxflags="${cxxflags} ${cflags_optim_nodebug}"
+ objcflags="${objcflags} ${cflags_optim_nodebug}"
+ fi
+elif [ "${optim}" = speed ]; then
+ cflags="${cflags} ${cflags_optim_speed} ${cflags_tuning}"
+ cxxflags="${cxxflags} ${cflags_optim_speed} ${cflags_tuning}"
+ objcflags="${objcflags} ${cflags_optim_speed} ${cflags_tuning}"