Automake subdir-objects is disabled

I get the error below with automake. I know that you can put AUTOMAKE_OPTIONS = subdir-objects "at the top of Makefile.am. But how can I set this behavior for all files, so I don’t need to do this in each case?

Makefile.am:454: warning: source file 'libs/esl/src/esl_threadmutex.c' is in a subdirectory,
          Makefile.am:454: but option 'subdir-objects' is disabled
          Makefile.am:454: warning: source file 'libs/esl/ivrd.c' is in a subdirectory,
          Makefile.am:454: but option 'subdir-objects' is disabled
          Makefile.am:454: warning: source file 'libs/esl/src/esl_json.c' is in a subdirectory,
          Makefile.am:454: but option 'subdir-objects' is disabled
          Makefile.am:454: warning: source file 'libs/esl/src/esl_buffer.c' is in a subdirectory,
          Makefile.am:454: but option 'subdir-objects' is disabled
          tests/unit/unit.mk:6: warning: source file 'tests/unit/switch_event.c' is in a subdirectory,
          tests/unit/unit.mk:6: but option 'subdir-objects' is disabled
          Makefile.am:854:   'tests/unit/unit.mk' included from here
          tests/unit/unit.mk:13: warning: source file 'tests/unit/switch_hash.c' is in a subdirectory,
          tests/unit/unit.mk:13: but option 'subdir-objects' is disabled
          Makefile.am:854:   'tests/unit/unit.mk' included from here
          Makefile.am:441: warning: source file 'src/tone2wav.c' is in a subdirectory,
          Makefile.am:441: but option 'subdir-objects' is disabled
          Makefile.am: installing 'build/config/depcomp'
+8
source share
1 answer

This is not what you add “on a case-by-case basis”, as it AUTOMAKE_OPTIONSapplies to the entire project. It is also, presumably, the only way to use it in the future, thus warning; at the moment this is consent.

configure.ac AM_INIT_AUTOMAKE, . Autotools Mythbuster ( : ), automake, .

+5

Source: https://habr.com/ru/post/1649919/


All Articles