Conditional Subdir Objects

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

 AM_INIT_AUTOMAKE([subdir-objects]) 

Is it possible to conditionally disable it, in particular, Makefiles ( Makefile.am )?

Thanks.

+4
source share
1 answer

According to the parameter list automake , no. Instead, you can remove the subdir-objects from the call to AM_INIT_AUTOMAKE and add it to the Makefile.am files where you really want it. You do this by placing the line AUTOMAKE_OPTIONS = subdir-objects at the top of any relevant Makefile.am . (There is no-subdir-objects option, apparently.)

+6
source

All Articles