Windows: packages/windows/sdk
authorAsanka C. Herath <asanka@secure-endpoints.com>
Mon, 13 Sep 2010 02:44:21 +0000 (22:44 -0400)
committerAsanka C. Herath <asanka@secure-endpoints.com>
Tue, 14 Sep 2010 12:04:19 +0000 (08:04 -0400)
The Makefile in this directory pulls in the SDK into a separate directory tree.

packages/windows/sdk/NTMakefile [new file with mode: 0644]

diff --git a/packages/windows/sdk/NTMakefile b/packages/windows/sdk/NTMakefile
new file mode 100644 (file)
index 0000000..9812ef6
--- /dev/null
@@ -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)\*.*