1 | # $Id: Makefile.kmk 8933 2008-05-19 19:37:00Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # 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 | include $(KBUILD_PATH)/header.kmk
|
---|
24 |
|
---|
25 |
|
---|
26 | PROGRAMS = tstDisasmCore tstDisasm tstDisasm-2
|
---|
27 | LIBRARIES = DisasmR3 DisasmCoreR3 DisasmGC DisasmR0
|
---|
28 |
|
---|
29 | DisasmR3_TEMPLATE = VBOXR3
|
---|
30 | ifeq ($(KBUILD_TARGET),win)
|
---|
31 | DisasmR3_CXXFLAGS += -EHa
|
---|
32 | else
|
---|
33 | ifneq ($(KBUILD_TARGET),l4)
|
---|
34 | DisasmR3_CXXFLAGS += -fexceptions
|
---|
35 | endif
|
---|
36 | endif
|
---|
37 | DisasmR3_SOURCES = Disasm.cpp DisasmCore.cpp DisasmReg.cpp DisasmTables.cpp DisasmTablesX64.cpp
|
---|
38 | DisasmR3_DEFS = IN_DIS_R3
|
---|
39 |
|
---|
40 | DisasmCoreR3_TEMPLATE = VBOXR3
|
---|
41 | DisasmCoreR3_SOURCES = DisasmCore.cpp DisasmReg.cpp DisasmTables.cpp DisasmTablesX64.cpp
|
---|
42 | DisasmCoreR3_DEFS = IN_DIS_R3 DIS_CORE_ONLY
|
---|
43 |
|
---|
44 | DisasmGC_TEMPLATE = VBOXGC
|
---|
45 | DisasmGC_SOURCES = DisasmCore.cpp DisasmReg.cpp DisasmTables.cpp DisasmTablesX64.cpp
|
---|
46 | DisasmGC_DEFS = IN_DIS_GC IN_RT_GC DIS_CORE_ONLY
|
---|
47 |
|
---|
48 | DisasmR0_TEMPLATE = VBOXR0
|
---|
49 | DisasmR0_SOURCES = DisasmCore.cpp DisasmReg.cpp DisasmTables.cpp DisasmTablesX64.cpp
|
---|
50 | DisasmR0_DEFS = IN_DIS_R0 IN_RT_R0 DIS_CORE_ONLY
|
---|
51 |
|
---|
52 | tstDisasm_TEMPLATE = VBOXR3TSTEXE
|
---|
53 | tstDisasm_SOURCES = DisasmTest.cpp DisasmTestA.asm
|
---|
54 | tstDisasm_DEFS = IN_DIS_R3
|
---|
55 | tstDisasm_LIBS = \
|
---|
56 | $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB) \
|
---|
57 | $(LIB_RUNTIME)
|
---|
58 |
|
---|
59 | tstDisasmCore_TEMPLATE = VBOXR3TSTEXE
|
---|
60 | tstDisasmCore_SOURCES = DisasmTestCore.cpp
|
---|
61 | tstDisasmCore_DEFS = IN_DIS_R3 DIS_CORE_ONLY
|
---|
62 | tstDisasmCore_LIBS = \
|
---|
63 | $(PATH_LIB)/DisasmCoreR3$(VBOX_SUFF_LIB) \
|
---|
64 | $(LIB_RUNTIME)
|
---|
65 |
|
---|
66 | tstDisasm-2_TEMPLATE = VBOXR3TSTEXE
|
---|
67 | tstDisasm-2_SOURCES = testcase/tstDisasm-2.cpp
|
---|
68 | tstDisasm-2_DEFS = IN_DIS_R3
|
---|
69 | tstDisasm-2_LIBS = \
|
---|
70 | $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB) \
|
---|
71 | $(LIB_RUNTIME)
|
---|
72 |
|
---|
73 |
|
---|
74 | include $(KBUILD_PATH)/footer.kmk
|
---|
75 |
|
---|