1 | # $Id: Makefile.kmk 8937 2008-05-20 00:52:26Z 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 |
|
---|
47 | LIBRARIES += DisasmCoreR3
|
---|
48 | DisasmCoreR3_TEMPLATE = VBOXR3
|
---|
49 | DisasmCoreR3_DEFS = IN_DIS_R3 DIS_CORE_ONLY
|
---|
50 | DisasmCoreR3_SOURCES = \
|
---|
51 | DisasmCore.cpp \
|
---|
52 | DisasmReg.cpp \
|
---|
53 | DisasmTables.cpp \
|
---|
54 | DisasmTablesX64.cpp
|
---|
55 |
|
---|
56 | LIBRARIES += DisasmGC
|
---|
57 | DisasmGC_TEMPLATE = VBOXGC
|
---|
58 | DisasmGC_DEFS = IN_DIS_GC IN_RT_GC DIS_CORE_ONLY
|
---|
59 | DisasmGC_SOURCES = \
|
---|
60 | DisasmCore.cpp \
|
---|
61 | DisasmReg.cpp \
|
---|
62 | DisasmTables.cpp \
|
---|
63 | DisasmTablesX64.cpp
|
---|
64 |
|
---|
65 | LIBRARIES += DisasmR0
|
---|
66 | DisasmR0_TEMPLATE = VBOXR0
|
---|
67 | DisasmR0_DEFS = IN_DIS_R0 IN_RT_R0 DIS_CORE_ONLY
|
---|
68 | DisasmR0_SOURCES = \
|
---|
69 | DisasmCore.cpp \
|
---|
70 | DisasmReg.cpp \
|
---|
71 | DisasmTables.cpp \
|
---|
72 | DisasmTablesX64.cpp
|
---|
73 |
|
---|
74 |
|
---|
75 | ifdef VBOX_WITH_TESTCASES
|
---|
76 | # testcase that hasn't been moved yet.
|
---|
77 | PROGRAMS += tstDisasm
|
---|
78 | tstDisasm_TEMPLATE = VBOXR3TSTEXE
|
---|
79 | tstDisasm_DEFS = IN_DIS_R3
|
---|
80 | tstDisasm_SOURCES = DisasmTest.cpp DisasmTestA.asm
|
---|
81 | tstDisasm_LIBS = \
|
---|
82 | $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB) \
|
---|
83 | $(LIB_RUNTIME)
|
---|
84 |
|
---|
85 | PROGRAMS += tstDisasmCore
|
---|
86 | tstDisasmCore_TEMPLATE = VBOXR3TSTEXE
|
---|
87 | tstDisasmCore_DEFS = IN_DIS_R3 DIS_CORE_ONLY
|
---|
88 | tstDisasmCore_SOURCES = DisasmTestCore.cpp
|
---|
89 | tstDisasmCore_LIBS = \
|
---|
90 | $(PATH_LIB)/DisasmCoreR3$(VBOX_SUFF_LIB) \
|
---|
91 | $(LIB_RUNTIME)
|
---|
92 | endif # VBOX_WITH_TESTCASES
|
---|
93 |
|
---|
94 |
|
---|
95 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
96 |
|
---|