Merge branch 'micro' into maint
[platform/upstream/automake.git] / PLANS / subdir-objects.txt
1 Summary
2 -------
3
4 We want to make the behaviour currently enabled by the 'subdir-objects'
5 the default one, and in fact the *only* one, in Automake 2.0.
6 See automake bug#13378: <http://debbugs.gnu.org/13378>.
7
8 Details
9 -------
10
11 The fact that Automake-generated Makefiles place compiled object files in
12 the current directory by default, also when the corresponding source file
13 is in a subdirectory, is basically an historical accident, due to the fact
14 that the 'subdir-objects' option had only been introduced in April 1999,
15 starting with commit 'user-dep-gen-branchpoint-56-g88b5959', and never
16 made the default (likely to avoid backwards-compatibility issues).
17
18 Since I believe the behaviour enabled by the 'subdir-objects' is the most
19 useful one, and in fact the *only* natural one, I'd like to make it the
20 only one available, simplifying the Automake implementation and APIs a
21 little in the process.
22
23 Alas, since this also means changing the default behaviour of Automake
24 ('subdir-objects' is not enabled by default, sadly), this means the
25 transition path will be less smooth than I'd like.
26
27 DONE for automake 1.13.2
28 ------------------------
29
30 The bug spotted by Nick Bowler:
31
32   <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13378#35>
33   <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13378#44>
34
35 and exposed in test case 't/ccnoco4.sh' has been fixed (see commit
36 v1.13.1-56-g34001a9).  The bug was due to the fact that Automake-generated
37 C compilation rules mistakenly passed the "-c -o" options combination
38 unconditionally (even to losing compiler) when the 'subdir-objects' was
39 used but sources were only present in the top-level directory.
40
41 DONE for automake 1.14
42 ----------------------
43
44 We give a warning in the category 'unsupported' if the 'subdir-objects'
45 option is not specified.  This should give the users enough forewarning
46 about the planned change, and give them time to update their packages
47 to the new semantic.
48
49 We also make sure to avoid the warning when it would be irrelevant, i.e.,
50 if all source files sit in "current" directory (thanks to Peter Johansson
51 for suggesting this).
52
53 For automake 2.0
54 ----------------
55
56 Make the behaviour once activated by the 'subdir-object' option mandatory.
57 With that change, we'll drop support for the "old" behaviour of having
58 object files derived from sources in a subdirectory being placed in the
59 current directory rather than in that same subdirectory.
60
61 Still keep the 'subdir-objects' option supported (as a simple no-op
62 now), to save useless churn in our user's build systems.