A WinDDK SDK that targets Windows Vista and Windows Server 2008 (KBUILD_TARGET_ARCH).
[kbuild-mirror.git] / tests / inherit-target / Makefile.kmk
blob301d96ed5bfbaa1d76949ff44aed0906b934cdbb
1 # $Id$
2 ## @file
3 # Test - Target Inheritance.
7 # Copyright (c) 2008 knut st. osmundsen <bird-src-spam@anduin.net>
9 # This file is part of kBuild.
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.
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.
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
27 DEPTH = ../..
28 include $(PATH_KBUILD)/header.kmk
31 PROGRAMS += inherit-target1
32 inherit-target1_TEMPLATE = TST
33 inherit-target1_SOURCES = ../dummy_defined_X.c
34 inherit-target1_DEFS = X=y
36 PROGRAMS += inherit-target2
37 inherit-target2_EXTENDS = inherit-target1
39 PROGRAMS += inherit-target3
40 inherit-target3_EXTENDS = inherit-target2
42 PROGRAMS += inherit-target4
43 inherit-target4_EXTENDS = inherit-target3
45 PROGRAMS += inherit-target5
46 inherit-target5_EXTENDS = inherit-target3
48 # out of target order.
49 PROGRAMS += inherit-target6
50 inherit-target6_EXTENDS = inherit-target9
52 PROGRAMS += inherit-target7
53 inherit-target7_EXTENDS = inherit-target1
55 PROGRAMS += inherit-target8
56 inherit-target8_EXTENDS = inherit-target7
58 PROGRAMS += inherit-target9
59 inherit-target9_EXTENDS = inherit-target8
62 # More complicated, with a couple of SDKs and TEMPLATES.
63 SDK_inh1 = target inherit test sdk 1
64 SDK_inh1_DEFS = Z=42
66 SDK_inh2 = target inherit test sdk 2
67 SDK_inh2_DEFS = Y=128
69 SDK_inh3 = target inherit test sdk 3
70 SDK_inh3_DEFS = P=42
72 TEMPLATE_inh1 = target inherit test template 1
73 TEMPLATE_inh1_EXTENDS = TST
74 TEMPLATE_inh1_DEFS = Q=256
76 PROGRAMS += inherit-target10
77 inherit-target10_TEMPLATE = inh1
78 inherit-target10_SOURCES = ../dummy_defined_X.c
79 inherit-target10_SDKS = inh1 inh2
80 inherit-target10_DEFS = X=Z
82 PROGRAMS += inherit-target11
83 inherit-target11_EXTENDS = inherit-target10
84 inherit-target11_SOURCES = ../dummy_defined_Y.c
85 inherit-target11_SDKS = inh3
86 inherit-target11_DEFS = Y=P
89 include $(FILE_KBUILD_FOOTER)