1 | #
|
---|
2 | # Makefile for the VBox Disassembler.
|
---|
3 | #
|
---|
4 |
|
---|
5 | #
|
---|
6 | # Copyright (C) 2006 InnoTek Systemberatung GmbH
|
---|
7 | #
|
---|
8 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
9 | # available from http://www.virtualbox.org. This file is free software;
|
---|
10 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
11 | # General Public License as published by the Free Software Foundation,
|
---|
12 | # in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
13 | # distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
14 | # be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 | #
|
---|
16 | # If you received this file as part of a commercial VirtualBox
|
---|
17 | # distribution, then only the terms of your commercial VirtualBox
|
---|
18 | # license agreement apply instead of the previous paragraph.
|
---|
19 | #
|
---|
20 |
|
---|
21 | DEPTH = ../../..
|
---|
22 | include $(PATH_KBUILD)/header.kmk
|
---|
23 |
|
---|
24 |
|
---|
25 | PROGRAMS = tstDisasmCore tstDisasm
|
---|
26 | LIBRARIES = DisasmR3 DisasmCoreR3 DisasmGC DisasmR0
|
---|
27 |
|
---|
28 | DisasmR3_TEMPLATE = VBOXR3
|
---|
29 | ifeq ($(BUILD_TARGET),win)
|
---|
30 | DisasmR3_CXXFLAGS += -EHa
|
---|
31 | else
|
---|
32 | ifneq ($(BUILD_TARGET),l4)
|
---|
33 | DisasmR3_CXXFLAGS += -fexceptions
|
---|
34 | endif
|
---|
35 | endif
|
---|
36 | DisasmR3_SOURCES = Disasm.cpp DisasmCore.cpp DisasmTables.cpp
|
---|
37 | DisasmR3_DEFS = IN_DIS_R3
|
---|
38 |
|
---|
39 | DisasmCoreR3_TEMPLATE = VBOXR3
|
---|
40 | DisasmCoreR3_SOURCES = DisasmCore.cpp DisasmTables.cpp
|
---|
41 | DisasmCoreR3_DEFS = IN_DIS_R3 DIS_CORE_ONLY
|
---|
42 |
|
---|
43 | DisasmGC_TEMPLATE = VBOXGC
|
---|
44 | DisasmGC_SOURCES = DisasmCore.cpp DisasmTables.cpp
|
---|
45 | DisasmGC_DEFS = IN_DIS_GC IN_RT_GC DIS_CORE_ONLY
|
---|
46 |
|
---|
47 | DisasmR0_TEMPLATE = VBOXR0
|
---|
48 | DisasmR0_SOURCES = DisasmCore.cpp DisasmTables.cpp
|
---|
49 | DisasmR0_DEFS = IN_DIS_R0 IN_RT_R0 DIS_CORE_ONLY
|
---|
50 |
|
---|
51 | tstDisasm_TEMPLATE = VBOXR3TSTEXE
|
---|
52 | tstDisasm_SOURCES = DisasmTest.cpp DisasmTestA.asm
|
---|
53 | tstDisasm_DEFS = IN_DIS_R3
|
---|
54 | tstDisasm_LIBS = \
|
---|
55 | $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB) \
|
---|
56 | $(LIB_RUNTIME)
|
---|
57 |
|
---|
58 | tstDisasmCore_TEMPLATE = VBOXR3TSTEXE
|
---|
59 | tstDisasmCore_SOURCES = DisasmTestCore.cpp
|
---|
60 | tstDisasmCore_DEFS = IN_DIS_R3 DIS_CORE_ONLY
|
---|
61 | tstDisasmCore_LIBS = \
|
---|
62 | $(PATH_LIB)/DisasmCoreR3$(VBOX_SUFF_LIB) \
|
---|
63 | $(LIB_RUNTIME)
|
---|
64 |
|
---|
65 | include $(PATH_KBUILD)/footer.kmk
|
---|
66 |
|
---|