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