VirtualBox

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

Last change on this file since 16684 was 12989, checked in by vboxsync, 16 years ago

VMM + VBox/cdefs.h: consolidated all the XYZ*DECLS of the VMM into VMM*DECL. Removed dead DECL and IN_XYZ* macros.

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