VirtualBox

source: kBuild/trunk/tests/inherit-bld/Makefile.kmk@ 1405

Last change on this file since 1405 was 1405, checked in by bird, 17 years ago

test case fixes / concept.

  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Makefile.kmk 1405 2008-03-17 18:08:13Z bird $
2## @file
3# Test - Build Type Inheritance.
4#
5
6#
7# Copyright (c) 2008 knut st. osmundsen <[email protected]>
8#
9# This file is part of kBuild.
10#
11# kBuild is free software; you can redistribute it and/or modify
12# it under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 2 of the License, or
14# (at your option) any later version.
15#
16# kBuild is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with kBuild; if not, write to the Free Software
23# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24#
25#
26
27
28DEPTH = ../..
29include $(PATH_KBUILD)/header.kmk
30
31
32# Plain setup just for a reality check.
33PROGRAMS += inherit-bld1
34inherit-bld1_TEMPLATE = TST
35inherit-bld1_DEFS = X=y
36inherit-bld1_SOURCES = ../dummy_defined_X.c
37
38# Test that the BLD_TYPE feature works.
39PROGRAMS += inherit-bld2
40inherit-bld2_TEMPLATE = TST
41inherit-bld2_BLD_TYPE = debug
42inherit-bld2_DEFS.debug = X=y
43inherit-bld2_SOURCES = ../dummy_defined_X.c
44
45# Test that an simple alternative build type works.
46PROGRAMS += inherit-bld3
47inherit-bld3_TEMPLATE = TST
48inherit-bld3_BLD_TYPE = dbgbld3
49inherit-bld3_DEFS.dbgbld3 = X=y
50inherit-bld3_SOURCES = ../dummy_defined_X.c
51
52# Test that default build type inheritance works - dbgbld4 extends dbgbld3.
53PROGRAMS += inherit-bld4
54inherit-bld4_TEMPLATE = TST
55inherit-bld4_BLD_TYPE = dbgbld4
56inherit-bld4_DEFS.dbgbld3 = X=y
57inherit-bld4_DEFS.dbgbld4 = $(inherit-bld4_DEFS.dbgbld3) # remove me
58inherit-bld4_SOURCES = ../dummy_defined_X.c
59
60# Test that appending build type inheritance works - dbgbld5 extends dbgbld3.
61PROGRAMS += inherit-bld5
62inherit-bld5_TEMPLATE = TST
63inherit-bld5_BLD_TYPE = dbgbld5
64inherit-bld5_DEFS.dbgbld3 = X=y y=0
65#inherit-bld5_DEFS.dbgbld5 = y=42
66inherit-bld5_DEFS.dbgbld5 = $(inherit-bld5_DEFS.dbgbld3) y=42 # remove me
67inherit-bld5_SOURCES = ../dummy_defined_X.c
68
69# Test that prepending build type inheritance works - dbgbld6 extends dbgbld3.
70PROGRAMS += inherit-bld6
71inherit-bld6_TEMPLATE = TST
72inherit-bld6_BLD_TYPE = dbgbld6
73inherit-bld6_DEFS.dbgbld3 = X=y y=42
74#inherit-bld6_DEFS.dbgbld6 = y=0
75inherit-bld6_DEFS.dbgbld6 = y=0 $(inherit-bld6_DEFS.dbgbld3) # remove me
76inherit-bld6_SOURCES = ../dummy_defined_X.c
77
78
79include $(PATH_KBUILD)/footer.kmk
80
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