Fix out-of-tree build.
authorUwe Hermann <uwe@hermann-uwe.de>
Sat, 8 Jan 2011 02:32:25 +0000 (03:32 +0100)
committerUwe Hermann <uwe@hermann-uwe.de>
Sat, 8 Jan 2011 02:32:25 +0000 (03:32 +0100)
commit1010d1fffceecec508ed8b6b1d5aa062f02fbe8d
tree6ccfeabe5f5c0f6e19bb92ddbeab0531cd539d36
parentb36ded6327e61754fedadc7fc0b1fb6e22f95e28
Fix out-of-tree build.

Use libtool "noinst" local helper libs and use one Makefile.am per
subdir, which is the usual/preferred method. These helper libraries are
purely local and will not be installed.

This also fixes out-of-tree builds of sigrok, i.e. building in a
directory other than the sigrok source directory, e.g.

 $ cd /home/user
 $ git clone ...sigrok
 $ cd sigrok
 $ ./autogen.sh
 $ mkdir /tmp/foo
 $ cd /tmp/foo
 $ /home/user/sigrok/configure
 $ make
 $ make install

This will place all build results (.o files, .la files, etc) in the
local build directory (/tmp/foo) instead of the source directory
(/home/user/sigrok in this example). The installation directory is
selected via the --prefix configure option (/usr/local per default).
configure.ac
libsigrok/Makefile.am
libsigrok/hardware/Makefile.am [new file with mode: 0644]
libsigrok/hardware/asix-sigma/Makefile.am [new file with mode: 0644]
libsigrok/hardware/common/Makefile.am [new file with mode: 0644]
libsigrok/hardware/demo/Makefile.am [new file with mode: 0644]
libsigrok/hardware/openbench-logic-sniffer/Makefile.am [new file with mode: 0644]
libsigrok/hardware/saleae-logic/Makefile.am [new file with mode: 0644]
libsigrok/hardware/zeroplus-logic-cube/Makefile.am [new file with mode: 0644]
libsigrok/input/Makefile.am [new file with mode: 0644]
libsigrok/output/Makefile.am [new file with mode: 0644]