[2478] | 1 | # $Id: Makefile.kmk 16373 2009-01-29 15:26:38Z vboxsync $
|
---|
[6004] | 2 | ## @file
|
---|
[2478] | 3 | # Top-level makefile for src/VBox.
|
---|
[1] | 4 | #
|
---|
[2478] | 5 |
|
---|
| 6 | #
|
---|
[8155] | 7 | # Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
[5999] | 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 | #
|
---|
[8155] | 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 | #
|
---|
[1] | 21 |
|
---|
[10061] | 22 | SUB_DEPTH = ../..
|
---|
| 23 | include $(KBUILD_PATH)/subheader.kmk
|
---|
| 24 |
|
---|
[14158] | 25 | ifdef VBOX_SINGLE_MAKEFILE
|
---|
| 26 |
|
---|
[10061] | 27 | ifdef VBOX_ONLY_ADDITIONS
|
---|
[10133] | 28 | include $(PATH_SUB_CURRENT)/Runtime/Makefile.kmk
|
---|
[14162] | 29 | ifdef VBOX_WITH_CROGL
|
---|
[16294] | 30 | if1of ($(KBUILD_TARGET),win)
|
---|
| 31 | include $(PATH_SUB_CURRENT)/GuestHost/Makefile.kmk
|
---|
| 32 | endif
|
---|
[14162] | 33 | endif
|
---|
[10133] | 34 | include $(PATH_SUB_CURRENT)/Additions/Makefile.kmk
|
---|
[11812] | 35 |
|
---|
[11703] | 36 | else ifdef VBOX_ONLY_DOCS
|
---|
| 37 | include $(PATH_SUB_CURRENT)/Runtime/Makefile.kmk
|
---|
| 38 | include $(PATH_SUB_CURRENT)/HostDrivers/Makefile.kmk
|
---|
| 39 | include $(PATH_SUB_CURRENT)/Frontends/Makefile.kmk
|
---|
[11812] | 40 |
|
---|
| 41 | else ifdef VBOX_ONLY_SDK
|
---|
| 42 | include $(PATH_SUB_CURRENT)/Main/Makefile.kmk
|
---|
[16373] | 43 | ifdef VBOX_WITH_VRDP
|
---|
| 44 | include $(PATH_SUB_CURRENT)/RDP/Makefile.kmk
|
---|
| 45 | endif
|
---|
[11812] | 46 | include $(PATH_SUB_CURRENT)/Installer/Makefile.kmk
|
---|
| 47 |
|
---|
[10061] | 48 | else
|
---|
[10133] | 49 | ifdef VBOX_WITH_MAIN
|
---|
| 50 | include $(PATH_SUB_CURRENT)/Main/Makefile.kmk # Do this one first because of soap.
|
---|
| 51 | endif
|
---|
| 52 | include $(PATH_SUB_CURRENT)/Runtime/Makefile.kmk
|
---|
[10061] | 53 | include $(PATH_SUB_CURRENT)/VMM/Makefile.kmk
|
---|
| 54 | include $(PATH_SUB_CURRENT)/Devices/Makefile.kmk
|
---|
| 55 | include $(PATH_SUB_CURRENT)/Disassembler/Makefile.kmk
|
---|
| 56 | include $(PATH_SUB_CURRENT)/HostDrivers/Makefile.kmk
|
---|
| 57 | include $(PATH_SUB_CURRENT)/HostServices/Makefile.kmk
|
---|
[12886] | 58 | ifdef VBOX_WITH_DEBUGGER
|
---|
| 59 | include $(PATH_SUB_CURRENT)/Debugger/Makefile.kmk
|
---|
| 60 | endif
|
---|
[10061] | 61 | include $(PATH_SUB_CURRENT)/Frontends/Makefile.kmk
|
---|
| 62 | ifdef VBOX_WITH_VRDP
|
---|
[10133] | 63 | include $(PATH_SUB_CURRENT)/RDP/Makefile.kmk
|
---|
[10061] | 64 | endif
|
---|
[14162] | 65 | ifdef VBOX_WITH_CROGL
|
---|
| 66 | include $(PATH_SUB_CURRENT)/GuestHost/Makefile.kmk
|
---|
| 67 | endif
|
---|
[12447] | 68 | ifdef VBOX_WITH_ADDITIONS
|
---|
| 69 | include $(PATH_SUB_CURRENT)/Additions/Makefile.kmk
|
---|
| 70 | endif
|
---|
[12318] | 71 | ifdef VBOX_WITH_INSTALLER
|
---|
| 72 | include $(PATH_SUB_CURRENT)/Installer/Makefile.kmk # Keep this last.
|
---|
| 73 | endif
|
---|
[11703] | 74 | endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS
|
---|
[10061] | 75 |
|
---|
[12170] | 76 | else # !VBOX_SINGLE_MAKEFILE
|
---|
[1] | 77 |
|
---|
[6004] | 78 | ifdef VBOX_ONLY_ADDITIONS
|
---|
[14162] | 79 | SUBDIRS = Runtime
|
---|
| 80 | ifdef VBOX_WITH_CROGL
|
---|
| 81 | SUBDIRS += GuestHost
|
---|
| 82 | endif
|
---|
| 83 | SUBDIRS += Additions
|
---|
[1] | 84 |
|
---|
[11703] | 85 | else ifdef VBOX_ONLY_DOCS
|
---|
| 86 | SUBDIRS = \
|
---|
| 87 | Runtime \
|
---|
| 88 | Frontends \
|
---|
| 89 | HostDrivers
|
---|
| 90 |
|
---|
[11805] | 91 | else ifdef VBOX_ONLY_SDK
|
---|
[14162] | 92 | SUBDIRS = \
|
---|
| 93 | Main \
|
---|
| 94 | RDP \
|
---|
[11805] | 95 | Installer
|
---|
| 96 |
|
---|
[11703] | 97 | else # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS
|
---|
[11374] | 98 | SUBDIRS_BLDPROGS = Devices Main
|
---|
[6004] | 99 |
|
---|
| 100 | SUBDIRS = \
|
---|
[1] | 101 | Runtime \
|
---|
| 102 | HostDrivers \
|
---|
| 103 | VMM \
|
---|
| 104 | Devices \
|
---|
[14162] | 105 | Disassembler
|
---|
[1] | 106 |
|
---|
[14162] | 107 | ifdef VBOX_WITH_CROGL
|
---|
| 108 | SUBDIRS += GuestHost
|
---|
| 109 | endif
|
---|
| 110 |
|
---|
| 111 | SUBDIRS += HostServices
|
---|
| 112 |
|
---|
[12886] | 113 | ifdef VBOX_WITH_DEBUGGER
|
---|
| 114 | SUBDIRS += Debugger
|
---|
| 115 | endif
|
---|
| 116 |
|
---|
[6004] | 117 | ifdef VBOX_WITH_MAIN
|
---|
| 118 | SUBDIRS += Main
|
---|
| 119 | endif
|
---|
[1231] | 120 |
|
---|
[6004] | 121 | ifdef VBOX_WITH_VRDP
|
---|
| 122 | SUBDIRS += RDP
|
---|
| 123 | endif
|
---|
[1] | 124 |
|
---|
[6129] | 125 | ifdef VBOX_WITH_ADDITIONS
|
---|
| 126 | SUBDIRS += Additions
|
---|
[6004] | 127 | endif
|
---|
[1] | 128 |
|
---|
[6004] | 129 | SUBDIRS += Frontends
|
---|
[1] | 130 |
|
---|
[6004] | 131 | # This must be the last one.
|
---|
| 132 | ifdef VBOX_WITH_INSTALLER
|
---|
| 133 | SUBDIRS += Installer
|
---|
| 134 | endif
|
---|
[11703] | 135 | endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS
|
---|
[1] | 136 |
|
---|
[12170] | 137 | endif # !VBOX_SINGLE_MAKEFILE
|
---|
[1] | 138 |
|
---|
[14158] | 139 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
| 140 |
|
---|