1 | # $Id: Makefile.kmk 4071 2007-08-07 17:07:59Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the VBox Disassembler.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 innotek GmbH
|
---|
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 as published by the Free Software Foundation,
|
---|
13 | # in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
14 | # distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
15 | # be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 |
|
---|
17 | DEPTH = ../../..
|
---|
18 | include $(PATH_KBUILD)/header.kmk
|
---|
19 |
|
---|
20 |
|
---|
21 | PROGRAMS = tstDisasmCore tstDisasm
|
---|
22 | LIBRARIES = DisasmR3 DisasmCoreR3 DisasmGC DisasmR0
|
---|
23 |
|
---|
24 | DisasmR3_TEMPLATE = VBOXR3
|
---|
25 | ifeq ($(BUILD_TARGET),win)
|
---|
26 | DisasmR3_CXXFLAGS += -EHa
|
---|
27 | else
|
---|
28 | ifneq ($(BUILD_TARGET),l4)
|
---|
29 | DisasmR3_CXXFLAGS += -fexceptions
|
---|
30 | endif
|
---|
31 | endif
|
---|
32 | DisasmR3_SOURCES = Disasm.cpp DisasmCore.cpp DisasmTables.cpp
|
---|
33 | DisasmR3_DEFS = IN_DIS_R3
|
---|
34 |
|
---|
35 | DisasmCoreR3_TEMPLATE = VBOXR3
|
---|
36 | DisasmCoreR3_SOURCES = DisasmCore.cpp DisasmTables.cpp
|
---|
37 | DisasmCoreR3_DEFS = IN_DIS_R3 DIS_CORE_ONLY
|
---|
38 |
|
---|
39 | DisasmGC_TEMPLATE = VBOXGC
|
---|
40 | DisasmGC_SOURCES = DisasmCore.cpp DisasmTables.cpp
|
---|
41 | DisasmGC_DEFS = IN_DIS_GC IN_RT_GC DIS_CORE_ONLY
|
---|
42 |
|
---|
43 | DisasmR0_TEMPLATE = VBOXR0
|
---|
44 | DisasmR0_SOURCES = DisasmCore.cpp DisasmTables.cpp
|
---|
45 | DisasmR0_DEFS = IN_DIS_R0 IN_RT_R0 DIS_CORE_ONLY
|
---|
46 |
|
---|
47 | tstDisasm_TEMPLATE = VBOXR3TSTEXE
|
---|
48 | tstDisasm_SOURCES = DisasmTest.cpp DisasmTestA.asm
|
---|
49 | tstDisasm_DEFS = IN_DIS_R3
|
---|
50 | tstDisasm_LIBS = \
|
---|
51 | $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB) \
|
---|
52 | $(LIB_RUNTIME)
|
---|
53 |
|
---|
54 | tstDisasmCore_TEMPLATE = VBOXR3TSTEXE
|
---|
55 | tstDisasmCore_SOURCES = DisasmTestCore.cpp
|
---|
56 | tstDisasmCore_DEFS = IN_DIS_R3 DIS_CORE_ONLY
|
---|
57 | tstDisasmCore_LIBS = \
|
---|
58 | $(PATH_LIB)/DisasmCoreR3$(VBOX_SUFF_LIB) \
|
---|
59 | $(LIB_RUNTIME)
|
---|
60 |
|
---|
61 | include $(PATH_KBUILD)/footer.kmk
|
---|
62 |
|
---|