1 | # $Id: Makefile.kmk 33377 2010-10-24 13:19:45Z 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_TESTSUITE
|
---|
33 | include $(PATH_SUB_CURRENT)/Runtime/Makefile.kmk
|
---|
34 | include $(PATH_SUB_CURRENT)/HostDrivers/Makefile.kmk
|
---|
35 | include $(PATH_SUB_CURRENT)/Additions/Makefile.kmk
|
---|
36 | include $(PATH_SUB_CURRENT)/Testsuite/Makefile.kmk
|
---|
37 |
|
---|
38 | else ifdef VBOX_ONLY_DOCS
|
---|
39 | include $(PATH_SUB_CURRENT)/Runtime/Makefile.kmk
|
---|
40 | include $(PATH_SUB_CURRENT)/HostDrivers/Makefile.kmk
|
---|
41 | include $(PATH_SUB_CURRENT)/Frontends/Makefile.kmk
|
---|
42 |
|
---|
43 | else ifdef VBOX_ONLY_SDK
|
---|
44 | include $(PATH_SUB_CURRENT)/Main/Makefile.kmk
|
---|
45 | ifdef VBOX_WITH_VRDP
|
---|
46 | include $(PATH_SUB_CURRENT)/RDP/Makefile.kmk
|
---|
47 | endif
|
---|
48 | include $(PATH_SUB_CURRENT)/Installer/Makefile.kmk
|
---|
49 | include $(PATH_SUB_CURRENT)/Frontends/VBoxShell/Makefile.kmk
|
---|
50 |
|
---|
51 | else
|
---|
52 | ifdef VBOX_WITH_MAIN
|
---|
53 | include $(PATH_SUB_CURRENT)/Main/Makefile.kmk # Do this one first because of soap.
|
---|
54 | endif
|
---|
55 | include $(PATH_SUB_CURRENT)/Runtime/Makefile.kmk
|
---|
56 | include $(PATH_SUB_CURRENT)/Disassembler/Makefile.kmk
|
---|
57 | if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
|
---|
58 | include $(PATH_SUB_CURRENT)/VMM/Makefile.kmk
|
---|
59 | include $(PATH_SUB_CURRENT)/Devices/Makefile.kmk
|
---|
60 | include $(PATH_SUB_CURRENT)/HostDrivers/Makefile.kmk
|
---|
61 | include $(PATH_SUB_CURRENT)/HostServices/Makefile.kmk
|
---|
62 | endif
|
---|
63 | ifdef VBOX_WITH_DEBUGGER
|
---|
64 | include $(PATH_SUB_CURRENT)/Debugger/Makefile.kmk
|
---|
65 | endif
|
---|
66 | include $(PATH_SUB_CURRENT)/Frontends/Makefile.kmk
|
---|
67 | ifdef VBOX_WITH_VRDP
|
---|
68 | include $(PATH_SUB_CURRENT)/RDP/Makefile.kmk
|
---|
69 | endif
|
---|
70 | if defined(VBOX_WITH_CROGL) || defined(VBOX_WITH_HGSMI) || defined(VBOX_WITH_HGCM)
|
---|
71 | include $(PATH_SUB_CURRENT)/GuestHost/Makefile.kmk
|
---|
72 | endif
|
---|
73 | ifdef VBOX_WITH_ADDITIONS
|
---|
74 | include $(PATH_SUB_CURRENT)/Additions/Makefile.kmk
|
---|
75 | endif
|
---|
76 | ifdef VBOX_WITH_TESTSUITE
|
---|
77 | include $(PATH_SUB_CURRENT)/TestSuite/Makefile.kmk
|
---|
78 | endif
|
---|
79 | if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
|
---|
80 | include $(PATH_SUB_CURRENT)/NetworkServices/Makefile.kmk
|
---|
81 | endif
|
---|
82 | ifdef VBOX_WITH_INSTALLER
|
---|
83 | include $(PATH_SUB_CURRENT)/Installer/Makefile.kmk # Keep this last.
|
---|
84 | endif
|
---|
85 | endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS
|
---|
86 |
|
---|
87 | else # !VBOX_SINGLE_MAKEFILE
|
---|
88 |
|
---|
89 | ifdef VBOX_ONLY_ADDITIONS
|
---|
90 | SUBDIRS = Runtime
|
---|
91 | ifdef VBOX_WITH_CROGL
|
---|
92 | SUBDIRS += GuestHost
|
---|
93 | endif
|
---|
94 | SUBDIRS += Additions
|
---|
95 |
|
---|
96 | else ifdef VBOX_ONLY_DOCS
|
---|
97 | SUBDIRS = \
|
---|
98 | Runtime \
|
---|
99 | Frontends \
|
---|
100 | HostDrivers
|
---|
101 |
|
---|
102 | else ifdef VBOX_ONLY_SDK
|
---|
103 | SUBDIRS = \
|
---|
104 | Main \
|
---|
105 | RDP \
|
---|
106 | Installer
|
---|
107 |
|
---|
108 | else # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS
|
---|
109 | SUBDIRS_BLDPROGS = Devices Main
|
---|
110 |
|
---|
111 | SUBDIRS = \
|
---|
112 | Runtime \
|
---|
113 | HostDrivers \
|
---|
114 | VMM \
|
---|
115 | Devices \
|
---|
116 | Disassembler
|
---|
117 |
|
---|
118 | ifdef VBOX_WITH_CROGL
|
---|
119 | SUBDIRS += GuestHost
|
---|
120 | endif
|
---|
121 |
|
---|
122 | SUBDIRS += HostServices
|
---|
123 |
|
---|
124 | ifdef VBOX_WITH_DEBUGGER
|
---|
125 | SUBDIRS += Debugger
|
---|
126 | endif
|
---|
127 |
|
---|
128 | ifdef VBOX_WITH_MAIN
|
---|
129 | SUBDIRS += Main
|
---|
130 | endif
|
---|
131 |
|
---|
132 | ifdef VBOX_WITH_VRDP
|
---|
133 | SUBDIRS += RDP
|
---|
134 | endif
|
---|
135 |
|
---|
136 | ifdef VBOX_WITH_ADDITIONS
|
---|
137 | SUBDIRS += Additions
|
---|
138 | endif
|
---|
139 |
|
---|
140 | ifdef VBOX_WITH_TESTSUITE
|
---|
141 | SUBDIRS += Testsuite
|
---|
142 | endif
|
---|
143 |
|
---|
144 | SUBDIRS += \
|
---|
145 | Frontends \
|
---|
146 | NetworkServices
|
---|
147 |
|
---|
148 |
|
---|
149 | # This must be the last one.
|
---|
150 | ifdef VBOX_WITH_INSTALLER
|
---|
151 | SUBDIRS += Installer
|
---|
152 | endif
|
---|
153 | endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS
|
---|
154 |
|
---|
155 | endif # !VBOX_SINGLE_MAKEFILE
|
---|
156 |
|
---|
157 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
158 |
|
---|