Fixed warnings when using the NAME property and ending up with output where only...
[kbuild-mirror.git] / kBuild / sdks / WINPSDKINCS.kmk
blob7424470a78699b957f0ff680d22667dc288b6223
1 # $Id$
2 ## @file
3 # kBuild SDK - The Windows Platform SDK, targeting (KBUILD_TARGET) but
4 # without any libraries or LIBPATH properties.
5 # Basically for finding specstrings.h when using the DDK.
9 # Copyright (c) 2006-2008 knut st. osmundsen <bird-kBuild-spam@anduin.net>
11 # This file is part of kBuild.
13 # kBuild is free software; you can redistribute it and/or modify
14 # it under the terms of the GNU General Public License as published by
15 # the Free Software Foundation; either version 2 of the License, or
16 # (at your option) any later version.
18 # kBuild is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU General Public License for more details.
23 # You should have received a copy of the GNU General Public License
24 # along with kBuild; if not, write to the Free Software
25 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 # As a special exception you are granted permission to include this file, via
29 # the kmk include directive, as you wish without this in itself causing the
30 # resulting makefile, program or whatever to be covered by the GPL license.
31 # This exception does not however invalidate any other reasons why the makefile,
32 # program, whatever should not be covered the GPL.
36 SDK_WINPSDKINCS := The Windows Platform SDK, targeting (KBUILD_TARGET) but \
37 without any library or LIBPATH properties. \
38 Basically for finding specstrings.h when using the DDK.
40 # SDK Specific Properties
41 ifndef PATH_SDK_WINPSDKINCS
42 ifdef PATH_SDK_WINPSDK
43 PATH_SDK_WINPSDKINCS := $(PATH_SDK_WINPSDK)
44 else
45 PATH_SDK_WINPSDKINCS := $(wildcard $(PATH_DEVTOOLS_BLD)/sdk/2*)
46 ifeq ($(PATH_SDK_WINPSDKINCS),)
47 PATH_SDK_WINPSDKINCS := $(wildcard $(PATH_DEVTOOLS_TRG)/sdk/2*)
48 endif
49 ifeq ($(PATH_SDK_WINPSDKINCS),)
50 PATH_SDK_WINPSDKINCS := $(wildcard $(PATH_DEVTOOLS)/win.x86/sdk/2*)
51 endif
52 ifeq ($(PATH_SDK_WINPSDKINCS),)
53 PATH_SDK_WINPSDKINCS := $(wildcard $(PATH_DEVTOOLS)/x86.win32/sdk/2*)
54 endif
55 ifeq ($(PATH_SDK_WINPSDKINCS),)
56 PATH_SDK_WINPSDKINCS := $(wildcard $(PATH_DEVTOOLS)/win.amd64/sdk/2*)
57 endif
58 ifneq ($(PATH_SDK_WINPSDKINCS),)
59 PATH_SDK_WINPSDKINCS := $(lastword $(sort $(PATH_SDK_WINPSDKINCS)))
60 else
61 $(warning kBuild: PATH_SDK_WINPSDKINCS couldn't be determined!)
62 PATH_SDK_WINPSDKINCS := $(PATH_DEVTOOLS_BLD)/sdk/not/found
63 endif
64 endif
65 else
66 PATH_SDK_WINPSDKINCS := $(PATH_SDK_WINPSDKINCS)
67 endif
68 ifndef PATH_SDK_WINPSDKINCS_INC
69 PATH_SDK_WINPSDKINCS_INC := $(firstword $(wildcard $(PATH_SDK_WINPSDKINCS)/[Ii][Nn][Cc][Ll][Uu][Dd][Ee]) $(PATH_SDK_WINPSDKINCS)/Include)
70 endif
72 ifndef PATH_SDK_WINPSDKINCS_LIB.x86
73 PATH_SDK_WINPSDKINCS_LIB.x86 := $(firstword $(wildcard $(PATH_SDK_WINPSDKINCS)/[Ll][Ii][Bb]) $(PATH_SDK_WINPSDKINCS)/Lib)
74 endif
75 ifndef PATH_SDK_WINPSDKINCS_LIB.amd64
76 PATH_SDK_WINPSDKINCS_LIB.amd64 := $(firstword $(wildcard $(PATH_SDK_WINPSDKINCS)/[Ll][Ii][Bb]/[Aa][Mm][Dd]64) $(PATH_SDK_WINPSDKINCS)/Lib/AMD64)
77 endif
78 PATH_SDK_WINPSDKINCS_LIB ?= $(PATH_SDK_WINPSDKINCS_LIB.$(KBUILD_TARGET_ARCH))
80 ifndef PATH_SDK_WINPSDKINCS_BIN
81 PATH_SDK_WINPSDKINCS_BIN := $(firstword $(wildcard $(PATH_SDK_WINPSDKINCS)/[Bb][Ii][Nn]) $(PATH_SDK_WINPSDKINCS)/Bin)
82 endif
83 ifndef PATH_SDK_WINPSDKINCS_BIN_AMD64
84 PATH_SDK_WINPSDKINCS_BIN_AMD64 := $(firstword $(wildcard $(PATH_SDK_WINPSDKINCS_BIN)/[Ww][Ii][Nn]64/[Xx]86/[Aa][Mm][Dd]64) $(PATH_SDK_WINPSDKINCS_BIN)/win64/AMD64)
85 endif
86 ifndef PATH_SDK_WINPSDKINCS_BIN_IA64
87 PATH_SDK_WINPSDKINCS_BIN_IA64 := $(firstword $(wildcard $(PATH_SDK_WINPSDKINCS_BIN)/[Ww][Ii][Nn]64) $(PATH_SDK_WINPSDKINCS_BIN)/win64)
88 endif
91 # General Properties used by kBuild
92 SDK_WINPSDKINCS_INCS ?= $(PATH_SDK_WINPSDKINCS_INC)