VirtualBox

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

Last change on this file since 6290 was 5999, checked in by vboxsync, 17 years ago

The Giant CDDL Dual-License Header Change.

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