Debian Codegraph @

packages/windows/sdk/NTMakefile

raw
1 ########################################################################
2 #
3 # Copyright (c) 2009, Secure Endpoints Inc.
4 # All rights reserved.
5 #
6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions
8 # are met:
9 #
10 # - Redistributions of source code must retain the above copyright
11 # notice, this list of conditions and the following disclaimer.
12 #
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
16 # distribution.
17 #
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.
30 #
31
32 RELDIR=packages\sdk
33
34 !include ../../../windows/NTMakefile.w32
35
36 # This package pulls in all the SDK components into a single directory
37 # structure.
38
39 prep:: mksdkdirs
40
41 mksdkdirs:
42 ! if !exist($(SDKSRCDIR))
43 $(MKDIR) $(SDKSRCDIR)
44 ! endif
45 ! if !exist($(SDKINCDIR))
46 $(MKDIR) $(SDKINCDIR)
47 ! endif
48 ! if !exist($(SDKINCDIR)\krb5)
49 $(MKDIR) $(SDKINCDIR)\krb5
50 ! endif
51 ! if !exist($(SDKINCDIR)\heimdal)
52 $(MKDIR) $(SDKINCDIR)\heimdal
53 ! endif
54 ! if !exist($(SDKINCDIR)\kadm5)
55 $(MKDIR) $(SDKINCDIR)\kadm5
56 ! endif
57 ! if !exist($(SDKINCDIR)\gssapi)
58 $(MKDIR) $(SDKINCDIR)\gssapi
59 ! endif
60 ! if !exist($(SDKLIBDIR))
61 $(MKDIR) $(SDKLIBDIR)
62 ! endif
63 ! if !exist($(SDKREDISTDIR))
64 $(MKDIR) $(SDKREDISTDIR)
65 ! endif
66
67 INCFILES=\
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 \
110
111 LIBFILES=\
112 $(SDKLIBDIR)\heimdal.lib \
113 $(SDKLIBDIR)\libcom_err.lib \
114 $(SDKLIBDIR)\libroken.lib \
115 $(SDKLIBDIR)\libgssapi.lib
116
117 all:: $(INCFILES) $(LIBFILES)
118
119 .SUFFIXES: .h .c .lib
120
121 {$(LIBDIR)}.lib{$(SDKLIBDIR)}.lib:
122 $(CP) $** $@
123
124 {$(INCDIR)}.h{$(SDKINCDIR)}.h:
125 $(CP) $** $@
126
127 {$(INCDIR)}.h{$(SDKINCDIR)\krb5}.h:
128 $(CP) $** $@
129
130 {$(INCDIR)}.h{$(SDKINCDIR)\heimdal}.h:
131 $(CP) $** $@
132
133 {$(INCDIR)\kadm5}.h{$(SDKINCDIR)\kadm5}.h:
134 $(CP) $** $@
135
136 {$(INCDIR)\gssapi}.h{$(SDKINCDIR)\gssapi}.h:
137 $(CP) $** $@
138
139 {$(INCDIR)\gssapi}.h{$(SDKINCDIR)\heimdal}.h:
140 $(CP) $** $@
141
142 $(SDKINCDIR)\Heimdal.Application.$(MCPU).manifest: $(APPMANIFEST)
143 $(CP) $** $@
144
145 clean::
146 -$(RM) $(SDKINCDIR)\*.*
147 -$(RM) $(SDKINCDIR)\krb5\*.*
148 -$(RM) $(SDKINCDIR)\heimdal\*.*
149 -$(RM) $(SDKINCDIR)\kadm5\*.*
150 -$(RM) $(SDKINCDIR)\gssapi\*.*
151 -$(RM) $(SDKLIBDIR)\*.*
152 -$(RM) $(SDKREDISTDIR)\*.*