609 fi |
623 fi |
610 if [[ ! -z ${LDFLAGS} ]]; then |
624 if [[ ! -z ${LDFLAGS} ]]; then |
611 echo "DAV_LDFLAGS += $LDFLAGS" >> $TEMP_DIR/config.mk |
625 echo "DAV_LDFLAGS += $LDFLAGS" >> $TEMP_DIR/config.mk |
612 fi |
626 fi |
613 |
627 |
|
628 # Target |
|
629 CFLAGS= |
|
630 LDFLAGS= |
|
631 CXXFLAGS= |
|
632 |
|
633 dependency_deptest |
|
634 if [ $? -ne 0 ]; then |
|
635 DEPENDENCIES_FAILED+="deptest " |
|
636 ERROR=1 |
|
637 fi |
|
638 |
|
639 |
|
640 echo >> $TEMP_DIR/config.mk |
|
641 if [[ ! -z ${CFLAGS} ]]; then |
|
642 echo "CFLAGS += $CFLAGS" >> $TEMP_DIR/config.mk |
|
643 fi |
|
644 if [[ ! -z ${CXXFLAGS} ]]; then |
|
645 echo "CXXFLAGS += $CXXFLAGS" >> $TEMP_DIR/config.mk |
|
646 fi |
|
647 if [[ ! -z ${LDFLAGS} ]]; then |
|
648 echo "LDFLAGS += $LDFLAGS" >> $TEMP_DIR/config.mk |
|
649 fi |
|
650 |
614 if [ $ERROR -ne 0 ]; then |
651 if [ $ERROR -ne 0 ]; then |
615 echo |
652 echo |
616 echo "Error: Unresolved dependencies" |
653 echo "Error: Unresolved dependencies" |
617 echo $DEPENCIES_FAILED |
654 echo $DEPENCIES_FAILED |
618 rm -Rf $TEMP_DIR |
655 rm -Rf $TEMP_DIR |