VirtualBox

source: vbox/trunk/src/VBox/Devices/testcase/Makefile@ 2285

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

TMCLOCK_VIRTUAL_SYNC changes. (define VBOX_WITH_VIRTUAL_SYNC_TIMERS to enable)

  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1#
2# Makefile for the Devices testcases.
3#
4
5#
6# Copyright (C) 2006 InnoTek Systemberatung GmbH
7#
8# This file is part of VirtualBox Open Source Edition (OSE), as
9# available from http://www.virtualbox.org. This file is free software;
10# you can redistribute it and/or modify it under the terms of the GNU
11# General Public License as published by the Free Software Foundation,
12# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
13# distribution. VirtualBox OSE is distributed in the hope that it will
14# be useful, but WITHOUT ANY WARRANTY of any kind.
15#
16# If you received this file as part of a commercial VirtualBox
17# distribution, then only the terms of your commercial VirtualBox
18# license agreement apply instead of the previous paragraph.
19#
20
21DEPTH = ../../../..
22include $(PATH_KBUILD)/header.kmk
23
24#
25# Target lists.
26#
27PROGRAMS = tstDeviceStructSize tstDeviceStructSizeGC
28
29# temp hack.
30ifeq ($(USERNAME),bird)
31 DEFS += VBOX_WITH_VIRTUAL_SYNC_TIMERS
32endif
33
34
35#
36# We setup one 'other' targets for executing the structure & alignment
37# validation testcases. Perhaps a bit hackish, but extremely useful.
38#
39ifeq ($(BUILD_TARGET),$(BUILD_PLATFORM))
40 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(BUILD_TARGET_ARCH).$(BUILD_PLATFORM_ARCH)),)
41 OTHERS += \
42 $(PATH_TARGET)/tstDeviceStructSize.run
43 endif
44endif
45OTHER_CLEAN += \
46 $(PATH_TARGET)/tstDeviceStructSizeGC.h \
47 $(PATH_TARGET)/tstDeviceStructSize.run \
48
49#
50# The testcase generator.
51#
52tstDeviceStructSizeGC_TEMPLATE = VBOXGCEXE
53tstDeviceStructSizeGC_DEFS =
54ifdef VBOX_WITH_USB
55tstDeviceStructSizeGC_DEFS += VBOX_WITH_USB IN_USB_GC
56endif
57tstDeviceStructSizeGC_SOURCES = tstDeviceStructSizeGC.cpp
58tstDeviceStructSizeGC_INCS = .. ../Bus
59
60#
61# The testcase it self.
62#
63tstDeviceStructSize_TEMPLATE = VBOXR3EXE
64tstDeviceStructSize_DEFS =
65ifdef VBOX_WITH_USB
66tstDeviceStructSize_DEFS += VBOX_WITH_USB IN_USB_GC
67endif
68tstDeviceStructSize_INCS = .. ../Bus $(PATH_TARGET)
69tstDeviceStructSize_SOURCES = tstDeviceStructSize.cpp
70tstDeviceStructSize_LIBS.l4 = $(LIB_RUNTIME)
71tstDeviceStructSize.cpp_DEPS = $(PATH_TARGET)/tstDeviceStructSizeGC.h
72
73
74include $(PATH_KBUILD)/footer.kmk
75
76
77#
78# Run rule for tstDeviceStructSize.
79#
80
81# 1. Dump selected structure in the VMMGC.gc debug info.
82# 2. Generate a testcase from the dump
83## future
84
85# 1&2. Manually dump selected structures and members.
86$(PATH_TARGET)/tstDeviceStructSizeGC.h: $(INSTARGET_tstDeviceStructSizeGC)
87 $(call MSG_L1,Generating $<)
88 $(QUIET)$(INSTARGET_tstDeviceStructSizeGC) > $@
89
90# 3. run it.
91$(PATH_TARGET)/tstDeviceStructSize.run: $(INSTARGET_tstDeviceStructSize)
92 $(QUIET)$(RM) -f $@
93 $^
94 $(QUIET)$(APPEND) "$@" "done"
95
96# alias for the struct test.
97run-struct-tests: $(PATH_TARGET)/tstDeviceStructSize.run
98
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