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