[1398] | 1 | # $Id: Makefile.kmk 2413 2010-09-11 17:43:04Z bird $
|
---|
| 2 | ## @file
|
---|
| 3 | # Test - Target Inheritance.
|
---|
| 4 | #
|
---|
| 5 |
|
---|
| 6 | #
|
---|
[2413] | 7 | # Copyright (c) 2008-2010 knut st. osmundsen <bird-kBuild-spamx@anduin.net>
|
---|
[1398] | 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 | DEPTH = ../..
|
---|
| 28 | include $(PATH_KBUILD)/header.kmk
|
---|
| 29 |
|
---|
| 30 |
|
---|
| 31 | PROGRAMS += inherit-target1
|
---|
| 32 | inherit-target1_TEMPLATE = TST
|
---|
| 33 | inherit-target1_SOURCES = ../dummy_defined_X.c
|
---|
| 34 | inherit-target1_DEFS = X=y
|
---|
| 35 |
|
---|
| 36 | PROGRAMS += inherit-target2
|
---|
| 37 | inherit-target2_EXTENDS = inherit-target1
|
---|
| 38 |
|
---|
| 39 | PROGRAMS += inherit-target3
|
---|
| 40 | inherit-target3_EXTENDS = inherit-target2
|
---|
| 41 |
|
---|
| 42 | PROGRAMS += inherit-target4
|
---|
| 43 | inherit-target4_EXTENDS = inherit-target3
|
---|
| 44 |
|
---|
| 45 | PROGRAMS += inherit-target5
|
---|
| 46 | inherit-target5_EXTENDS = inherit-target3
|
---|
| 47 |
|
---|
| 48 | # out of target order.
|
---|
| 49 | PROGRAMS += inherit-target6
|
---|
| 50 | inherit-target6_EXTENDS = inherit-target9
|
---|
| 51 |
|
---|
| 52 | PROGRAMS += inherit-target7
|
---|
| 53 | inherit-target7_EXTENDS = inherit-target1
|
---|
| 54 |
|
---|
| 55 | PROGRAMS += inherit-target8
|
---|
| 56 | inherit-target8_EXTENDS = inherit-target7
|
---|
| 57 |
|
---|
| 58 | PROGRAMS += inherit-target9
|
---|
| 59 | inherit-target9_EXTENDS = inherit-target8
|
---|
| 60 |
|
---|
| 61 |
|
---|
[1588] | 62 | # More complicated, with a couple of SDKs and TEMPLATES.
|
---|
| 63 | SDK_inh1 = target inherit test sdk 1
|
---|
| 64 | SDK_inh1_DEFS = Z=42
|
---|
| 65 |
|
---|
| 66 | SDK_inh2 = target inherit test sdk 2
|
---|
| 67 | SDK_inh2_DEFS = Y=128
|
---|
| 68 |
|
---|
| 69 | SDK_inh3 = target inherit test sdk 3
|
---|
| 70 | SDK_inh3_DEFS = P=42
|
---|
| 71 |
|
---|
| 72 | TEMPLATE_inh1 = target inherit test template 1
|
---|
| 73 | TEMPLATE_inh1_EXTENDS = TST
|
---|
| 74 | TEMPLATE_inh1_DEFS = Q=256
|
---|
| 75 |
|
---|
| 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
|
---|
| 81 |
|
---|
| 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
|
---|
| 87 |
|
---|
| 88 |
|
---|
[1509] | 89 | include $(FILE_KBUILD_FOOTER)
|
---|
[1398] | 90 |
|
---|