1 | # $Id: Makefile.kmk 69166 2017-10-23 15:43:33Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for various generic build tools (there is currently only one of them).
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2017 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 | BLDPROGS += bin2c biossums filesplitter VBoxCmp
|
---|
22 |
|
---|
23 | bin2c_TEMPLATE = VBoxBldProg
|
---|
24 | bin2c_SOURCES = bin2c.c
|
---|
25 |
|
---|
26 | biossums_TEMPLATE = VBoxBldProg
|
---|
27 | biossums_SOURCES = biossums.c
|
---|
28 |
|
---|
29 | filesplitter_TEMPLATE = VBoxBldProg
|
---|
30 | filesplitter_SOURCES = filesplitter.cpp
|
---|
31 |
|
---|
32 | VBoxCmp_TEMPLATE = VBoxBldProg
|
---|
33 | VBoxCmp_SOURCES = VBoxCmp.cpp
|
---|
34 |
|
---|
35 | ifndef VBOX_ONLY_BUILD
|
---|
36 | PROGRAMS += scm
|
---|
37 | scm_TEMPLATE = VBoxR3Tool
|
---|
38 | scm_SOURCES = \
|
---|
39 | scm.cpp \
|
---|
40 | scmdiff.cpp \
|
---|
41 | scmrw.cpp \
|
---|
42 | scmparser.cpp \
|
---|
43 | scmstream.cpp \
|
---|
44 | scmsubversion.cpp
|
---|
45 | ifdef VBOX_PATH_SUBVERSION_INCS
|
---|
46 | scm_INCS += $(VBOX_PATH_SUBVERSION_INCS) $(VBOX_PATH_APACHE_RUNTIME_INCS)
|
---|
47 | scm_DEFS += SCM_WITH_SVN_HEADERS
|
---|
48 | endif
|
---|
49 |
|
---|
50 | BLDPROGS += VBoxCPP
|
---|
51 | VBoxCPP_TEMPLATE = VBoxAdvBldProg
|
---|
52 | VBoxCPP_SOURCES = \
|
---|
53 | VBoxCPP.cpp \
|
---|
54 | scmstream.cpp
|
---|
55 | endif
|
---|
56 |
|
---|
57 | if !defined(VBOX_ONLY_BUILD) || defined(VBOX_ONLY_EXTPACKS)
|
---|
58 | BLDPROGS += VBoxTpG
|
---|
59 | VBoxTpG_TEMPLATE = VBoxAdvBldProg
|
---|
60 | VBoxTpG_SOURCES = \
|
---|
61 | VBoxTpG.cpp \
|
---|
62 | scmstream.cpp
|
---|
63 | endif
|
---|
64 |
|
---|
65 | ifeq ($(KBUILD_TARGET),win)
|
---|
66 | BLDPROGS += VBoxPeSetVersion
|
---|
67 | endif
|
---|
68 | VBoxPeSetVersion_TEMPLATE = VBoxBldProg
|
---|
69 | VBoxPeSetVersion_SOURCES = VBoxPeSetVersion.cpp
|
---|
70 |
|
---|
71 | BLDPROGS.win += VBoxCheckImports
|
---|
72 | VBoxCheckImports_TEMPLATE = VBoxBldProg
|
---|
73 | VBoxCheckImports_SOURCES = VBoxCheckImports.cpp
|
---|
74 |
|
---|
75 | BLDPROGS += VBoxDef2LazyLoad
|
---|
76 | VBoxDef2LazyLoad_TEMPLATE = VBoxBldProg
|
---|
77 | VBoxDef2LazyLoad_SOURCES = VBoxDef2LazyLoad.cpp
|
---|
78 |
|
---|
79 | # temp hack.
|
---|
80 | VBoxCompilerPlugInsGcc.o VBoxCompilerPlugInsCommon.o VBoxCompilerPlugIns.o gccplugin: gccplugin$(SUFF_DLL)
|
---|
81 | gccplugin$(SUFF_DLL): VBoxCompilerPlugInsGcc.cpp VBoxCompilerPlugInsCommon.cpp VBoxCompilerPlugIns.h
|
---|
82 | $(TOOL_GXX3_CXX) -shared -fPIC -fno-rtti -g \
|
---|
83 | -DIN_RING3 \
|
---|
84 | $(if-expr "$(KBUILD_TYPE)" != "release",-DDEBUG,) \
|
---|
85 | -I$(shell $(TOOL_GXX3_CXX) -print-file-name=plugin)/include \
|
---|
86 | -I$(PATH_ROOT)/include \
|
---|
87 | $(if-expr "$(KBUILD_HOST)" == "solaris", -I/usr/include/gmp -I$(PATH_ROOT)/src/bldprogs/solgcc/,) \
|
---|
88 | -o $@ \
|
---|
89 | VBoxCompilerPlugInsGcc.cpp \
|
---|
90 | VBoxCompilerPlugInsCommon.cpp
|
---|
91 |
|
---|
92 |
|
---|
93 |
|
---|
94 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
95 |
|
---|