6

I have option subdir-objects set in configure.ac:

AM_INIT_AUTOMAKE([subdir-objects])

Is there any possibility to conditionally disable it in particular Makefiles (Makefile.am)?

Thanks.

4

1 回答 1

9

According to the list of automake options, no. What you can do instead is remove subdir-objects from the call to AM_INIT_AUTOMAKE and add it to the Makefile.am files where you actually want it. You do that by putting the line AUTOMAKE_OPTIONS = subdir-objects at the top of any relevant Makefile.am. (There's no no-subdir-objects option, apparently.)

于 2012-07-11T21:49:36.477 回答