1 | # $Id: Makefile.kmk 12249 2008-09-09 01:26:15Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the VBox Disassembler.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
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 | # 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 | #
|
---|
21 |
|
---|
22 | SUB_DEPTH = ../../..
|
---|
23 | include $(KBUILD_PATH)/subheader.kmk
|
---|
24 |
|
---|
25 | # include the sub-makefile first.
|
---|
26 | ifdef VBOX_WITH_TESTCASES
|
---|
27 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
28 | endif
|
---|
29 |
|
---|
30 |
|
---|
31 | LIBRARIES += DisasmR3
|
---|
32 | DisasmR3_TEMPLATE = VBOXR3
|
---|
33 | DisasmR3_DEFS = IN_DIS_R3
|
---|
34 | ifeq ($(KBUILD_TARGET),win)
|
---|
35 | DisasmR3_CXXFLAGS += -EHa
|
---|
36 | else ifneq ($(KBUILD_TARGET),l4)
|
---|
37 | DisasmR3_CXXFLAGS += -fexceptions
|
---|
38 | endif
|
---|
39 | DisasmR3_SOURCES = \
|
---|
40 | Disasm.cpp \
|
---|
41 | DisasmCore.cpp \
|
---|
42 | DisasmReg.cpp \
|
---|
43 | DisasmTables.cpp \
|
---|
44 | DisasmTablesX64.cpp \
|
---|
45 | DisasmFormatBytes.cpp \
|
---|
46 | DisasmFormatYasm.cpp
|
---|
47 |
|
---|
48 | LIBRARIES += DisasmCoreR3
|
---|
49 | DisasmCoreR3_TEMPLATE = VBOXR3
|
---|
50 | DisasmCoreR3_DEFS = IN_DIS_R3 DIS_CORE_ONLY
|
---|
51 | DisasmCoreR3_SOURCES = \
|
---|
52 | DisasmCore.cpp \
|
---|
53 | DisasmReg.cpp \
|
---|
54 | DisasmTables.cpp \
|
---|
55 | DisasmTablesX64.cpp
|
---|
56 |
|
---|
57 | LIBRARIES += DisasmGC
|
---|
58 | DisasmGC_TEMPLATE = VBOXGC
|
---|
59 | DisasmGC_DEFS = IN_DIS_GC IN_RT_GC DIS_CORE_ONLY
|
---|
60 | DisasmGC_SOURCES = \
|
---|
61 | DisasmCore.cpp \
|
---|
62 | DisasmReg.cpp \
|
---|
63 | DisasmTables.cpp \
|
---|
64 | DisasmTablesX64.cpp
|
---|
65 |
|
---|
66 | LIBRARIES += DisasmR0
|
---|
67 | DisasmR0_TEMPLATE = VBOXR0
|
---|
68 | DisasmR0_DEFS = IN_DIS_R0 IN_RT_R0 DIS_CORE_ONLY
|
---|
69 | DisasmR0_SOURCES = \
|
---|
70 | DisasmCore.cpp \
|
---|
71 | DisasmReg.cpp \
|
---|
72 | DisasmTables.cpp \
|
---|
73 | DisasmTablesX64.cpp
|
---|
74 |
|
---|
75 |
|
---|
76 | ifdef VBOX_WITH_TESTCASES
|
---|
77 | # testcase that hasn't been moved yet.
|
---|
78 | PROGRAMS += tstDisasm
|
---|
79 | tstDisasm_TEMPLATE = VBOXR3TSTEXE
|
---|
80 | tstDisasm_DEFS = IN_DIS_R3
|
---|
81 | tstDisasm_SOURCES = DisasmTest.cpp DisasmTestA.asm
|
---|
82 | tstDisasm_LIBS = \
|
---|
83 | $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB) \
|
---|
84 | $(LIB_RUNTIME)
|
---|
85 |
|
---|
86 | PROGRAMS += tstDisasmCore
|
---|
87 | tstDisasmCore_TEMPLATE = VBOXR3TSTEXE
|
---|
88 | tstDisasmCore_DEFS = IN_DIS_R3 DIS_CORE_ONLY
|
---|
89 | tstDisasmCore_SOURCES = DisasmTestCore.cpp
|
---|
90 | tstDisasmCore_LIBS = \
|
---|
91 | $(PATH_LIB)/DisasmCoreR3$(VBOX_SUFF_LIB) \
|
---|
92 | $(LIB_RUNTIME)
|
---|
93 | endif # VBOX_WITH_TESTCASES
|
---|
94 |
|
---|
95 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
96 |
|
---|