1 | # $Id: Makefile.kmk 41477 2012-05-29 11:43:27Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top-level makefile for the src directory.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2012 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 |
|
---|
18 | SUB_DEPTH = ..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | if defined(VBOX_ONLY_ADDITIONS)
|
---|
22 | include $(PATH_SUB_CURRENT)/VBox/Makefile.kmk
|
---|
23 |
|
---|
24 | else if defined(VBOX_ONLY_DOCS) || defined(VBOX_ONLY_SDK)
|
---|
25 | include $(PATH_SUB_CURRENT)/bldprogs/Makefile.kmk
|
---|
26 | include $(PATH_SUB_CURRENT)/VBox/Makefile.kmk
|
---|
27 | include $(PATH_SUB_CURRENT)/libs/Makefile.kmk
|
---|
28 |
|
---|
29 | else if defined(VBOX_ONLY_EXTPACKS)
|
---|
30 | include $(PATH_SUB_CURRENT)/bldprogs/Makefile.kmk
|
---|
31 | include $(PATH_SUB_CURRENT)/VBox/Makefile.kmk
|
---|
32 | include $(PATH_SUB_CURRENT)/libs/Makefile.kmk
|
---|
33 | if !defined(VBOX_ONLY_EXTPACKS_USE_IMPLIBS) && defined(VBOX_WITH_REM)
|
---|
34 | include $(PATH_SUB_CURRENT)/recompiler/Makefile.kmk
|
---|
35 | endif
|
---|
36 |
|
---|
37 | else if defined(VBOX_ONLY_TESTSUITE)
|
---|
38 | include $(PATH_SUB_CURRENT)/libs/Makefile.kmk
|
---|
39 | include $(PATH_SUB_CURRENT)/VBox/Makefile.kmk
|
---|
40 |
|
---|
41 | else # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_DOCS && !VBOX_ONLY_SDK && !VBOX_ONLY_TESTSUITE
|
---|
42 | include $(PATH_SUB_CURRENT)/bldprogs/Makefile.kmk
|
---|
43 | include $(PATH_SUB_CURRENT)/VBox/Makefile.kmk
|
---|
44 | include $(PATH_SUB_CURRENT)/libs/Makefile.kmk
|
---|
45 | if1of ($(KBUILD_TARGET_ARCH), x86 amd64)
|
---|
46 | ifdef VBOX_WITH_REM
|
---|
47 | include $(PATH_SUB_CURRENT)/recompiler/Makefile.kmk
|
---|
48 | endif
|
---|
49 | endif
|
---|
50 | ifneq ($(wildcard $(PATH_SUB_CURRENT)/apps),)
|
---|
51 | include $(PATH_SUB_CURRENT)/apps/Makefile.kmk
|
---|
52 | endif
|
---|
53 | ifdef VBOX_WITH_TESTSUITE
|
---|
54 | include $(PATH_SUB_CURRENT)/tests/Makefile.kmk
|
---|
55 | endif
|
---|
56 | ifdef VBOX_WITH_TESTCASES
|
---|
57 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
58 | endif
|
---|
59 | endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_DOCS && !VBOX_ONLY_SDK && !VBOX_ONLY_TESTSUITE
|
---|
60 |
|
---|
61 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
62 |
|
---|