From 8232a8dc4c31e6d0ca9659b554ea0a7b1aa0e7a0 Mon Sep 17 00:00:00 2001 From: "Asanka C. Herath" Date: Sun, 12 Sep 2010 22:44:21 -0400 Subject: [PATCH] Windows: packages/windows/sdk The Makefile in this directory pulls in the SDK into a separate directory tree. --- packages/windows/sdk/NTMakefile | 98 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 packages/windows/sdk/NTMakefile diff --git a/packages/windows/sdk/NTMakefile b/packages/windows/sdk/NTMakefile new file mode 100644 index 000000000..9812ef64f --- /dev/null +++ b/packages/windows/sdk/NTMakefile @@ -0,0 +1,98 @@ +######################################################################## +# +# Copyright (c) 2009, Secure Endpoints Inc. +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# - Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# - Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the +# distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +# COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +# POSSIBILITY OF SUCH DAMAGE. +# + +RELDIR=packages\sdk + +!include ../../../windows/NTMakefile.w32 + +# This package pulls in all the SDK components into a single directory +# structure. + +prep:: mksdkdirs + +mksdkdirs: +! if !exist($(SDKSRCDIR)) + $(MKDIR) $(SDKSRCDIR) +! endif +! if !exist($(SDKINCDIR)) + $(MKDIR) $(SDKINCDIR) +! endif +! if !exist($(SDKINCDIR)\krb5) + $(MKDIR) $(SDKINCDIR)\krb5 +! endif +! if !exist($(SDKINCDIR)\kadm5) + $(MKDIR) $(SDKINCDIR)\kadm5 +! endif +! if !exist($(SDKLIBDIR)) + $(MKDIR) $(SDKLIBDIR) +! endif + +INCFILES=\ + $(SDKINCDIR)\com_err.h \ + $(SDKINCDIR)\com_right.h \ + $(SDKINCDIR)\krb5\asn1_err.h \ + $(SDKINCDIR)\krb5\heim_err.h \ + $(SDKINCDIR)\krb5\k524_err.h \ + $(SDKINCDIR)\krb5\krb5-protos.h \ + $(SDKINCDIR)\krb5\krb5-types.h \ + $(SDKINCDIR)\krb5\krb5-v4compat.h \ + $(SDKINCDIR)\krb5\krb5.h \ + $(SDKINCDIR)\krb5\krb5_asn1.h \ + $(SDKINCDIR)\krb5\krb5_ccapi.h \ + $(SDKINCDIR)\krb5\krb5_err.h \ + $(SDKINCDIR)\krb5\krb5_locl.h \ + $(SDKINCDIR)\kadm5\kadm5_err.h \ + $(SDKINCDIR)\kadm5\kadm5-protos.h \ + +LIBFILES=\ + $(SDKLIBDIR)\heimdal.lib \ + $(SDKLIBDIR)\libcom_err.lib \ + +all:: $(INCFILES) $(LIBFILES) + +.SUFFIXES: .h .c .lib + +{$(LIBDIR)}.lib{$(SDKLIBDIR)}.lib: + $(CP) $** $@ + +{$(INCDIR)}.h{$(SDKINCDIR)}.h: + $(CP) $** $@ + +{$(INCDIR)}.h{$(SDKINCDIR)\krb5}.h: + $(CP) $** $@ + +{$(INCDIR)\kadm5}.h{$(SDKINCDIR)\kadm5}.h: + $(CP) $** $@ + +clean:: + -$(RM) $(SDKINCDIR)\*.* + -$(RM) $(SDKINCDIR)\krb5\*.* + -$(RM) $(SDKLIBDIR)\*.* -- 2.11.4.GIT