1*f59d82ffSelric########################################################################
2*f59d82ffSelric#
3*f59d82ffSelric# Copyright (c) 2009, Secure Endpoints Inc.
4*f59d82ffSelric# All rights reserved.
5*f59d82ffSelric#
6*f59d82ffSelric# Redistribution and use in source and binary forms, with or without
7*f59d82ffSelric# modification, are permitted provided that the following conditions
8*f59d82ffSelric# are met:
9*f59d82ffSelric#
10*f59d82ffSelric# - Redistributions of source code must retain the above copyright
11*f59d82ffSelric#   notice, this list of conditions and the following disclaimer.
12*f59d82ffSelric#
13*f59d82ffSelric# - Redistributions in binary form must reproduce the above copyright
14*f59d82ffSelric#   notice, this list of conditions and the following disclaimer in
15*f59d82ffSelric#   the documentation and/or other materials provided with the
16*f59d82ffSelric#   distribution.
17*f59d82ffSelric#
18*f59d82ffSelric# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19*f59d82ffSelric# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20*f59d82ffSelric# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21*f59d82ffSelric# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
22*f59d82ffSelric# COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
23*f59d82ffSelric# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
24*f59d82ffSelric# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25*f59d82ffSelric# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26*f59d82ffSelric# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27*f59d82ffSelric# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
28*f59d82ffSelric# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29*f59d82ffSelric# POSSIBILITY OF SUCH DAMAGE.
30*f59d82ffSelric#
31*f59d82ffSelric
32*f59d82ffSelricRELDIR=admin
33*f59d82ffSelriccincdirs=$(cincdirs) -I$(OBJ)
34*f59d82ffSelric!include ../windows/NTMakefile.w32
35*f59d82ffSelric
36*f59d82ffSelricSBINPROGRAMS=$(SBINDIR)\ktutil.exe
37*f59d82ffSelric
38*f59d82ffSelricKTUTIL_OBJS= \
39*f59d82ffSelric	$(OBJ)\add.obj		\
40*f59d82ffSelric	$(OBJ)\change.obj	\
41*f59d82ffSelric	$(OBJ)\copy.obj		\
42*f59d82ffSelric	$(OBJ)\destroy.obj	\
43*f59d82ffSelric	$(OBJ)\get.obj		\
44*f59d82ffSelric	$(OBJ)\ktutil.obj	\
45*f59d82ffSelric	$(OBJ)\ktutil-commands.obj	\
46*f59d82ffSelric	$(OBJ)\list.obj		\
47*f59d82ffSelric	$(OBJ)\purge.obj	\
48*f59d82ffSelric	$(OBJ)\remove.obj	\
49*f59d82ffSelric	$(OBJ)\rename.obj
50*f59d82ffSelric
51*f59d82ffSelricKTUTIL_LIBS= \
52*f59d82ffSelric	$(LIBHEIMDAL)	\
53*f59d82ffSelric	$(LIBKADM5SRV)	\
54*f59d82ffSelric	$(LIBSL)	\
55*f59d82ffSelric	$(LIBROKEN)	\
56*f59d82ffSelric	$(LIBVERS)
57*f59d82ffSelric
58*f59d82ffSelric$(SBINDIR)\ktutil.exe: $(KTUTIL_OBJS) $(KTUTIL_LIBS) $(OBJ)\ktutil-version.res
59*f59d82ffSelric	$(EXECONLINK)
60*f59d82ffSelric	$(EXEPREP)
61*f59d82ffSelric
62*f59d82ffSelric$(OBJ)\ktutil-commands.c $(OBJ)\ktutil-commands.h: ktutil-commands.in
63*f59d82ffSelric	cd $(OBJ)
64*f59d82ffSelric	$(CP) $(SRCDIR)\ktutil-commands.in $(OBJ)
65*f59d82ffSelric	$(BINDIR)\slc.exe ktutil-commands.in
66*f59d82ffSelric	cd $(SRCDIR)
67*f59d82ffSelric
68*f59d82ffSelricINCFILES=\
69*f59d82ffSelric	$(OBJ)\ktutil-commands.h
70*f59d82ffSelric
71*f59d82ffSelricall:: $(INCFILES) $(SBINPROGRAMS)
72*f59d82ffSelric
73*f59d82ffSelricclean::
74*f59d82ffSelric	-$(RM) $(SBINPROGRAMS:.exe=.*)
75