VirtualBox

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

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

[Mm]akefile -> Makefile.kmk

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Makefile.kmk 2478 2007-05-04 00:46:16Z vboxsync $
2## @file
3# Makefile for the Devices testcases.
4#
5
6#
7# Copyright (C) 2006 InnoTek Systemberatung 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#
17# If you received this file as part of a commercial VirtualBox
18# distribution, then only the terms of your commercial VirtualBox
19# license agreement apply instead of the previous paragraph.
20#
21
22DEPTH = ../../../..
23include $(PATH_KBUILD)/header.kmk
24
25#
26# Target lists.
27#
28PROGRAMS = tstDeviceStructSize tstDeviceStructSizeGC
29
30
31#
32# We setup one 'other' targets for executing the structure & alignment
33# validation testcases. Perhaps a bit hackish, but extremely useful.
34#
35ifeq ($(BUILD_TARGET),$(BUILD_PLATFORM))
36 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(BUILD_TARGET_ARCH).$(BUILD_PLATFORM_ARCH)),)
37 OTHERS += \
38 $(PATH_TARGET)/tstDeviceStructSize.run
39 endif
40endif
41OTHER_CLEAN += \
42 $(PATH_TARGET)/tstDeviceStructSizeGC.h \
43 $(PATH_TARGET)/tstDeviceStructSize.run \
44
45#
46# The testcase generator.
47#
48tstDeviceStructSizeGC_TEMPLATE = VBOXGCEXE
49tstDeviceStructSizeGC_DEFS =
50ifdef VBOX_WITH_USB
51tstDeviceStructSizeGC_DEFS += VBOX_WITH_USB IN_USB_GC
52endif
53tstDeviceStructSizeGC_SOURCES = tstDeviceStructSizeGC.cpp
54tstDeviceStructSizeGC_INCS = .. ../Bus
55
56#
57# The testcase it self.
58#
59tstDeviceStructSize_TEMPLATE = VBOXR3EXE
60tstDeviceStructSize_DEFS =
61ifdef VBOX_WITH_USB
62tstDeviceStructSize_DEFS += VBOX_WITH_USB IN_USB_GC
63endif
64tstDeviceStructSize_INCS = .. ../Bus $(PATH_TARGET)
65tstDeviceStructSize_SOURCES = tstDeviceStructSize.cpp
66tstDeviceStructSize_LIBS.l4 = $(LIB_RUNTIME)
67tstDeviceStructSize.cpp_DEPS = $(PATH_TARGET)/tstDeviceStructSizeGC.h
68
69
70include $(PATH_KBUILD)/footer.kmk
71
72
73#
74# Run rule for tstDeviceStructSize.
75#
76
77# 1. Dump selected structure in the VMMGC.gc debug info.
78# 2. Generate a testcase from the dump
79## future
80
81# 1&2. Manually dump selected structures and members.
82$(PATH_TARGET)/tstDeviceStructSizeGC.h: $(INSTARGET_tstDeviceStructSizeGC)
83 $(call MSG_GENERATE,,$@)
84 $(QUIET)$(INSTARGET_tstDeviceStructSizeGC) > $@
85
86# 3. run it.
87$(PATH_TARGET)/tstDeviceStructSize.run: $(INSTARGET_tstDeviceStructSize)
88 $(QUIET)$(RM) -f $@
89 $^
90 $(QUIET)$(APPEND) "$@" "done"
91
92# alias for the struct test.
93run-struct-tests: $(PATH_TARGET)/tstDeviceStructSize.run
94
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