1 | # $Id: Makefile.kmk 34492 2010-11-29 23:57:12Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top-level makefile for the src directory.
|
---|
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 |
|
---|
18 | SUB_DEPTH = ..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | ifdef VBOX_SINGLE_MAKEFILE
|
---|
22 |
|
---|
23 | if defined(VBOX_ONLY_ADDITIONS)
|
---|
24 | include $(PATH_SUB_CURRENT)/VBox/Makefile.kmk
|
---|
25 |
|
---|
26 | else if defined(VBOX_ONLY_DOCS) || defined(VBOX_ONLY_SDK)
|
---|
27 | include $(PATH_SUB_CURRENT)/bldprogs/Makefile.kmk
|
---|
28 | include $(PATH_SUB_CURRENT)/VBox/Makefile.kmk
|
---|
29 | include $(PATH_SUB_CURRENT)/libs/Makefile.kmk
|
---|
30 |
|
---|
31 | else if defined(VBOX_ONLY_EXTPACKS)
|
---|
32 | include $(PATH_SUB_CURRENT)/bldprogs/Makefile.kmk
|
---|
33 | include $(PATH_SUB_CURRENT)/VBox/Makefile.kmk
|
---|
34 | include $(PATH_SUB_CURRENT)/libs/Makefile.kmk
|
---|
35 | include $(PATH_SUB_CURRENT)/recompiler/Makefile.kmk
|
---|
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 | include $(PATH_SUB_CURRENT)/recompiler/Makefile.kmk
|
---|
47 | endif
|
---|
48 | ifneq ($(wildcard $(PATH_SUB_CURRENT)/apps),)
|
---|
49 | include $(PATH_SUB_CURRENT)/apps/Makefile.kmk
|
---|
50 | endif
|
---|
51 | ifdef VBOX_WITH_TESTSUITE
|
---|
52 | include $(PATH_SUB_CURRENT)/tests/Makefile.kmk
|
---|
53 | endif
|
---|
54 | ifdef VBOX_WITH_TESTCASES
|
---|
55 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
56 | endif
|
---|
57 | endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_DOCS && !VBOX_ONLY_SDK && !VBOX_ONLY_TESTSUITE
|
---|
58 |
|
---|
59 | else # !VBOX_SINGLE_MAKEFILE
|
---|
60 | DEPTH = ..
|
---|
61 | include $(KBUILD_PATH)/header.kmk
|
---|
62 |
|
---|
63 | ifdef VBOX_ONLY_ADDITIONS
|
---|
64 | SUBDIRS = VBox
|
---|
65 |
|
---|
66 | else ifdef VBOX_ONLY_DOCS
|
---|
67 | SUBDIRS = VBox/Runtime bldprogs libs VBox
|
---|
68 |
|
---|
69 | else ifdef VBOX_ONLY_SDK
|
---|
70 | SUBDIRS = bldprogs libs VBox
|
---|
71 |
|
---|
72 | else # !VBOX_ONLY_ADDITIONS
|
---|
73 | # Build IPRT first because xpcom (IPC, nspr, python) depends on it.
|
---|
74 | SUBDIRS = libs VBox/Runtime bldprogs VBox recompiler
|
---|
75 | ifneq ($(wildcard apps),)
|
---|
76 | SUBDIRS += apps
|
---|
77 | endif
|
---|
78 | ifdef VBOX_WITH_TESTSUITE
|
---|
79 | SUBDIRS += tests
|
---|
80 | endif
|
---|
81 | ifdef VBOX_WITH_TESTCASES
|
---|
82 | SUBDIRS += testcase
|
---|
83 | endif
|
---|
84 | endif # !VBOX_ONLY_ADDITIONS
|
---|
85 |
|
---|
86 | endif # !VBOX_SINGLE_MAKEFILE
|
---|
87 |
|
---|
88 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
89 |
|
---|