1 | # $Id: Makefile.kmk 5999 2007-12-07 15:05:06Z 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 (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 |
|
---|
18 | DEPTH = ../../..
|
---|
19 | include $(PATH_KBUILD)/header.kmk
|
---|
20 |
|
---|
21 |
|
---|
22 | PROGRAMS = tstDisasmCore tstDisasm
|
---|
23 | LIBRARIES = DisasmR3 DisasmCoreR3 DisasmGC DisasmR0
|
---|
24 |
|
---|
25 | DisasmR3_TEMPLATE = VBOXR3
|
---|
26 | ifeq ($(BUILD_TARGET),win)
|
---|
27 | DisasmR3_CXXFLAGS += -EHa
|
---|
28 | else
|
---|
29 | ifneq ($(BUILD_TARGET),l4)
|
---|
30 | DisasmR3_CXXFLAGS += -fexceptions
|
---|
31 | endif
|
---|
32 | endif
|
---|
33 | DisasmR3_SOURCES = Disasm.cpp DisasmCore.cpp DisasmTables.cpp
|
---|
34 | DisasmR3_DEFS = IN_DIS_R3
|
---|
35 |
|
---|
36 | DisasmCoreR3_TEMPLATE = VBOXR3
|
---|
37 | DisasmCoreR3_SOURCES = DisasmCore.cpp DisasmTables.cpp
|
---|
38 | DisasmCoreR3_DEFS = IN_DIS_R3 DIS_CORE_ONLY
|
---|
39 |
|
---|
40 | DisasmGC_TEMPLATE = VBOXGC
|
---|
41 | DisasmGC_SOURCES = DisasmCore.cpp DisasmTables.cpp
|
---|
42 | DisasmGC_DEFS = IN_DIS_GC IN_RT_GC DIS_CORE_ONLY
|
---|
43 |
|
---|
44 | DisasmR0_TEMPLATE = VBOXR0
|
---|
45 | DisasmR0_SOURCES = DisasmCore.cpp DisasmTables.cpp
|
---|
46 | DisasmR0_DEFS = IN_DIS_R0 IN_RT_R0 DIS_CORE_ONLY
|
---|
47 |
|
---|
48 | tstDisasm_TEMPLATE = VBOXR3TSTEXE
|
---|
49 | tstDisasm_SOURCES = DisasmTest.cpp DisasmTestA.asm
|
---|
50 | tstDisasm_DEFS = IN_DIS_R3
|
---|
51 | tstDisasm_LIBS = \
|
---|
52 | $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB) \
|
---|
53 | $(LIB_RUNTIME)
|
---|
54 |
|
---|
55 | tstDisasmCore_TEMPLATE = VBOXR3TSTEXE
|
---|
56 | tstDisasmCore_SOURCES = DisasmTestCore.cpp
|
---|
57 | tstDisasmCore_DEFS = IN_DIS_R3 DIS_CORE_ONLY
|
---|
58 | tstDisasmCore_LIBS = \
|
---|
59 | $(PATH_LIB)/DisasmCoreR3$(VBOX_SUFF_LIB) \
|
---|
60 | $(LIB_RUNTIME)
|
---|
61 |
|
---|
62 | include $(PATH_KBUILD)/footer.kmk
|
---|
63 |
|
---|