VirtualBox

source: vbox/trunk/src/VBox/Makefile.kmk@ 33914

Last change on this file since 33914 was 33581, checked in by vboxsync, 14 years ago

Storage: Another fix

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.9 KB
Line 
1# $Id: Makefile.kmk 33581 2010-10-28 17:42:17Z 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
18SUB_DEPTH = ../..
19include $(KBUILD_PATH)/subheader.kmk
20
21ifdef VBOX_SINGLE_MAKEFILE
22
23ifdef 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
32else 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
38else 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
43else 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
51else
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 include $(PATH_SUB_CURRENT)/Storage/Makefile.kmk
58 if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
59 include $(PATH_SUB_CURRENT)/VMM/Makefile.kmk
60 include $(PATH_SUB_CURRENT)/Devices/Makefile.kmk
61 include $(PATH_SUB_CURRENT)/HostDrivers/Makefile.kmk
62 include $(PATH_SUB_CURRENT)/HostServices/Makefile.kmk
63 endif
64 ifdef VBOX_WITH_DEBUGGER
65 include $(PATH_SUB_CURRENT)/Debugger/Makefile.kmk
66 endif
67 include $(PATH_SUB_CURRENT)/Frontends/Makefile.kmk
68 ifdef VBOX_WITH_VRDP
69 include $(PATH_SUB_CURRENT)/RDP/Makefile.kmk
70 endif
71 if defined(VBOX_WITH_CROGL) || defined(VBOX_WITH_HGSMI) || defined(VBOX_WITH_HGCM)
72 include $(PATH_SUB_CURRENT)/GuestHost/Makefile.kmk
73 endif
74 ifdef VBOX_WITH_ADDITIONS
75 include $(PATH_SUB_CURRENT)/Additions/Makefile.kmk
76 endif
77 ifdef VBOX_WITH_TESTSUITE
78 include $(PATH_SUB_CURRENT)/Testsuite/Makefile.kmk
79 endif
80 if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
81 include $(PATH_SUB_CURRENT)/NetworkServices/Makefile.kmk
82 endif
83 ifdef VBOX_WITH_INSTALLER
84 include $(PATH_SUB_CURRENT)/Installer/Makefile.kmk # Keep this last.
85 endif
86endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS
87
88else # !VBOX_SINGLE_MAKEFILE
89
90ifdef VBOX_ONLY_ADDITIONS
91 SUBDIRS = Runtime
92 ifdef VBOX_WITH_CROGL
93 SUBDIRS += GuestHost
94 endif
95 SUBDIRS += Additions
96
97else ifdef VBOX_ONLY_DOCS
98 SUBDIRS = \
99 Runtime \
100 Frontends \
101 HostDrivers
102
103else ifdef VBOX_ONLY_SDK
104 SUBDIRS = \
105 Main \
106 RDP \
107 Installer
108
109else # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS
110 SUBDIRS_BLDPROGS = Devices Main
111
112 SUBDIRS = \
113 Runtime \
114 HostDrivers \
115 VMM \
116 Devices \
117 Disassembler \
118 Storage
119
120 ifdef VBOX_WITH_CROGL
121 SUBDIRS += GuestHost
122 endif
123
124 SUBDIRS += HostServices
125
126 ifdef VBOX_WITH_DEBUGGER
127 SUBDIRS += Debugger
128 endif
129
130 ifdef VBOX_WITH_MAIN
131 SUBDIRS += Main
132 endif
133
134 ifdef VBOX_WITH_VRDP
135 SUBDIRS += RDP
136 endif
137
138 ifdef VBOX_WITH_ADDITIONS
139 SUBDIRS += Additions
140 endif
141
142 ifdef VBOX_WITH_TESTSUITE
143 SUBDIRS += Testsuite
144 endif
145
146 SUBDIRS += \
147 Frontends \
148 NetworkServices
149
150
151 # This must be the last one.
152 ifdef VBOX_WITH_INSTALLER
153 SUBDIRS += Installer
154 endif
155endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS
156
157endif # !VBOX_SINGLE_MAKEFILE
158
159include $(KBUILD_PATH)/subfooter.kmk
160
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette