768 if [ -n "${TEMP_CXXFLAGS}" ] && [ -n "$lang_cpp" ]; then |
768 if [ -n "${TEMP_CXXFLAGS}" ] && [ -n "$lang_cpp" ]; then |
769 echo "DAV_CXXFLAGS += $TEMP_CXXFLAGS" >> "$TEMP_DIR/flags.mk" |
769 echo "DAV_CXXFLAGS += $TEMP_CXXFLAGS" >> "$TEMP_DIR/flags.mk" |
770 fi |
770 fi |
771 if [ "$BUILD_TYPE" = "debug" ]; then |
771 if [ "$BUILD_TYPE" = "debug" ]; then |
772 if [ -n "$lang_c" ]; then |
772 if [ -n "$lang_c" ]; then |
773 echo 'DAV_CFLAGS += ${DEBUG_CC_FLAGS}' >> "$TEMP_DIR/flags.mk" |
773 echo 'DAV_CFLAGS += ${DEBUG_CFLAGS}' >> "$TEMP_DIR/flags.mk" |
774 fi |
774 fi |
775 if [ -n "$lang_cpp" ]; then |
775 if [ -n "$lang_cpp" ]; then |
776 echo 'DAV_CXXFLAGS += ${DEBUG_CXX_FLAGS}' >> "$TEMP_DIR/flags.mk" |
776 echo 'DAV_CXXFLAGS += ${DEBUG_CXXFLAGS}' >> "$TEMP_DIR/flags.mk" |
777 fi |
777 fi |
778 fi |
778 fi |
779 if [ "$BUILD_TYPE" = "release" ]; then |
779 if [ "$BUILD_TYPE" = "release" ]; then |
780 if [ -n "$lang_c" ]; then |
780 if [ -n "$lang_c" ]; then |
781 echo 'DAV_CFLAGS += ${RELEASE_CC_FLAGS}' >> "$TEMP_DIR/flags.mk" |
781 echo 'DAV_CFLAGS += ${RELEASE_CFLAGS}' >> "$TEMP_DIR/flags.mk" |
782 fi |
782 fi |
783 if [ -n "$lang_cpp" ]; then |
783 if [ -n "$lang_cpp" ]; then |
784 echo 'DAV_CXXFLAGS += ${RELEASE_CXX_FLAGS}' >> "$TEMP_DIR/flags.mk" |
784 echo 'DAV_CXXFLAGS += ${RELEASE_CXXFLAGS}' >> "$TEMP_DIR/flags.mk" |
785 fi |
785 fi |
786 fi |
786 fi |
787 if [ -n "${TEMP_LDFLAGS}" ]; then |
787 if [ -n "${TEMP_LDFLAGS}" ]; then |
788 echo "DAV_LDFLAGS += $TEMP_LDFLAGS" >> "$TEMP_DIR/flags.mk" |
788 echo "DAV_LDFLAGS += $TEMP_LDFLAGS" >> "$TEMP_DIR/flags.mk" |
789 fi |
789 fi |
809 if [ -n "${TEMP_CXXFLAGS}" ] && [ -n "$lang_cpp" ]; then |
809 if [ -n "${TEMP_CXXFLAGS}" ] && [ -n "$lang_cpp" ]; then |
810 echo "CXXFLAGS += $TEMP_CXXFLAGS" >> "$TEMP_DIR/flags.mk" |
810 echo "CXXFLAGS += $TEMP_CXXFLAGS" >> "$TEMP_DIR/flags.mk" |
811 fi |
811 fi |
812 if [ "$BUILD_TYPE" = "debug" ]; then |
812 if [ "$BUILD_TYPE" = "debug" ]; then |
813 if [ -n "$lang_c" ]; then |
813 if [ -n "$lang_c" ]; then |
814 echo 'CFLAGS += ${DEBUG_CC_FLAGS}' >> "$TEMP_DIR/flags.mk" |
814 echo 'CFLAGS += ${DEBUG_CFLAGS}' >> "$TEMP_DIR/flags.mk" |
815 fi |
815 fi |
816 if [ -n "$lang_cpp" ]; then |
816 if [ -n "$lang_cpp" ]; then |
817 echo 'CXXFLAGS += ${DEBUG_CXX_FLAGS}' >> "$TEMP_DIR/flags.mk" |
817 echo 'CXXFLAGS += ${DEBUG_CXXFLAGS}' >> "$TEMP_DIR/flags.mk" |
818 fi |
818 fi |
819 fi |
819 fi |
820 if [ "$BUILD_TYPE" = "release" ]; then |
820 if [ "$BUILD_TYPE" = "release" ]; then |
821 if [ -n "$lang_c" ]; then |
821 if [ -n "$lang_c" ]; then |
822 echo 'CFLAGS += ${RELEASE_CC_FLAGS}' >> "$TEMP_DIR/flags.mk" |
822 echo 'CFLAGS += ${RELEASE_CFLAGS}' >> "$TEMP_DIR/flags.mk" |
823 fi |
823 fi |
824 if [ -n "$lang_cpp" ]; then |
824 if [ -n "$lang_cpp" ]; then |
825 echo 'CXXFLAGS += ${RELEASE_CXX_FLAGS}' >> "$TEMP_DIR/flags.mk" |
825 echo 'CXXFLAGS += ${RELEASE_CXXFLAGS}' >> "$TEMP_DIR/flags.mk" |
826 fi |
826 fi |
827 fi |
827 fi |
828 if [ -n "${TEMP_LDFLAGS}" ]; then |
828 if [ -n "${TEMP_LDFLAGS}" ]; then |
829 echo "LDFLAGS += $TEMP_LDFLAGS" >> "$TEMP_DIR/flags.mk" |
829 echo "LDFLAGS += $TEMP_LDFLAGS" >> "$TEMP_DIR/flags.mk" |
830 fi |
830 fi |