check for execinfo.h and backtrace()
[heimdal.git] / kuser / NTMakefile
blobbc12ad2cfb5704e0452e1b9426c456b50c74b894
1 ########################################################################
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
32 RELDIR=kuser
34 intcflags=-I$(OBJ)
36 !include ../windows/NTMakefile.w32 
38 BINPROGRAMS=\
39         $(BINDIR)\kinit.exe     \
40         $(BINDIR)\kcc.exe       \
41         $(BINDIR)\kdestroy.exe  \
42         $(BINDIR)\kgetcred.exe  \
43         $(BINDIR)\kvno.exe      \
44         $(BINDIR)\kcpytkt.exe   \
45         $(BINDIR)\kdeltkt.exe
47 LIBEXECPROGRAMS=\
48         $(LIBEXECDIR)\kdigest.exe       \
49         $(LIBEXECDIR)\kimpersonate.exe
51 NOINSTPROGRAMS=\
52         $(OBJ)\kverify.exe      \
53         $(OBJ)\kdecode_ticket.exe       \
54         $(OBJ)\generate-requests.exe
57 BINLIBS=\
58         $(LIBHEIMDAL)   \
59         $(LIBHEIMNTLM)  \
60         $(LIBROKEN)     \
61         $(LIBVERS)
63 all:: $(BINPROGRAMS) $(LIBEXECPROGRAMS)
65 clean::
66         -$(RM) $(BINPROGRAMS:.exe=.*) $(LIBEXECPROGRAMS:.exe=.*)
69 $(BINDIR)\kinit.exe: $(OBJ)\kinit.obj $(BINLIBS) $(OBJ)\kinit-version.res
70         $(EXECONLINK)
71         $(EXEPREP)
73 KCC_OBJS =                              \
74         $(OBJ)\kcc-commands.obj         \
75         $(OBJ)\kcc.obj                  \
76         $(OBJ)\kswitch.obj              \
77         $(OBJ)\klist.obj                \
78         $(OBJ)\copy_cred_cache.obj
80 KCCLIBS=\
81         $(BINLIBS)      \
82         $(LIBSL)
84 $(BINDIR)\kcc.exe: $(KCC_OBJS) $(KCCLIBS) $(OBJ)\kcc-version.res
85         $(EXECONLINK)
86         $(EXEPREP)
89 $(BINDIR)\kdestroy.exe: $(OBJ)\kdestroy.obj $(BINLIBS) $(OBJ)\kdestroy-version.res
90         $(EXECONLINK)
91         $(EXEPREP)
94 $(BINDIR)\kgetcred.exe: $(OBJ)\kgetcred.obj $(BINLIBS) $(OBJ)\kgetcred-version.res
95         $(EXECONLINK)
96         $(EXEPREP)
99 $(LIBEXECDIR)\kdigest.exe: $(OBJ)\kdigest-commands.obj $(OBJ)\kdigest.obj $(BINLIBS) $(LIBSL) $(OBJ)\kdigest-version.res
100         $(EXECONLINK)
101         $(EXEPREP)
103 $(OBJ)\kdigest.obj: kdigest.c
104         $(C2OBJ) -I$(OBJ)
106 $(OBJ)\kdigest-commands.c $(OBJ)\kdigest-commands.h: kdigest-commands.in
107         cd $(OBJ)
108         $(CP) $(SRCDIR)\kdigest-commands.in $(OBJ)
109         $(BINDIR)\slc.exe kdigest-commands.in
110         cd $(SRCDIR)
112 $(OBJ)\kcc-commands.c $(OBJ)\kcc-commands.h: kcc-commands.in
113         cd $(OBJ)
114         $(CP) $(SRCDIR)\kcc-commands.in $(OBJ)
115         $(BINDIR)\slc.exe kcc-commands.in
116         cd $(SRCDIR)
118 $(LIBEXECDIR)\kimpersonate.exe: $(OBJ)\kimpersonate.obj $(BINLIBS) $(OBJ)\kimpersonate-version.res
119         $(EXECONLINK)
120         $(EXEPREP)
122 $(BINDIR)\kvno.exe: $(OBJ)\kvno.obj $(BINLIBS)
123         $(EXECONLINK)
124         $(EXEPREP)
126 $(BINDIR)\kcpytkt.exe: $(OBJ)\kcpytkt.obj $(BINLIBS)
127         $(EXECONLINK)
128         $(EXEPREP)
130 $(BINDIR)\kdeltkt.exe: $(OBJ)\kdeltkt.obj $(BINLIBS)
131         $(EXECONLINK)
132         $(EXEPREP)