1 | # $Id: Makefile.kmk 11732 2008-08-28 00:33:34Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the Shared Folders Host Service testcases.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
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 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
18 | # Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
19 | # additional information or have any questions.
|
---|
20 | #
|
---|
21 |
|
---|
22 | ifdef VBOX_KBUILD_HACKING
|
---|
23 | SUB_DEPTH = ../../../..
|
---|
24 | else
|
---|
25 | DEPTH ?= ../../../..
|
---|
26 | SUB_DEPTH = ..
|
---|
27 | endif
|
---|
28 | include $(KBUILD_PATH)/subheader.kmk
|
---|
29 |
|
---|
30 | PROGRAMS += tstShflSizes
|
---|
31 | tstShflSizes_TEMPLATE = VBOXR3TSTEXE
|
---|
32 | tstShflSizes_DEFS = VBOX_HGCM
|
---|
33 | tstShflSizes_SOURCES = tstShflSizes.cpp
|
---|
34 |
|
---|
35 | ifdef VBOX_WITH_TESTCASES
|
---|
36 | #
|
---|
37 | # Structure size testcase.
|
---|
38 | #
|
---|
39 | PROGRAMS += tstShflCase
|
---|
40 | TESTING += $(PATH_TARGET)/tstShflSizes.run
|
---|
41 |
|
---|
42 | tstShflCase_TEMPLATE = VBOXR3TSTEXE
|
---|
43 | tstShflCase_DEFS = VBOX_HGCM
|
---|
44 | tstShflCase_SOURCES = tstShflCase.cpp
|
---|
45 | tstShflCase_LIBS = $(LIB_RUNTIME)
|
---|
46 | tstShflCase_CLEAN = $(PATH_TARGET)/tstShflSizes.run
|
---|
47 |
|
---|
48 | endif # VBOX_WITH_TESTCASES
|
---|
49 |
|
---|
50 | ifndef VBOX_ONLY_SDK
|
---|
51 | ifeq ($(KBUILD_TARGET),$(KBUILD_HOST))
|
---|
52 | if1of ($(KBUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH), x86.x86 amd64.amd64 x86.amd64)
|
---|
53 | OTHERS += $(PATH_TARGET)/tstShflSizes.run
|
---|
54 | endif
|
---|
55 | endif
|
---|
56 | endif
|
---|
57 |
|
---|
58 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
59 |
|
---|
60 | $(PATH_TARGET)/tstShflSizes.run: $$(INSTARGET_tstShflSizes)
|
---|
61 | $(QUIET)$(RM) -f $@
|
---|
62 | $(INSTARGET_tstShflSizes) quiet
|
---|
63 | $(QUIET)$(APPEND) "$@" "done"
|
---|
64 |
|
---|