.. Makefile.am:4: warning: source file '$(srcdir)/test.c' is in a subdirectory, .. Makefile.am:4: but option 'subdir-objects' is disabledThis warning is not fatal. What it means roughly: the generated object file will not be placed inside the same directory as the source code. The full explanation is at https://www.gnu.org/software/automake/manual/html_node/List-of-Automake-options.html#List-of-Automake-options (scroll-down to subdir-objects option). This is the important excerpt:
subdir-objectsFixing this problem is not hard, you just need to add the subdir-objects option to Makefile.am. Below is an example taken from Makefile.am in one of my project. I placed the statement as the first entry in Makefile.am.
If this option is specified, then objects are placed into the subdirectory of the build directory corresponding to the subdirectory of the source file. For instance, if the source file is subdir/file.cxx, then the output file would besubdir/file.o.
AUTOMAKE_OPTIONS = subdir-objects ### ... ### Other statements ### ...Hopefully, this helps out those experiencing this problem.
Post a Comment
No comments:
Post a Comment