VirtualBox

source: kBuild/trunk/tests/inherit-target/Makefile.kmk@ 3610

Last change on this file since 3610 was 2413, checked in by bird, 14 years ago

copyright year update.

  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Makefile.kmk 2413 2010-09-11 17:43:04Z bird $
2## @file
3# Test - Target Inheritance.
4#
5
6#
7# Copyright (c) 2008-2010 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
27DEPTH = ../..
28include $(PATH_KBUILD)/header.kmk
29
30
31PROGRAMS += inherit-target1
32inherit-target1_TEMPLATE = TST
33inherit-target1_SOURCES = ../dummy_defined_X.c
34inherit-target1_DEFS = X=y
35
36PROGRAMS += inherit-target2
37inherit-target2_EXTENDS = inherit-target1
38
39PROGRAMS += inherit-target3
40inherit-target3_EXTENDS = inherit-target2
41
42PROGRAMS += inherit-target4
43inherit-target4_EXTENDS = inherit-target3
44
45PROGRAMS += inherit-target5
46inherit-target5_EXTENDS = inherit-target3
47
48# out of target order.
49PROGRAMS += inherit-target6
50inherit-target6_EXTENDS = inherit-target9
51
52PROGRAMS += inherit-target7
53inherit-target7_EXTENDS = inherit-target1
54
55PROGRAMS += inherit-target8
56inherit-target8_EXTENDS = inherit-target7
57
58PROGRAMS += inherit-target9
59inherit-target9_EXTENDS = inherit-target8
60
61
62# More complicated, with a couple of SDKs and TEMPLATES.
63SDK_inh1 = target inherit test sdk 1
64SDK_inh1_DEFS = Z=42
65
66SDK_inh2 = target inherit test sdk 2
67SDK_inh2_DEFS = Y=128
68
69SDK_inh3 = target inherit test sdk 3
70SDK_inh3_DEFS = P=42
71
72TEMPLATE_inh1 = target inherit test template 1
73TEMPLATE_inh1_EXTENDS = TST
74TEMPLATE_inh1_DEFS = Q=256
75
76PROGRAMS += inherit-target10
77inherit-target10_TEMPLATE = inh1
78inherit-target10_SOURCES = ../dummy_defined_X.c
79inherit-target10_SDKS = inh1 inh2
80inherit-target10_DEFS = X=Z
81
82PROGRAMS += inherit-target11
83inherit-target11_EXTENDS = inherit-target10
84inherit-target11_SOURCES = ../dummy_defined_Y.c
85inherit-target11_SDKS = inh3
86inherit-target11_DEFS = Y=P
87
88
89include $(FILE_KBUILD_FOOTER)
90
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