VirtualBox

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

Last change on this file since 9016 was 8937, checked in by vboxsync, 17 years ago

Wrote up the makefile bits or the dissassembler test 'framework' and hacked together a yasmification of the DIS output sufficient to make the current tests work.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Makefile.kmk 8937 2008-05-20 00:52:26Z 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
47LIBRARIES += DisasmCoreR3
48DisasmCoreR3_TEMPLATE = VBOXR3
49DisasmCoreR3_DEFS = IN_DIS_R3 DIS_CORE_ONLY
50DisasmCoreR3_SOURCES = \
51 DisasmCore.cpp \
52 DisasmReg.cpp \
53 DisasmTables.cpp \
54 DisasmTablesX64.cpp
55
56LIBRARIES += DisasmGC
57DisasmGC_TEMPLATE = VBOXGC
58DisasmGC_DEFS = IN_DIS_GC IN_RT_GC DIS_CORE_ONLY
59DisasmGC_SOURCES = \
60 DisasmCore.cpp \
61 DisasmReg.cpp \
62 DisasmTables.cpp \
63 DisasmTablesX64.cpp
64
65LIBRARIES += DisasmR0
66DisasmR0_TEMPLATE = VBOXR0
67DisasmR0_DEFS = IN_DIS_R0 IN_RT_R0 DIS_CORE_ONLY
68DisasmR0_SOURCES = \
69 DisasmCore.cpp \
70 DisasmReg.cpp \
71 DisasmTables.cpp \
72 DisasmTablesX64.cpp
73
74
75ifdef VBOX_WITH_TESTCASES
76 # testcase that hasn't been moved yet.
77 PROGRAMS += tstDisasm
78 tstDisasm_TEMPLATE = VBOXR3TSTEXE
79 tstDisasm_DEFS = IN_DIS_R3
80 tstDisasm_SOURCES = DisasmTest.cpp DisasmTestA.asm
81 tstDisasm_LIBS = \
82 $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB) \
83 $(LIB_RUNTIME)
84
85 PROGRAMS += tstDisasmCore
86 tstDisasmCore_TEMPLATE = VBOXR3TSTEXE
87 tstDisasmCore_DEFS = IN_DIS_R3 DIS_CORE_ONLY
88 tstDisasmCore_SOURCES = DisasmTestCore.cpp
89 tstDisasmCore_LIBS = \
90 $(PATH_LIB)/DisasmCoreR3$(VBOX_SUFF_LIB) \
91 $(LIB_RUNTIME)
92endif # VBOX_WITH_TESTCASES
93
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