VirtualBox

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

Last change on this file since 32048 was 29767, checked in by vboxsync, 15 years ago

FreeBSD: Include GuestHost stuff too

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.7 KB
Line 
1# $Id: Makefile.kmk 29767 2010-05-24 19:17:39Z 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
37else 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
42else 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
50else
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)/Disassembler/Makefile.kmk
56 if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
57 include $(PATH_SUB_CURRENT)/VMM/Makefile.kmk
58 include $(PATH_SUB_CURRENT)/Devices/Makefile.kmk
59 include $(PATH_SUB_CURRENT)/HostDrivers/Makefile.kmk
60 include $(PATH_SUB_CURRENT)/HostServices/Makefile.kmk
61 endif
62 ifdef VBOX_WITH_DEBUGGER
63 include $(PATH_SUB_CURRENT)/Debugger/Makefile.kmk
64 endif
65 include $(PATH_SUB_CURRENT)/Frontends/Makefile.kmk
66 ifdef VBOX_WITH_VRDP
67 include $(PATH_SUB_CURRENT)/RDP/Makefile.kmk
68 endif
69 if defined(VBOX_WITH_CROGL) || defined(VBOX_WITH_HGSMI) || defined(VBOX_WITH_HGCM)
70 include $(PATH_SUB_CURRENT)/GuestHost/Makefile.kmk
71 endif
72 ifdef VBOX_WITH_ADDITIONS
73 include $(PATH_SUB_CURRENT)/Additions/Makefile.kmk
74 endif
75 if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
76 include $(PATH_SUB_CURRENT)/NetworkServices/Makefile.kmk
77 endif
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