Closed tkralphs closed 4 years ago
I usually put the subdir-objects into the Makefile.am where necessary:
AUTOMAKE_OPTIONS = foreign subdir-objects
Ah, OK, I missed that you can do that. Thanks!
I'll still give it a try to add this to AM_INIT_AUTOMAKE.
@tkralphs You can (and probably should) leave out the setting of AUTOMAKE_OPTIONS
in Makefile.am. The current AUTOMAKE_OPTIONS = foreign
seems to have overwritten AM_INIT_AUTOMAKE setting from coin.m4. At least the -Wall
didn't seem to have been applied.
Is there a reason not to allow source to be in subdirectories? I'm in the process of converting SYMPHONY to the new build system. Currently, SYMPHONY has a multi-level structure in its
src
directory and this is not supported inmaster
. Changing the call toAM_INIT_AUTOMAKE
tofixes the issue. Is there any downside to this?