title: Custom command to generate object(.o) from binary file using autoconf
body: <p>We have a project (c++) and it needs to include a binary file into shared library. This is done on windows by referencing the binary file from a resource file. On Linux it can be achieved by using objcopy as shown <a href="http://www.linuxjournal.com/content/embedding-file-executable-aka-hello-world-version-5967" rel="nofollow noreferrer">here</a></p>
  
  <p>The question is how can this be automated this using autoconf/automake? There exists Makefile.am and configure.ac files. Is this going to be a manual task?</p>
  
  <p><em>(Maybe this question needs to be on the <a href="https://unix.stackexchange.com/">unix</a> stack exchange site?)</em></p>