make it compile
[linux-2.6.git] / Makefile.config
1 # Make rules for configuration files.
2 #
3 # $Id$
4
5 CFG             = kernel-$(VERSION)
6
7 CONFIGFILES     = \
8         $(CFG)-i686.config $(CFG)-i686-debug.config \
9         $(CFG)-i686-PAE.config $(CFG)-i686-PAEdebug.config \
10         $(CFG)-x86_64.config $(CFG)-x86_64-debug.config \
11         $(CFG)-s390x.config $(CFG)-arm.config \
12         $(CFG)-ppc.config $(CFG)-ppc-smp.config \
13         $(CFG)-sparc64.config  \
14         $(CFG)-ppc64.config $(CFG)-ppc64-debug.config \
15         $(CFG)-ia64.config
16
17 PLATFORMS       = x86 x86_64 powerpc powerpc32 powerpc64 s390x ia64 sparc64
18 TEMPFILES       = $(addprefix temp-, $(addsuffix -generic, $(PLATFORMS)))
19
20 configs: $(CONFIGFILES)
21         @rm -f kernel-*-config
22         @rm -f $(TEMPFILES)
23         @rm -f temp-generic temp-*-generic temp-*-generic-tmp
24
25 # Augment the clean target to clean up our own cruft
26 clean ::
27         @rm -fv $(CONFIGFILES) $(TEMPFILES) temp-generic kernel-$(VERSION)*config
28
29 temp-generic: config-generic
30         cat config-generic config-nodebug > temp-generic
31
32 temp-debug-generic: config-generic
33         cat config-generic config-debug > temp-debug-generic
34
35 temp-x86-generic: config-x86-generic temp-generic
36         perl merge.pl $^  > $@
37
38 temp-x86-debug-generic: config-x86-generic temp-debug-generic
39         perl merge.pl $^  > $@
40
41 temp-x86_64-generic: config-x86_64-generic temp-generic
42         perl merge.pl $^  > $@
43
44 temp-x86_64-debug-generic: config-x86_64-generic temp-debug-generic
45         perl merge.pl $^  > $@
46
47 temp-sparc64-generic: config-sparc64-generic temp-generic
48         perl merge.pl $^  > $@
49
50 temp-powerpc-generic: config-powerpc-generic temp-generic
51         perl merge.pl $^  > $@
52
53 temp-powerpc-debug-generic: config-powerpc-generic temp-debug-generic
54         perl merge.pl $^  > $@
55
56 temp-powerpc32-generic: config-powerpc32-generic temp-powerpc-generic
57         perl merge.pl $^  > $@
58
59 temp-s390-generic: config-s390x temp-generic
60         perl merge.pl $^ > $@
61
62 temp-ia64-generic: config-ia64-generic temp-generic
63         perl merge.pl $^ > $@
64
65 kernel-$(VERSION)-i686-PAE.config: config-i686-PAE temp-x86-generic
66         perl merge.pl $^ i386 > $@
67
68 kernel-$(VERSION)-i686-PAEdebug.config: config-i686-PAE temp-x86-debug-generic
69         perl merge.pl $^ i386 > $@
70
71 kernel-$(VERSION)-i686.config: config-vserver temp-x86-generic
72         perl merge.pl $^ i386 > $@
73
74 kernel-$(VERSION)-i686-debug.config: config-vserver temp-x86-debug-generic
75         perl merge.pl $^ i386 > $@
76
77 kernel-$(VERSION)-x86_64.config: config-vserver temp-x86_64-generic
78         perl merge.pl $^ x86_64 > $@
79
80 kernel-$(VERSION)-x86_64-debug.config: config-vserver temp-x86_64-debug-generic
81         perl merge.pl $^ x86_64 > $@
82
83 kernel-$(VERSION)-sparc64.config: /dev/null temp-sparc64-generic
84         perl merge.pl $^ sparc64 > $@
85
86 kernel-$(VERSION)-ppc64.config: config-powerpc64 temp-powerpc-generic
87         perl merge.pl $^ powerpc > $@
88
89 kernel-$(VERSION)-ppc64-debug.config: config-powerpc64 temp-powerpc-debug-generic
90         perl merge.pl $^ powerpc > $@
91
92 kernel-$(VERSION)-s390x.config: config-s390x temp-s390-generic
93         perl merge.pl $^ s390 > $@
94
95 kernel-$(VERSION)-arm.config: config-arm temp-generic
96         perl merge.pl $^ arm > $@
97
98 kernel-$(VERSION)-ppc.config: /dev/null temp-powerpc32-generic
99         perl merge.pl $^ powerpc > $@
100
101 kernel-$(VERSION)-ppc-smp.config: config-powerpc32-smp temp-powerpc32-generic
102         perl merge.pl $^ powerpc > $@
103
104 kernel-$(VERSION)-ia64.config: /dev/null temp-ia64-generic
105         perl merge.pl $^ ia64 > $@