VirtualBox

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

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

huh? lets try remove + add

  • Property svn:keywords set to Id
File size: 2.6 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#
30# We setup one 'other' targets for executing the structure & alignment
31# validation testcases. Perhaps a bit hackish, but extremely useful.
32#
33ifeq ($(BUILD_TARGET),$(BUILD_PLATFORM))
34 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(BUILD_TARGET_ARCH).$(BUILD_PLATFORM_ARCH)),)
35 OTHERS += \
36 $(PATH_TARGET)/tstDeviceStructSize.run
37 endif
38endif
39OTHER_CLEAN += \
40 $(PATH_TARGET)/tstDeviceStructSizeGC.h \
41 $(PATH_TARGET)/tstDeviceStructSize.run \
42
43#
44# The testcase generator.
45#
46tstDeviceStructSizeGC_TEMPLATE = VBOXGCEXE
47tstDeviceStructSizeGC_DEFS =
48ifdef VBOX_WITH_USB
49tstDeviceStructSizeGC_DEFS += VBOX_WITH_USB IN_USB_GC
50endif
51tstDeviceStructSizeGC_SOURCES = tstDeviceStructSizeGC.cpp
52tstDeviceStructSizeGC_INCS = .. ../Bus
53
54#
55# The testcase it self.
56#
57tstDeviceStructSize_TEMPLATE = VBOXR3EXE
58tstDeviceStructSize_DEFS =
59ifdef VBOX_WITH_USB
60tstDeviceStructSize_DEFS += VBOX_WITH_USB IN_USB_GC
61endif
62tstDeviceStructSize_INCS = .. ../Bus $(PATH_TARGET)
63tstDeviceStructSize_SOURCES = tstDeviceStructSize.cpp
64tstDeviceStructSize_LIBS.l4 = $(LIB_RUNTIME)
65tstDeviceStructSize.cpp_DEPS = $(PATH_TARGET)/tstDeviceStructSizeGC.h
66
67
68include $(PATH_KBUILD)/footer.kmk
69
70
71#
72# Run rule for tstDeviceStructSize.
73#
74
75# 1. Dump selected structure in the VMMGC.gc debug info.
76# 2. Generate a testcase from the dump
77## future
78
79# 1&2. Manually dump selected structures and members.
80$(PATH_TARGET)/tstDeviceStructSizeGC.h: $(INSTARGET_tstDeviceStructSizeGC)
81 $(call MSG_L1,Generating $<)
82 $(QUIET)$(INSTARGET_tstDeviceStructSizeGC) > $@
83
84# 3. run it.
85$(PATH_TARGET)/tstDeviceStructSize.run: $(INSTARGET_tstDeviceStructSize)
86 $(QUIET)$(RM) -f $@
87 $^
88 $(QUIET)$(APPEND) "$@" "done"
89
90# alias for the struct test.
91run-struct-tests: $(PATH_TARGET)/tstDeviceStructSize.run
92
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