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