1 | # $Id: Makefile.kmk 34492 2010-11-29 23:57:12Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top-level makefile for src/VBox.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2010 Oracle Corporation
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 |
|
---|
18 | SUB_DEPTH = ../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | ifdef VBOX_SINGLE_MAKEFILE
|
---|
22 |
|
---|
23 | ifdef VBOX_ONLY_ADDITIONS
|
---|
24 | include $(PATH_SUB_CURRENT)/Runtime/Makefile.kmk
|
---|
25 | ifdef VBOX_WITH_CROGL
|
---|
26 | if1of ($(KBUILD_TARGET),win linux solaris freebsd)
|
---|
27 | include $(PATH_SUB_CURRENT)/GuestHost/Makefile.kmk
|
---|
28 | endif
|
---|
29 | endif
|
---|
30 | include $(PATH_SUB_CURRENT)/Additions/Makefile.kmk
|
---|
31 |
|
---|
32 | else ifdef VBOX_ONLY_DOCS
|
---|
33 | include $(PATH_SUB_CURRENT)/Runtime/Makefile.kmk
|
---|
34 | include $(PATH_SUB_CURRENT)/HostDrivers/Makefile.kmk
|
---|
35 | include $(PATH_SUB_CURRENT)/Frontends/Makefile.kmk
|
---|
36 |
|
---|
37 | else ifdef VBOX_ONLY_EXTPACKS
|
---|
38 | include $(PATH_SUB_CURRENT)/Runtime/Makefile.kmk
|
---|
39 | include $(PATH_SUB_CURRENT)/Devices/Makefile.kmk
|
---|
40 | include $(PATH_SUB_CURRENT)/HostDrivers/Makefile.kmk
|
---|
41 | include $(PATH_SUB_CURRENT)/ExtPacks/Makefile.kmk
|
---|
42 | ifdef VBOX_WITH_VRDP
|
---|
43 | include $(PATH_SUB_CURRENT)/RDP/Makefile.kmk
|
---|
44 | endif
|
---|
45 | include $(PATH_SUB_CURRENT)/VMM/Makefile.kmk
|
---|
46 | include $(PATH_SUB_CURRENT)/Disassembler/Makefile.kmk
|
---|
47 |
|
---|
48 | else ifdef VBOX_ONLY_SDK
|
---|
49 | include $(PATH_SUB_CURRENT)/Main/Makefile.kmk
|
---|
50 | ifdef VBOX_WITH_VRDP
|
---|
51 | include $(PATH_SUB_CURRENT)/RDP/Makefile.kmk
|
---|
52 | endif
|
---|
53 | include $(PATH_SUB_CURRENT)/Installer/Makefile.kmk
|
---|
54 | include $(PATH_SUB_CURRENT)/Frontends/VBoxShell/Makefile.kmk
|
---|
55 |
|
---|
56 | else ifdef VBOX_ONLY_TESTSUITE
|
---|
57 | include $(PATH_SUB_CURRENT)/Runtime/Makefile.kmk
|
---|
58 | include $(PATH_SUB_CURRENT)/HostDrivers/Makefile.kmk
|
---|
59 | include $(PATH_SUB_CURRENT)/Additions/Makefile.kmk
|
---|
60 | include $(PATH_SUB_CURRENT)/Testsuite/Makefile.kmk
|
---|
61 |
|
---|
62 | else
|
---|
63 | ifdef VBOX_WITH_MAIN
|
---|
64 | include $(PATH_SUB_CURRENT)/Main/Makefile.kmk # Do this one first because of soap.
|
---|
65 | endif
|
---|
66 | include $(PATH_SUB_CURRENT)/Runtime/Makefile.kmk
|
---|
67 | include $(PATH_SUB_CURRENT)/Disassembler/Makefile.kmk
|
---|
68 | include $(PATH_SUB_CURRENT)/Storage/Makefile.kmk
|
---|
69 | if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
|
---|
70 | include $(PATH_SUB_CURRENT)/VMM/Makefile.kmk
|
---|
71 | include $(PATH_SUB_CURRENT)/Devices/Makefile.kmk
|
---|
72 | include $(PATH_SUB_CURRENT)/HostDrivers/Makefile.kmk
|
---|
73 | include $(PATH_SUB_CURRENT)/HostServices/Makefile.kmk
|
---|
74 | endif
|
---|
75 | ifdef VBOX_WITH_DEBUGGER
|
---|
76 | include $(PATH_SUB_CURRENT)/Debugger/Makefile.kmk
|
---|
77 | endif
|
---|
78 | include $(PATH_SUB_CURRENT)/Frontends/Makefile.kmk
|
---|
79 | ifdef VBOX_WITH_VRDP
|
---|
80 | include $(PATH_SUB_CURRENT)/RDP/Makefile.kmk
|
---|
81 | endif
|
---|
82 | if defined(VBOX_WITH_CROGL) || defined(VBOX_WITH_HGSMI) || defined(VBOX_WITH_HGCM)
|
---|
83 | include $(PATH_SUB_CURRENT)/GuestHost/Makefile.kmk
|
---|
84 | endif
|
---|
85 | ifdef VBOX_WITH_ADDITIONS
|
---|
86 | include $(PATH_SUB_CURRENT)/Additions/Makefile.kmk
|
---|
87 | endif
|
---|
88 | ifdef VBOX_WITH_TESTSUITE
|
---|
89 | include $(PATH_SUB_CURRENT)/Testsuite/Makefile.kmk
|
---|
90 | endif
|
---|
91 | if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
|
---|
92 | include $(PATH_SUB_CURRENT)/NetworkServices/Makefile.kmk
|
---|
93 | endif
|
---|
94 | ifndef VBOX_OSE
|
---|
95 | include $(PATH_SUB_CURRENT)/ExtPacks/Makefile.kmk
|
---|
96 | endif
|
---|
97 | ifdef VBOX_WITH_INSTALLER
|
---|
98 | include $(PATH_SUB_CURRENT)/Installer/Makefile.kmk # Keep this last.
|
---|
99 | endif
|
---|
100 | endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS
|
---|
101 |
|
---|
102 | else # !VBOX_SINGLE_MAKEFILE
|
---|
103 |
|
---|
104 | ifdef VBOX_ONLY_ADDITIONS
|
---|
105 | SUBDIRS = Runtime
|
---|
106 | ifdef VBOX_WITH_CROGL
|
---|
107 | SUBDIRS += GuestHost
|
---|
108 | endif
|
---|
109 | SUBDIRS += Additions
|
---|
110 |
|
---|
111 | else ifdef VBOX_ONLY_DOCS
|
---|
112 | SUBDIRS = \
|
---|
113 | Runtime \
|
---|
114 | Frontends \
|
---|
115 | HostDrivers
|
---|
116 |
|
---|
117 | else ifdef VBOX_ONLY_SDK
|
---|
118 | SUBDIRS = \
|
---|
119 | Main \
|
---|
120 | RDP \
|
---|
121 | Installer
|
---|
122 |
|
---|
123 | else # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS
|
---|
124 | SUBDIRS_BLDPROGS = Devices Main
|
---|
125 |
|
---|
126 | SUBDIRS = \
|
---|
127 | Runtime \
|
---|
128 | HostDrivers \
|
---|
129 | VMM \
|
---|
130 | Devices \
|
---|
131 | Disassembler \
|
---|
132 | Storage
|
---|
133 |
|
---|
134 | ifdef VBOX_WITH_CROGL
|
---|
135 | SUBDIRS += GuestHost
|
---|
136 | endif
|
---|
137 |
|
---|
138 | SUBDIRS += HostServices
|
---|
139 |
|
---|
140 | ifdef VBOX_WITH_DEBUGGER
|
---|
141 | SUBDIRS += Debugger
|
---|
142 | endif
|
---|
143 |
|
---|
144 | ifdef VBOX_WITH_MAIN
|
---|
145 | SUBDIRS += Main
|
---|
146 | endif
|
---|
147 |
|
---|
148 | ifdef VBOX_WITH_VRDP
|
---|
149 | SUBDIRS += RDP
|
---|
150 | endif
|
---|
151 |
|
---|
152 | ifdef VBOX_WITH_ADDITIONS
|
---|
153 | SUBDIRS += Additions
|
---|
154 | endif
|
---|
155 |
|
---|
156 | ifdef VBOX_WITH_TESTSUITE
|
---|
157 | SUBDIRS += Testsuite
|
---|
158 | endif
|
---|
159 |
|
---|
160 | SUBDIRS += \
|
---|
161 | Frontends \
|
---|
162 | NetworkServices
|
---|
163 |
|
---|
164 | ifndef VBOX_OSE
|
---|
165 | SUBDIRS += ExtPacks
|
---|
166 | endif
|
---|
167 |
|
---|
168 | # This must be the last one.
|
---|
169 | ifdef VBOX_WITH_INSTALLER
|
---|
170 | SUBDIRS += Installer
|
---|
171 | endif
|
---|
172 | endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS
|
---|
173 |
|
---|
174 | endif # !VBOX_SINGLE_MAKEFILE
|
---|
175 |
|
---|
176 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
177 |
|
---|