1 ########################################################################
3 # Copyright (c) 2009, Secure Endpoints Inc.
6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions
10 # - Redistributions of source code must retain the above copyright
11 # notice, this list of conditions and the following disclaimer.
13 # - Redistributions in binary form must reproduce the above copyright
14 # notice, this list of conditions and the following disclaimer in
15 # the documentation and/or other materials provided with the
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
22 # COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
23 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
24 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
28 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 # POSSIBILITY OF SUCH DAMAGE.
34 !include ../../../windows/NTMakefile.w32
36 # This package pulls in all the SDK components into a single directory
42 ! if !exist($(SDKSRCDIR))
45 ! if !exist($(SDKINCDIR))
48 ! if !exist($(SDKINCDIR)\krb5)
49 $(MKDIR) $(SDKINCDIR)\krb5
51 ! if !exist($(SDKINCDIR)\heimdal)
52 $(MKDIR) $(SDKINCDIR)\heimdal
54 ! if !exist($(SDKINCDIR)\kadm5)
55 $(MKDIR) $(SDKINCDIR)\kadm5
57 ! if !exist($(SDKINCDIR)\gssapi)
58 $(MKDIR) $(SDKINCDIR)\gssapi
60 ! if !exist($(SDKLIBDIR))
63 ! if !exist($(SDKREDISTDIR))
64 $(MKDIR) $(SDKREDISTDIR)
68 $(SDKINCDIR)\com_err.h \
69 $(SDKINCDIR)\com_right.h \
70 $(SDKINCDIR)\krb5\asn1_err.h \
71 $(SDKINCDIR)\krb5\heim_err.h \
72 $(SDKINCDIR)\krb5\k524_err.h \
73 $(SDKINCDIR)\krb5\krb5-protos.h \
74 $(SDKINCDIR)\krb5\krb5-types.h \
75 $(SDKINCDIR)\krb5\krb5-v4compat.h \
76 $(SDKINCDIR)\krb5\krb5.h \
77 $(SDKINCDIR)\krb5\krb5_asn1.h \
78 $(SDKINCDIR)\krb5\krb5_ccapi.h \
79 $(SDKINCDIR)\krb5\krb5_err.h \
80 $(SDKINCDIR)\krb5\krb5_locl.h \
81 $(SDKINCDIR)\kadm5\kadm5_err.h \
82 $(SDKINCDIR)\kadm5\kadm5-protos.h \
83 $(SDKINCDIR)\heimdal\asn1_err.h \
84 $(SDKINCDIR)\heimdal\heim_err.h \
85 $(SDKINCDIR)\heimdal\k524_err.h \
86 $(SDKINCDIR)\heimdal\krb5-protos.h \
87 $(SDKINCDIR)\heimdal\krb5-types.h \
88 $(SDKINCDIR)\heimdal\krb5-v4compat.h \
89 $(SDKINCDIR)\heimdal\krb5.h \
90 $(SDKINCDIR)\heimdal\krb5_asn1.h \
91 $(SDKINCDIR)\heimdal\krb5_ccapi.h \
92 $(SDKINCDIR)\heimdal\krb5_err.h \
93 $(SDKINCDIR)\heimdal\krb5_locl.h \
94 $(SDKINCDIR)\heimdal\gkrb5_err.h \
95 $(SDKINCDIR)\heimdal\wind_err.h \
96 $(SDKINCDIR)\heimdal\krb_err.h \
97 $(SDKINCDIR)\heimdal\hx509_err.h \
98 $(SDKINCDIR)\heimdal\roken.h \
99 $(SDKINCDIR)\heimdal\roken-common.h \
100 $(SDKINCDIR)\heimdal\syslog.h \
101 $(SDKINCDIR)\heimdal\err.h \
102 $(SDKINCDIR)\heimdal\dirent.h \
103 $(SDKINCDIR)\heimdal\gkrb5_err.h \
104 $(SDKINCDIR)\gssapi\gssapi.h \
105 $(SDKINCDIR)\gssapi\gssapi_krb5.h \
106 $(SDKINCDIR)\gssapi\gssapi_oid.h \
107 $(SDKINCDIR)\gssapi\gssapi_ntlm.h \
108 $(SDKINCDIR)\gssapi\gssapi_spnego.h \
109 $(SDKINCDIR)\Heimdal.Application.$(MCPU).manifest \
112 $(SDKLIBDIR)\heimdal.lib \
113 $(SDKLIBDIR)\libcom_err.lib \
114 $(SDKLIBDIR)\libroken.lib \
115 $(SDKLIBDIR)\libgssapi.lib
117 all:: $(INCFILES) $(LIBFILES)
119 .SUFFIXES: .h .c .lib
121 {$(LIBDIR)}.lib{$(SDKLIBDIR)}.lib:
124 {$(INCDIR)}.h{$(SDKINCDIR)}.h:
127 {$(INCDIR)}.h{$(SDKINCDIR)\krb5}.h:
130 {$(INCDIR)}.h{$(SDKINCDIR)\heimdal}.h:
133 {$(INCDIR)\kadm5}.h{$(SDKINCDIR)\kadm5}.h:
136 {$(INCDIR)\gssapi}.h{$(SDKINCDIR)\gssapi}.h:
139 {$(INCDIR)\gssapi}.h{$(SDKINCDIR)\heimdal}.h:
142 $(SDKINCDIR)\Heimdal.Application.$(MCPU).manifest: $(APPMANIFEST)
146 -$(RM) $(SDKINCDIR)\*.*
147 -$(RM) $(SDKINCDIR)\krb5\*.*
148 -$(RM) $(SDKINCDIR)\heimdal\*.*
149 -$(RM) $(SDKINCDIR)\kadm5\*.*
150 -$(RM) $(SDKLIBDIR)\*.*
151 -$(RM) $(SDKREDISTDIR)\*.*