1 | # $Id: Makefile.kmk 41477 2012-05-29 11:43:27Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the VBox Disassembler.
|
---|
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 | # include the sub-makefile first.
|
---|
22 | ifdef VBOX_WITH_TESTCASES
|
---|
23 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
24 | endif
|
---|
25 |
|
---|
26 |
|
---|
27 | LIBRARIES += DisasmR3
|
---|
28 | DisasmR3_TEMPLATE = VBOXR3
|
---|
29 | DisasmR3_DEFS = IN_DIS
|
---|
30 | DisasmR3_SOURCES = \
|
---|
31 | Disasm.cpp \
|
---|
32 | DisasmCore.cpp \
|
---|
33 | DisasmReg.cpp \
|
---|
34 | DisasmTables.cpp \
|
---|
35 | DisasmTablesX64.cpp \
|
---|
36 | DisasmFormatBytes.cpp \
|
---|
37 | DisasmFormatYasm.cpp
|
---|
38 |
|
---|
39 | LIBRARIES += DisasmCoreR3
|
---|
40 | DisasmCoreR3_TEMPLATE = VBOXR3
|
---|
41 | DisasmCoreR3_DEFS = IN_DIS DIS_CORE_ONLY
|
---|
42 | DisasmCoreR3_SOURCES = \
|
---|
43 | DisasmCore.cpp \
|
---|
44 | DisasmReg.cpp \
|
---|
45 | DisasmTables.cpp \
|
---|
46 | DisasmTablesX64.cpp
|
---|
47 |
|
---|
48 | ifdef VBOX_WITH_RAW_MODE
|
---|
49 | LIBRARIES += DisasmRC
|
---|
50 | DisasmRC_TEMPLATE = VBoxRc
|
---|
51 | DisasmRC_DEFS = IN_DIS IN_RT_RC DIS_CORE_ONLY
|
---|
52 | DisasmRC_SOURCES = \
|
---|
53 | DisasmCore.cpp \
|
---|
54 | DisasmReg.cpp \
|
---|
55 | DisasmTables.cpp \
|
---|
56 | DisasmTablesX64.cpp
|
---|
57 | endif # VBOX_WITH_RAW_MODE
|
---|
58 |
|
---|
59 | LIBRARIES += DisasmR0
|
---|
60 | DisasmR0_TEMPLATE = VBoxR0
|
---|
61 | DisasmR0_DEFS = IN_DIS IN_RT_R0 DIS_CORE_ONLY
|
---|
62 | DisasmR0_SOURCES = \
|
---|
63 | DisasmCore.cpp \
|
---|
64 | DisasmReg.cpp \
|
---|
65 | DisasmTables.cpp \
|
---|
66 | DisasmTablesX64.cpp
|
---|
67 |
|
---|
68 |
|
---|
69 | ifdef VBOX_WITH_TESTCASES
|
---|
70 | # testcase that hasn't been moved yet.
|
---|
71 | PROGRAMS += tstDisasm
|
---|
72 | tstDisasm_TEMPLATE = VBOXR3TSTEXE
|
---|
73 | tstDisasm_DEFS = IN_DIS
|
---|
74 | tstDisasm_SOURCES = DisasmTest.cpp DisasmTestA.asm
|
---|
75 | tstDisasm_LIBS = \
|
---|
76 | $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB) \
|
---|
77 | $(LIB_RUNTIME)
|
---|
78 |
|
---|
79 | PROGRAMS += tstDisasmCore
|
---|
80 | tstDisasmCore_TEMPLATE = VBOXR3TSTEXE
|
---|
81 | tstDisasmCore_DEFS = IN_DIS DIS_CORE_ONLY
|
---|
82 | tstDisasmCore_SOURCES = DisasmTestCore.cpp
|
---|
83 | tstDisasmCore_LIBS = \
|
---|
84 | $(PATH_STAGE_LIB)/DisasmCoreR3$(VBOX_SUFF_LIB) \
|
---|
85 | $(LIB_RUNTIME)
|
---|
86 | endif # VBOX_WITH_TESTCASES
|
---|
87 |
|
---|
88 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
89 |
|
---|