1 | # $Id: Makefile.kmk 14140 2008-11-12 19:08:56Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top-level makefile for src/VBox.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.alldomusa.eu.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 |
|
---|
22 | ifdef VBOX_SINGLE_MAKEFILE
|
---|
23 | SUB_DEPTH = ../..
|
---|
24 | include $(KBUILD_PATH)/subheader.kmk
|
---|
25 |
|
---|
26 | ifdef VBOX_ONLY_ADDITIONS
|
---|
27 | include $(PATH_SUB_CURRENT)/Runtime/Makefile.kmk
|
---|
28 | include $(PATH_SUB_CURRENT)/GuestHost/Makefile.kmk
|
---|
29 | include $(PATH_SUB_CURRENT)/Additions/Makefile.kmk
|
---|
30 |
|
---|
31 | else ifdef VBOX_ONLY_DOCS
|
---|
32 | include $(PATH_SUB_CURRENT)/Runtime/Makefile.kmk
|
---|
33 | include $(PATH_SUB_CURRENT)/HostDrivers/Makefile.kmk
|
---|
34 | include $(PATH_SUB_CURRENT)/Frontends/Makefile.kmk
|
---|
35 |
|
---|
36 | else ifdef VBOX_ONLY_SDK
|
---|
37 | include $(PATH_SUB_CURRENT)/Main/Makefile.kmk
|
---|
38 | include $(PATH_SUB_CURRENT)/RDP/Makefile.kmk
|
---|
39 | include $(PATH_SUB_CURRENT)/Installer/Makefile.kmk
|
---|
40 |
|
---|
41 | else
|
---|
42 | ifdef VBOX_WITH_MAIN
|
---|
43 | include $(PATH_SUB_CURRENT)/Main/Makefile.kmk # Do this one first because of soap.
|
---|
44 | endif
|
---|
45 | include $(PATH_SUB_CURRENT)/Runtime/Makefile.kmk
|
---|
46 | include $(PATH_SUB_CURRENT)/VMM/Makefile.kmk
|
---|
47 | include $(PATH_SUB_CURRENT)/Devices/Makefile.kmk
|
---|
48 | include $(PATH_SUB_CURRENT)/Disassembler/Makefile.kmk
|
---|
49 | include $(PATH_SUB_CURRENT)/HostDrivers/Makefile.kmk
|
---|
50 | include $(PATH_SUB_CURRENT)/GuestHost/Makefile.kmk
|
---|
51 | include $(PATH_SUB_CURRENT)/HostServices/Makefile.kmk
|
---|
52 | ifdef VBOX_WITH_DEBUGGER
|
---|
53 | include $(PATH_SUB_CURRENT)/Debugger/Makefile.kmk
|
---|
54 | endif
|
---|
55 | include $(PATH_SUB_CURRENT)/Frontends/Makefile.kmk
|
---|
56 | ifdef VBOX_WITH_VRDP
|
---|
57 | include $(PATH_SUB_CURRENT)/RDP/Makefile.kmk
|
---|
58 | endif
|
---|
59 | ifdef VBOX_WITH_ADDITIONS
|
---|
60 | include $(PATH_SUB_CURRENT)/Additions/Makefile.kmk
|
---|
61 | endif
|
---|
62 | ifdef VBOX_WITH_INSTALLER
|
---|
63 | include $(PATH_SUB_CURRENT)/Installer/Makefile.kmk # Keep this last.
|
---|
64 | endif
|
---|
65 | endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS
|
---|
66 |
|
---|
67 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
68 |
|
---|
69 | else # !VBOX_SINGLE_MAKEFILE
|
---|
70 | DEPTH = ../..
|
---|
71 | include $(KBUILD_PATH)/header.kmk
|
---|
72 |
|
---|
73 | ifdef VBOX_ONLY_ADDITIONS
|
---|
74 | SUBDIRS = \
|
---|
75 | Runtime \
|
---|
76 | GuestHost \
|
---|
77 | Additions
|
---|
78 |
|
---|
79 | else ifdef VBOX_ONLY_DOCS
|
---|
80 | SUBDIRS = \
|
---|
81 | Runtime \
|
---|
82 | Frontends \
|
---|
83 | HostDrivers
|
---|
84 |
|
---|
85 | else ifdef VBOX_ONLY_SDK
|
---|
86 | SUBDIRS = \
|
---|
87 | Main \
|
---|
88 | RDP \
|
---|
89 | Installer
|
---|
90 |
|
---|
91 | else # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS
|
---|
92 | SUBDIRS_BLDPROGS = Devices Main
|
---|
93 |
|
---|
94 | SUBDIRS = \
|
---|
95 | Runtime \
|
---|
96 | HostDrivers \
|
---|
97 | VMM \
|
---|
98 | Devices \
|
---|
99 | Disassembler \
|
---|
100 | GuestHost \
|
---|
101 | HostServices
|
---|
102 |
|
---|
103 | ifdef VBOX_WITH_DEBUGGER
|
---|
104 | SUBDIRS += Debugger
|
---|
105 | endif
|
---|
106 |
|
---|
107 | ifdef VBOX_WITH_MAIN
|
---|
108 | SUBDIRS += Main
|
---|
109 | endif
|
---|
110 |
|
---|
111 | ifdef VBOX_WITH_VRDP
|
---|
112 | SUBDIRS += RDP
|
---|
113 | endif
|
---|
114 |
|
---|
115 | ifdef VBOX_WITH_ADDITIONS
|
---|
116 | SUBDIRS += Additions
|
---|
117 | endif
|
---|
118 |
|
---|
119 | SUBDIRS += Frontends
|
---|
120 |
|
---|
121 | # This must be the last one.
|
---|
122 | ifdef VBOX_WITH_INSTALLER
|
---|
123 | SUBDIRS += Installer
|
---|
124 | endif
|
---|
125 | endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS
|
---|
126 |
|
---|
127 | include $(KBUILD_PATH)/footer.kmk
|
---|
128 | endif # !VBOX_SINGLE_MAKEFILE
|
---|
129 |
|
---|