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)\hcrypto)
52 $(MKDIR) $(SDKINCDIR)\hcrypto
54 ! if !exist($(SDKINCDIR)\heimdal)
55 $(MKDIR) $(SDKINCDIR)\heimdal
57 ! if !exist($(SDKINCDIR)\kadm5)
58 $(MKDIR) $(SDKINCDIR)\kadm5
60 ! if !exist($(SDKINCDIR)\gssapi)
61 $(MKDIR) $(SDKINCDIR)\gssapi
63 ! if !exist($(SDKLIBDIR))
66 ! if !exist($(SDKREDISTDIR))
67 $(MKDIR) $(SDKREDISTDIR)
71 $(SDKINCDIR)\com_err.h \
72 $(SDKINCDIR)\com_right.h \
73 $(SDKINCDIR)\krb5\asn1_err.h \
74 $(SDKINCDIR)\krb5\heim_err.h \
75 $(SDKINCDIR)\krb5\k524_err.h \
76 $(SDKINCDIR)\krb5\k5e1_err.h \
77 $(SDKINCDIR)\krb5\krb5-protos.h \
78 $(SDKINCDIR)\krb5\krb5-types.h \
79 $(SDKINCDIR)\krb5\krb5.h \
80 $(SDKINCDIR)\krb5\krb5_asn1.h \
81 $(SDKINCDIR)\krb5\krb5_ccapi.h \
82 $(SDKINCDIR)\krb5\krb5_err.h \
83 $(SDKINCDIR)\krb5\krb5_locl.h \
84 $(SDKINCDIR)\kadm5\kadm5_err.h \
85 $(SDKINCDIR)\kadm5\kadm5-protos.h \
86 $(SDKINCDIR)\hcrypto\aes.h \
87 $(SDKINCDIR)\hcrypto\bn.h \
88 $(SDKINCDIR)\hcrypto\des.h \
89 $(SDKINCDIR)\hcrypto\dh.h \
90 $(SDKINCDIR)\hcrypto\dsa.h \
91 $(SDKINCDIR)\hcrypto\engine.h \
92 $(SDKINCDIR)\hcrypto\evp-cc.h \
93 $(SDKINCDIR)\hcrypto\evp-hcrypto.h \
94 $(SDKINCDIR)\hcrypto\evp.h \
95 $(SDKINCDIR)\hcrypto\hmac.h \
96 $(SDKINCDIR)\hcrypto\md4.h \
97 $(SDKINCDIR)\hcrypto\md5.h \
98 $(SDKINCDIR)\hcrypto\rand.h \
99 $(SDKINCDIR)\hcrypto\rc2.h \
100 $(SDKINCDIR)\hcrypto\rc4.h \
101 $(SDKINCDIR)\hcrypto\rsa.h \
102 $(SDKINCDIR)\hcrypto\sha.h \
103 $(SDKINCDIR)\hcrypto\ui.h \
104 $(SDKINCDIR)\heimdal\asn1_err.h \
105 $(SDKINCDIR)\heimdal\dlfcn.h \
106 $(SDKINCDIR)\heimdal\heim_err.h \
107 $(SDKINCDIR)\heimdal\k524_err.h \
108 $(SDKINCDIR)\heimdal\k5e1_err.h \
109 $(SDKINCDIR)\heimdal\krb5-protos.h \
110 $(SDKINCDIR)\heimdal\krb5-types.h \
111 $(SDKINCDIR)\heimdal\krb5.h \
112 $(SDKINCDIR)\heimdal\krb5_asn1.h \
113 $(SDKINCDIR)\heimdal\krb5_ccapi.h \
114 $(SDKINCDIR)\heimdal\krb5_err.h \
115 $(SDKINCDIR)\heimdal\krb5_locl.h \
116 $(SDKINCDIR)\heimdal\gkrb5_err.h \
117 $(SDKINCDIR)\heimdal\wind_err.h \
118 $(SDKINCDIR)\heimdal\krb_err.h \
119 $(SDKINCDIR)\heimdal\hx509_err.h \
120 $(SDKINCDIR)\heimdal\roken.h \
121 $(SDKINCDIR)\heimdal\roken-common.h \
122 $(SDKINCDIR)\heimdal\syslog.h \
123 $(SDKINCDIR)\heimdal\err.h \
124 $(SDKINCDIR)\heimdal\dirent.h \
125 $(SDKINCDIR)\heimdal\gkrb5_err.h \
126 $(SDKINCDIR)\gssapi\gssapi.h \
127 $(SDKINCDIR)\gssapi\gssapi_krb5.h \
128 $(SDKINCDIR)\gssapi\gssapi_oid.h \
129 $(SDKINCDIR)\gssapi\gssapi_ntlm.h \
130 $(SDKINCDIR)\gssapi\gssapi_spnego.h \
131 $(SDKINCDIR)\Heimdal.Application.$(MCPU).manifest \
134 $(SDKLIBDIR)\heimdal.lib \
135 $(SDKLIBDIR)\libcom_err.lib \
136 $(SDKLIBDIR)\libroken.lib \
137 $(SDKLIBDIR)\libgssapi.lib
139 all:: $(INCFILES) $(LIBFILES)
141 .SUFFIXES: .h .c .lib
143 {$(LIBDIR)}.lib{$(SDKLIBDIR)}.lib:
146 {$(INCDIR)}.h{$(SDKINCDIR)}.h:
149 {$(INCDIR)}.h{$(SDKINCDIR)\krb5}.h:
152 {$(INCDIR)\hcrypto}.h{$(SDKINCDIR)\hcrypto}.h:
155 {$(INCDIR)}.h{$(SDKINCDIR)\heimdal}.h:
158 {$(INCDIR)\kadm5}.h{$(SDKINCDIR)\kadm5}.h:
161 {$(INCDIR)\gssapi}.h{$(SDKINCDIR)\gssapi}.h:
164 {$(INCDIR)\gssapi}.h{$(SDKINCDIR)\heimdal}.h:
167 $(SDKINCDIR)\Heimdal.Application.$(MCPU).manifest: $(APPMANIFEST)
171 -$(RM) $(SDKINCDIR)\*.*
172 -$(RM) $(SDKINCDIR)\krb5\*.*
173 -$(RM) $(SDKINCDIR)\hcrypto\*.*
174 -$(RM) $(SDKINCDIR)\heimdal\*.*
175 -$(RM) $(SDKINCDIR)\kadm5\*.*
176 -$(RM) $(SDKINCDIR)\gssapi\*.*
177 -$(RM) $(SDKLIBDIR)\*.*
178 -$(RM) $(SDKREDISTDIR)\*.*