VirtualBox

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

Last change on this file since 28381 was 27014, checked in by vboxsync, 15 years ago

makefiles: Preps for building the test suite.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.8 KB
Line 
1# $Id: Makefile.kmk 27014 2010-03-04 11:59:54Z vboxsync $
2## @file
3# Top-level makefile for src/VBox.
4#
5
6#
7# Copyright (C) 2006-2010 Sun Microsystems, Inc.
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# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22SUB_DEPTH = ../..
23include $(KBUILD_PATH)/subheader.kmk
24
25ifdef VBOX_SINGLE_MAKEFILE
26
27ifdef VBOX_ONLY_ADDITIONS
28 include $(PATH_SUB_CURRENT)/Runtime/Makefile.kmk
29 ifdef VBOX_WITH_CROGL
30 if1of ($(KBUILD_TARGET),win linux solaris)
31 include $(PATH_SUB_CURRENT)/GuestHost/Makefile.kmk
32 endif
33 endif
34 include $(PATH_SUB_CURRENT)/Additions/Makefile.kmk
35
36else ifdef VBOX_ONLY_TESTSUITE
37 include $(PATH_SUB_CURRENT)/Runtime/Makefile.kmk
38 include $(PATH_SUB_CURRENT)/HostDrivers/Makefile.kmk
39 include $(PATH_SUB_CURRENT)/Additions/Makefile.kmk
40
41else ifdef VBOX_ONLY_DOCS
42 include $(PATH_SUB_CURRENT)/Runtime/Makefile.kmk
43 include $(PATH_SUB_CURRENT)/HostDrivers/Makefile.kmk
44 include $(PATH_SUB_CURRENT)/Frontends/Makefile.kmk
45
46else ifdef VBOX_ONLY_SDK
47 include $(PATH_SUB_CURRENT)/Main/Makefile.kmk
48 ifdef VBOX_WITH_VRDP
49 include $(PATH_SUB_CURRENT)/RDP/Makefile.kmk
50 endif
51 include $(PATH_SUB_CURRENT)/Installer/Makefile.kmk
52 include $(PATH_SUB_CURRENT)/Frontends/VBoxShell/Makefile.kmk
53
54else
55 ifdef VBOX_WITH_MAIN
56 include $(PATH_SUB_CURRENT)/Main/Makefile.kmk # Do this one first because of soap.
57 endif
58 include $(PATH_SUB_CURRENT)/Runtime/Makefile.kmk
59 include $(PATH_SUB_CURRENT)/VMM/Makefile.kmk
60 include $(PATH_SUB_CURRENT)/Devices/Makefile.kmk
61 include $(PATH_SUB_CURRENT)/Disassembler/Makefile.kmk
62 include $(PATH_SUB_CURRENT)/HostDrivers/Makefile.kmk
63 include $(PATH_SUB_CURRENT)/HostServices/Makefile.kmk
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 include $(PATH_SUB_CURRENT)/NetworkServices/Makefile.kmk
78 ifdef VBOX_WITH_INSTALLER
79 include $(PATH_SUB_CURRENT)/Installer/Makefile.kmk # Keep this last.
80 endif
81endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS
82
83else # !VBOX_SINGLE_MAKEFILE
84
85ifdef VBOX_ONLY_ADDITIONS
86 SUBDIRS = Runtime
87 ifdef VBOX_WITH_CROGL
88 SUBDIRS += GuestHost
89 endif
90 SUBDIRS += Additions
91
92else ifdef VBOX_ONLY_DOCS
93 SUBDIRS = \
94 Runtime \
95 Frontends \
96 HostDrivers
97
98else ifdef VBOX_ONLY_SDK
99 SUBDIRS = \
100 Main \
101 RDP \
102 Installer
103
104else # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS
105 SUBDIRS_BLDPROGS = Devices Main
106
107 SUBDIRS = \
108 Runtime \
109 HostDrivers \
110 VMM \
111 Devices \
112 Disassembler
113
114 ifdef VBOX_WITH_CROGL
115 SUBDIRS += GuestHost
116 endif
117
118 SUBDIRS += HostServices
119
120 ifdef VBOX_WITH_DEBUGGER
121 SUBDIRS += Debugger
122 endif
123
124 ifdef VBOX_WITH_MAIN
125 SUBDIRS += Main
126 endif
127
128 ifdef VBOX_WITH_VRDP
129 SUBDIRS += RDP
130 endif
131
132 ifdef VBOX_WITH_ADDITIONS
133 SUBDIRS += Additions
134 endif
135
136 SUBDIRS += \
137 Frontends \
138 NetworkServices
139
140 # This must be the last one.
141 ifdef VBOX_WITH_INSTALLER
142 SUBDIRS += Installer
143 endif
144endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS
145
146endif # !VBOX_SINGLE_MAKEFILE
147
148include $(KBUILD_PATH)/subfooter.kmk
149
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