VirtualBox

source: vbox/trunk/src/VBox/Devices/testcase/Makefile.kmk@ 8465

Last change on this file since 8465 was 8155, checked in by vboxsync, 17 years ago

The Big Sun Rebranding Header Change

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# $Id: Makefile.kmk 8155 2008-04-18 15:16:47Z vboxsync $
2## @file
3# Sub-Makefile for the Devices testcases.
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 $(PATH_KBUILD)/subheader.kmk
25
26#
27# We setup one 'other' target for executing the structure & alignment
28# validation testcases. Perhaps a bit hackish, but extremely useful.
29#
30ifeq ($(BUILD_TARGET),$(BUILD_PLATFORM))
31 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(BUILD_TARGET_ARCH).$(BUILD_PLATFORM_ARCH)),)
32 OTHERS += \
33 $(PATH_TARGET)/tstDeviceStructSize.run
34 endif
35endif
36
37#
38# Globals
39#
40VBOX_PATH_DEVICES_SRC = $(PATH_SUB_ROOT)
41
42#
43# The testcase generator.
44#
45PROGRAMS += tstDeviceStructSizeGC
46tstDeviceStructSizeGC_TEMPLATE = VBOXGCEXE
47tstDeviceStructSizeGC_DEFS =
48ifdef VBOX_WITH_USB
49tstDeviceStructSizeGC_DEFS += VBOX_WITH_USB IN_USB_GC
50endif
51ifdef VBOX_WITH_AHCI
52tstDeviceStructSizeGC_DEFS += VBOX_WITH_AHCI
53endif
54ifdef VBOX_WITH_E1000
55tstDeviceStructSizeGC_DEFS += VBOX_WITH_E1000
56endif
57tstDeviceStructSizeGC_SOURCES = tstDeviceStructSizeGC.cpp
58tstDeviceStructSizeGC_INCS = \
59 $(VBOX_PATH_DEVICES_SRC) \
60 $(VBOX_PATH_DEVICES_SRC)/Bus \
61 $(PATH_TARGET)
62
63#
64# The testcase it self.
65#
66PROGRAMS += tstDeviceStructSize
67tstDeviceStructSize_TEMPLATE = VBOXR3EXE
68tstDeviceStructSize_DEFS =
69ifdef VBOX_WITH_USB
70tstDeviceStructSize_DEFS += VBOX_WITH_USB IN_USB_GC
71endif
72ifdef VBOX_WITH_AHCI
73tstDeviceStructSize_DEFS += VBOX_WITH_AHCI
74endif
75ifdef VBOX_WITH_E1000
76tstDeviceStructSize_DEFS += VBOX_WITH_E1000
77endif
78tstDeviceStructSize_INCS = \
79 $(VBOX_PATH_DEVICES_SRC) \
80 $(VBOX_PATH_DEVICES_SRC)/Bus \
81 $(PATH_TARGET)
82tstDeviceStructSize_SOURCES = tstDeviceStructSize.cpp
83tstDeviceStructSize_LIBS.l4 = $(LIB_RUNTIME)
84tstDeviceStructSize_CLEAN = \
85 $(PATH_TARGET)/tstDeviceStructSizeGC.h \
86 $(PATH_TARGET)/tstDeviceStructSizeGC.run
87tstDeviceStructSize.cpp_DEPS = $(PATH_TARGET)/tstDeviceStructSizeGC.h
88
89#
90# Run rule for tstDeviceStructSize.
91#
92
93# 1. Dump selected structure in the VMMGC.gc debug info.
94# 2. Generate a testcase from the dump
95## future
96
97# 1&2. Manually dump selected structures and members.
98$(PATH_TARGET)/tstDeviceStructSizeGC.h: $$(INSTARGET_tstDeviceStructSizeGC)
99 $(call MSG_GENERATE,,$@)
100 $(QUIET)$(REDIRECT) -wo $@ -- $(INSTARGET_tstDeviceStructSizeGC)
101
102# 3. run it.
103$(PATH_TARGET)/tstDeviceStructSize.run: $$(INSTARGET_tstDeviceStructSize)
104 $(QUIET)$(RM) -f $@
105 $^
106 $(QUIET)$(APPEND) "$@" "done"
107
108# alias for the struct test.
109run-struct-tests: $(PATH_TARGET)/tstDeviceStructSize.run
110
111
112include $(PATH_KBUILD)/subfooter.kmk
113
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