VirtualBox

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

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

Makefiles: VBOX_KBUILD_HACKING -> VBOX_SINGLE_MAKEFILE

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