VirtualBox

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

Last change on this file since 5419 was 4071, checked in by vboxsync, 18 years ago

Biggest check-in ever. New source code headers for all (C) innotek files.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Makefile.kmk 4071 2007-08-07 17:07:59Z 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 as published by the Free Software Foundation,
13# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
14# distribution. VirtualBox OSE is distributed in the hope that it will
15# be useful, but WITHOUT ANY WARRANTY of any kind.
16
17DEPTH ?= ../../../..
18SUB_DEPTH = ..
19include $(PATH_KBUILD)/subheader.kmk
20
21#
22# We setup one 'other' target for executing the structure & alignment
23# validation testcases. Perhaps a bit hackish, but extremely useful.
24#
25ifeq ($(BUILD_TARGET),$(BUILD_PLATFORM))
26 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(BUILD_TARGET_ARCH).$(BUILD_PLATFORM_ARCH)),)
27 OTHERS += \
28 $(PATH_TARGET)/tstDeviceStructSize.run
29 endif
30endif
31
32#
33# Globals
34#
35VBOX_PATH_DEVICES_SRC = $(PATH_SUB_ROOT)
36
37#
38# The testcase generator.
39#
40PROGRAMS += tstDeviceStructSizeGC
41tstDeviceStructSizeGC_TEMPLATE = VBOXGCEXE
42tstDeviceStructSizeGC_DEFS =
43ifdef VBOX_WITH_USB
44tstDeviceStructSizeGC_DEFS += VBOX_WITH_USB IN_USB_GC
45endif
46tstDeviceStructSizeGC_SOURCES = tstDeviceStructSizeGC.cpp
47tstDeviceStructSizeGC_INCS = \
48 $(VBOX_PATH_DEVICES_SRC) \
49 $(VBOX_PATH_DEVICES_SRC)/Bus \
50 $(PATH_TARGET)
51
52#
53# The testcase it self.
54#
55PROGRAMS += tstDeviceStructSize
56tstDeviceStructSize_TEMPLATE = VBOXR3EXE
57tstDeviceStructSize_DEFS =
58ifdef VBOX_WITH_USB
59tstDeviceStructSize_DEFS += VBOX_WITH_USB IN_USB_GC
60endif
61tstDeviceStructSize_INCS = \
62 $(VBOX_PATH_DEVICES_SRC) \
63 $(VBOX_PATH_DEVICES_SRC)/Bus \
64 $(PATH_TARGET)
65tstDeviceStructSize_SOURCES = tstDeviceStructSize.cpp
66tstDeviceStructSize_LIBS.l4 = $(LIB_RUNTIME)
67tstDeviceStructSize_CLEAN = \
68 $(PATH_TARGET)/tstDeviceStructSizeGC.h \
69 $(PATH_TARGET)/tstDeviceStructSizeGC.run
70tstDeviceStructSize.cpp_DEPS = $(PATH_TARGET)/tstDeviceStructSizeGC.h
71
72#
73# Run rule for tstDeviceStructSize.
74#
75
76# 1. Dump selected structure in the VMMGC.gc debug info.
77# 2. Generate a testcase from the dump
78## future
79
80# 1&2. Manually dump selected structures and members.
81$(PATH_TARGET)/tstDeviceStructSizeGC.h: $$(INSTARGET_tstDeviceStructSizeGC)
82 $(call MSG_GENERATE,,$@)
83 $(QUIET)$(INSTARGET_tstDeviceStructSizeGC) > $@
84
85# 3. run it.
86$(PATH_TARGET)/tstDeviceStructSize.run: $$(INSTARGET_tstDeviceStructSize)
87 $(QUIET)$(RM) -f $@
88 $^
89 $(QUIET)$(APPEND) "$@" "done"
90
91# alias for the struct test.
92run-struct-tests: $(PATH_TARGET)/tstDeviceStructSize.run
93
94
95include $(PATH_KBUILD)/subfooter.kmk
96
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette