VirtualBox

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

Last change on this file since 10809 was 10050, checked in by vboxsync, 16 years ago

VBOX_KBUILD_HACKING

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