10.09.2016 Views

Hacking_and_Penetration_Testing_with_Low_Power_Devices

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Adding tools the hard way<br />

83<br />

FIGURE 4.16<br />

Creating a new remote debug configuration in Eclipse.<br />

# is there already a Makefile<br />

if [ -e "Makefile" ] ; then<br />

if [ $localBuild -eq 1 ] ; then<br />

if ( 'make' ) ; then<br />

( 'make install' ) jj echo "Failed to install $fname "<br />

else<br />

echo "Failed to build $fname"<br />

fi<br />

else<br />

( '${cross_make_env} make' ) jj echo "Failed to build $fname "<br />

fi<br />

elif [ -e "configure" ] ; then<br />

if [ $localBuild -eq 1 ] ; then<br />

if ( 'configure' ) ; then<br />

# created a Makefile hopefully now call this function again<br />

build_from_current_directory<br />

else<br />

echo "configure failed for $fname"<br />

fi<br />

else<br />

if ( 'configure ${cross_configure_flags}' ) ; then<br />

build_from_current_directory

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!