use the subdir-objects option

This avoids clutter in the top-level dir, and also fixes this automake
warning: warning: source file 'twin_demos/twin_calc.c' is in a subdirectory, but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled.  For now, the corresponding output
automake: object file(s) will be placed in the top-level directory.  However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.

Signed-off-by: Antonio Ospite <>
Signed-off-by: Geoff Levand <>
1 file changed