| 1 | # $Id: WINPSDKINCS.kmk 819 2007-02-01 02:28:30Z bird $
|
|---|
| 2 | ## @file
|
|---|
| 3 | #
|
|---|
| 4 | # kBuild SDK - The Windows Platform SDK, targeting (BUILD_TARGET) but
|
|---|
| 5 | # without any libraries or LIBPATH properties.
|
|---|
| 6 | # Basically for finding specstrings.h when using the DDK.
|
|---|
| 7 | #
|
|---|
| 8 | # Copyright (c) 2006-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net>
|
|---|
| 9 | #
|
|---|
| 10 | #
|
|---|
| 11 | # This file is part of kBuild.
|
|---|
| 12 | #
|
|---|
| 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.
|
|---|
| 17 | #
|
|---|
| 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.
|
|---|
| 22 | #
|
|---|
| 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
|
|---|
| 26 | #
|
|---|
| 27 | #
|
|---|
| 28 |
|
|---|
| 29 | SDK_WINPSDKINCS := The Windows Platform SDK, targeting (BUILD_TARGET) but \
|
|---|
| 30 | without any library or LIBPATH properties. \
|
|---|
| 31 | Basically for finding specstrings.h when using the DDK.
|
|---|
| 32 |
|
|---|
| 33 | # SDK Specific Properties
|
|---|
| 34 | ifndef PATH_SDK_WINPSDKINCS
|
|---|
| 35 | ifdef PATH_SDK_WINPSDK
|
|---|
| 36 | PATH_SDK_WINPSDKINCS := $(PATH_SDK_WINPSDK)
|
|---|
| 37 | else
|
|---|
| 38 | PATH_SDK_WINPSDKINCS := $(wildcard $(PATH_DEVTOOLS_BLD)/sdk/2*)
|
|---|
| 39 | ifeq ($(PATH_SDK_WINPSDKINCS),)
|
|---|
| 40 | PATH_SDK_WINPSDKINCS := $(wildcard $(PATH_DEVTOOLS_TRG)/sdk/2*)
|
|---|
| 41 | endif
|
|---|
| 42 | ifeq ($(PATH_SDK_WINPSDKINCS),)
|
|---|
| 43 | PATH_SDK_WINPSDKINCS := $(wildcard $(PATH_DEVTOOLS)/win.x86/sdk/2*)
|
|---|
| 44 | endif
|
|---|
| 45 | ifeq ($(PATH_SDK_WINPSDKINCS),)
|
|---|
| 46 | PATH_SDK_WINPSDKINCS := $(wildcard $(PATH_DEVTOOLS)/x86.win32/sdk/2*)
|
|---|
| 47 | endif
|
|---|
| 48 | ifeq ($(PATH_SDK_WINPSDKINCS),)
|
|---|
| 49 | PATH_SDK_WINPSDKINCS := $(wildcard $(PATH_DEVTOOLS)/win.amd64/sdk/2*)
|
|---|
| 50 | endif
|
|---|
| 51 | ifneq ($(PATH_SDK_WINPSDKINCS),)
|
|---|
| 52 | PATH_SDK_WINPSDKINCS := $(lastword $(sort $(PATH_SDK_WINPSDKINCS)))
|
|---|
| 53 | else
|
|---|
| 54 | $(warning kBuild: PATH_SDK_WINPSDKINCS couldn't be determined!)
|
|---|
| 55 | PATH_SDK_WINPSDKINCS := $(PATH_DEVTOOLS_BLD)/sdk/not/found
|
|---|
| 56 | endif
|
|---|
| 57 | endif
|
|---|
| 58 | else
|
|---|
| 59 | PATH_SDK_WINPSDKINCS := $(PATH_SDK_WINPSDKINCS)
|
|---|
| 60 | endif
|
|---|
| 61 | ifndef PATH_SDK_WINPSDKINCS_INC
|
|---|
| 62 | PATH_SDK_WINPSDKINCS_INC := $(firstword $(wildcard $(PATH_SDK_WINPSDKINCS)/[Ii][Nn][Cc][Ll][Uu][Dd][Ee]) $(PATH_SDK_WINPSDKINCS)/Include)
|
|---|
| 63 | endif
|
|---|
| 64 |
|
|---|
| 65 | ifndef PATH_SDK_WINPSDKINCS_LIB.x86
|
|---|
| 66 | PATH_SDK_WINPSDKINCS_LIB.x86 := $(firstword $(wildcard $(PATH_SDK_WINPSDKINCS)/[Ll][Ii][Bb]) $(PATH_SDK_WINPSDKINCS)/Lib)
|
|---|
| 67 | endif
|
|---|
| 68 | ifndef PATH_SDK_WINPSDKINCS_LIB.amd64
|
|---|
| 69 | PATH_SDK_WINPSDKINCS_LIB.amd64 := $(firstword $(wildcard $(PATH_SDK_WINPSDKINCS)/[Ll][Ii][Bb]/[Aa][Mm][Dd]64) $(PATH_SDK_WINPSDKINCS)/Lib/AMD64)
|
|---|
| 70 | endif
|
|---|
| 71 | PATH_SDK_WINPSDKINCS_LIB ?= $(PATH_SDK_WINPSDKINCS_LIB.$(BUILD_TARGET_ARCH))
|
|---|
| 72 |
|
|---|
| 73 | ifndef PATH_SDK_WINPSDKINCS_BIN
|
|---|
| 74 | PATH_SDK_WINPSDKINCS_BIN := $(firstword $(wildcard $(PATH_SDK_WINPSDKINCS)/[Bb][Ii][Nn]) $(PATH_SDK_WINPSDKINCS)/Bin)
|
|---|
| 75 | endif
|
|---|
| 76 | ifndef PATH_SDK_WINPSDKINCS_BIN_AMD64
|
|---|
| 77 | 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)
|
|---|
| 78 | endif
|
|---|
| 79 | ifndef PATH_SDK_WINPSDKINCS_BIN_IA64
|
|---|
| 80 | PATH_SDK_WINPSDKINCS_BIN_IA64 := $(firstword $(wildcard $(PATH_SDK_WINPSDKINCS_BIN)/[Ww][Ii][Nn]64) $(PATH_SDK_WINPSDKINCS_BIN)/win64)
|
|---|
| 81 | endif
|
|---|
| 82 |
|
|---|
| 83 |
|
|---|
| 84 | # General Properties used by kBuild
|
|---|
| 85 | SDK_WINPSDKINCS_INCS ?= $(PATH_SDK_WINPSDKINCS_INC)
|
|---|
| 86 |
|
|---|