VirtualBox

source: vbox/trunk/src/VBox/Disassembler/Makefile.kmk@ 9663

Last change on this file since 9663 was 9266, checked in by vboxsync, 17 years ago

DISFormatYasm(Ex).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# $Id: Makefile.kmk 9266 2008-05-31 02:32:20Z 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
22DEPTH ?= ../../..
23SUB_DEPTH = .
24include $(KBUILD_PATH)/subheader.kmk
25
26# include the sub-makefile first.
27ifdef VBOX_WITH_TESTCASES
28 include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
29endif
30
31
32LIBRARIES += DisasmR3
33DisasmR3_TEMPLATE = VBOXR3
34DisasmR3_DEFS = IN_DIS_R3
35ifeq ($(KBUILD_TARGET),win)
36DisasmR3_CXXFLAGS += -EHa
37else ifneq ($(KBUILD_TARGET),l4)
38DisasmR3_CXXFLAGS += -fexceptions
39endif
40DisasmR3_SOURCES = \
41 Disasm.cpp \
42 DisasmCore.cpp \
43 DisasmReg.cpp \
44 DisasmTables.cpp \
45 DisasmTablesX64.cpp \
46 DisasmFormatBytes.cpp \
47 DisasmFormatYasm.cpp
48
49LIBRARIES += DisasmCoreR3
50DisasmCoreR3_TEMPLATE = VBOXR3
51DisasmCoreR3_DEFS = IN_DIS_R3 DIS_CORE_ONLY
52DisasmCoreR3_SOURCES = \
53 DisasmCore.cpp \
54 DisasmReg.cpp \
55 DisasmTables.cpp \
56 DisasmTablesX64.cpp
57
58LIBRARIES += DisasmGC
59DisasmGC_TEMPLATE = VBOXGC
60DisasmGC_DEFS = IN_DIS_GC IN_RT_GC DIS_CORE_ONLY
61DisasmGC_SOURCES = \
62 DisasmCore.cpp \
63 DisasmReg.cpp \
64 DisasmTables.cpp \
65 DisasmTablesX64.cpp
66
67LIBRARIES += DisasmR0
68DisasmR0_TEMPLATE = VBOXR0
69DisasmR0_DEFS = IN_DIS_R0 IN_RT_R0 DIS_CORE_ONLY
70DisasmR0_SOURCES = \
71 DisasmCore.cpp \
72 DisasmReg.cpp \
73 DisasmTables.cpp \
74 DisasmTablesX64.cpp
75
76
77ifdef VBOX_WITH_TESTCASES
78 # testcase that hasn't been moved yet.
79 PROGRAMS += tstDisasm
80 tstDisasm_TEMPLATE = VBOXR3TSTEXE
81 tstDisasm_DEFS = IN_DIS_R3
82 tstDisasm_SOURCES = DisasmTest.cpp DisasmTestA.asm
83 tstDisasm_LIBS = \
84 $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB) \
85 $(LIB_RUNTIME)
86
87 PROGRAMS += tstDisasmCore
88 tstDisasmCore_TEMPLATE = VBOXR3TSTEXE
89 tstDisasmCore_DEFS = IN_DIS_R3 DIS_CORE_ONLY
90 tstDisasmCore_SOURCES = DisasmTestCore.cpp
91 tstDisasmCore_LIBS = \
92 $(PATH_LIB)/DisasmCoreR3$(VBOX_SUFF_LIB) \
93 $(LIB_RUNTIME)
94endif # VBOX_WITH_TESTCASES
95
96
97include $(KBUILD_PATH)/subfooter.kmk
98
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette