1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
|
########################################################################
#
# Copyright (c) 2009-2011, Secure Endpoints Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# - Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# - Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
all::
clean::
test::
prep::
all:: prep
!include "NTMakefile.sdk"
!ifdef NODEBUG
BUILD=rel
!else
BUILD=dbg
!endif
!if exist($(MAKEDIR)\windows\NTMakefile.w32)
SRC=$(MAKEDIR)
!elseif exist($(MAKEDIR)\..\windows\NTMakefile.w32)
SRC=$(MAKEDIR)\..
!elseif exist($(MAKEDIR)\..\..\windows\NTMakefile.w32)
SRC=$(MAKEDIR)\..\..
!elseif exist($(MAKEDIR)\..\..\..\windows\NTMakefile.w32)
SRC=$(MAKEDIR)\..\..\..
!elseif exist($(MAKEDIR)\..\..\..\..\windows\NTMakefile.w32)
SRC=$(MAKEDIR)\..\..\..\..
!else
! error Cant determine source directory
!endif
! if "$(CPU)"=="i386" || "$(CPU)"=="x86"
MCPU=x86
! elseif "$(CPU)"=="AMD64"
MCPU=amd64
! else
! error Unknown CPU
! endif
!include "NTMakefile.config"
#----------------------------------------------------------------
# Directory macros
DESTDIR =$(SRC)\out\dest_$(CPU)
OBJDIR =$(SRC)\out\obj_$(CPU)
INCDIR =$(DESTDIR)\inc
LIBDIR =$(DESTDIR)\lib
BINDIR =$(DESTDIR)\bin
PLUGINDIR =$(BINDIR)
DOCDIR =$(DESTDIR)\doc
SBINDIR =$(BINDIR)
LIBEXECDIR =$(BINDIR)
ASMDIR =$(BINDIR)
INSTDIR =$(DESTDIR)\install
SDKDIR =$(SRC)\out\sdk
SDKINCDIR =$(SDKDIR)\inc
SDKLIBDIR =$(SDKDIR)\lib\$(CPU)
SDKSRCDIR =$(SDKDIR)\src
SDKREDISTDIR =$(SDKDIR)\redist\$(CPU)
!ifdef RELDIR
SRCDIR =$(SRC)\$(RELDIR)
OBJ =$(OBJDIR)\$(RELDIR)
!else
OBJ =$(OBJDIR)
!endif
# For tests:
PATH=$(PATH);$(BINDIR)
#----------------------------------------------------------------
# Command macros
RMAKE=nmake /nologo /f NTMakefile RECURSE=1
MKDIR=md
CP=copy /Y
LINK=link
LM=lib
RM=del /q
ECHO=echo
RC=rc
#----------------------------------------------------------------
# Program macros
AWK_CMD=gawk.exe
YACC_CMD=bison.exe
LEX_CMD=flex.exe
PYTHON=python.exe
PERL=perl.exe
CMP=cmp.exe
MAKECAT=makecat.exe
HHC=hhc.exe
MAKEINFO=makeinfo.exe
SED=sed.exe
CANDLE_CMD=candle.exe
LIGHT_CMD=light.exe
# Only used for tests
SH=sh.exe
# Commands
AWK=$(AWK_CMD)
YACC=$(YACC_CMD) -y
LEX=$(LEX_CMD)
CANDLE=$(CANDLE_CMD) -nologo
LIGHT=$(LIGHT_CMD) -nologo
#----------------------------------------------------------------
# External dependencies
# For pthread support to be enabled, both PTHREAD_INC and PTHREAD_LIB
# should be defined. PTHREAD_INC should be the include directory
# where pthread.h is to be found (i.e. $(PTHREAD_INC)\pthread.h should
# exist), and PTHREAD_LIB is the full path to the pthread import
# library.
#
# Note that both paths should not contain any whitespace.
!ifdef PTHREAD_INC
pthreadinc= -I$(PTHREAD_INC)
!endif
#----------------------------------------------------------------
# Build options
cincdirs=$(cincdirs) -I$(INCDIR) -I$(INCDIR)\krb5 $(pthreadinc)
cdefines=$(cdefines) -DHAVE_CONFIG_H
# Windows CNG provider
cdefines=$(cdefines) -DHCRYPTO_DEF_PROVIDER=w32crypto
cdebug=$(cdebug) /Zi
ldebug=$(ldebug) /DEBUG
localcflags=$(localcflags) /Oy-
# Disable warnings:
#
# C4996: 'function' was declared deprecated
# C4127: Conditional expression is constant
# C4244: Conversion from 'type1' to 'type2', possible loss of data
# C4100: 'identifier': unreferenced formal parameter
# C4706: Assignment within conditional expression
# C4214: Nonstandard extension used
# C4267: '': Conversion from 'type1' to 'type2', possible loss of data
# C4018: '': Signed/unsigned mismatch
# C4204: Nonstandard extension used: non-constant aggregate initializer
# C4221: Nonstandard extension used: 'v1': cannot be initialized using address of automatic variable 'v2'
# C4295: '': Array is too small to include a terminating null character
# C4146: Unary minus operator applied to unsigned type, result still unsigned.
#
cwarn=$(cwarn) -D_CRT_SECURE_NO_WARNINGS -wd4996 -wd4127 -wd4244 -wd4100 -wd4706
cwarn=$(cwarn) -wd4214 -wd4267 -wd4018 -wd4389 -wd4204 -wd4221 -wd4295 -wd4146
!if "$(CPU)"=="i386"
libmach=/machine:X86
!elseif "$(CPU)"=="AMD64"
libmach=/machine:X64
!else
! error Unknown CPU value
!endif
!ifdef NO_MP
MPOPT=
!else
MPOPT=/MP
!endif
!ifndef STATICRUNTIME
C2OBJ_C = $(CC) $(cdebug) $(cflags) $(cvarsdll) $(AUXCFLAGS) $(intcflags) $(cdefines) $(cincdirs) $(cwarn)
EXECONLINK_C = $(LINK) $(ldebug) $(conlflags) $(conlibsdll) $(libmach)
EXEGUILINK_C = $(LINK) $(ldebug) $(guilflags) $(guilibsdll) $(libmach)
DLLCONLINK_C = $(LINK) $(ldebug) $(dlllflags) $(conlibsdll) $(libmach)
DLLGUILINK_C = $(LINK) $(ldebug) $(dlllflags) $(guilibsdll) $(libmach)
C2OBJ_C_MT = $(CC) $(cdebug) $(cflags) $(cvarsmt) $(AUXCFLAGS) $(intcflags) $(cdefines) $(cincdirs) $(cwarn)
!else # STATICRUNTIME
C2OBJ_C = $(CC) $(cdebug) $(cflags) $(cvarsmt) $(AUXCFLAGS) $(intcflags) $(cdefines) $(cincdirs) $(cwarn)
EXECONLINK_C = $(LINK) $(ldebug) $(conlflags) $(conlibsmt) $(libmach)
EXEGUILINK_C = $(LINK) $(ldebug) $(guilflags) $(guilibsmt) $(libmach)
DLLCONLINK_C = $(LINK) $(ldebug) $(dlllflags) $(conlibsmt) $(libmach)
DLLGUILINK_C = $(LINK) $(ldebug) $(dlllflags) $(guilibsmt) $(libmach)
!endif
LIBGUI_C = $(LM) /nologo $(libmach) /SUBSYSTEM:WINDOWS
LIBCON_C = $(LM) /nologo $(libmach) /SUBSYSTEM:CONSOLE
C2OBJ = $(C2OBJ_C) -Fo$@ -Fd$(@D)\ $**
C2OBJ_NP = $(C2OBJ_C) $(MPOPT) $<
C2OBJ_P = $(C2OBJ_NP) -Fo$(OBJ)\ -Fd$(OBJ)\ #
EXECONLINK = $(EXECONLINK_C) -OUT:$@ $**
EXEGUILINK = $(EXEGUILINK_C) -OUT:$@ $**
DLLCONLINK = $(DLLCONLINK_C) -OUT:$@ $**
DLLGUILINK = $(DLLGUILINK_C) -OUT:$@ $**
LIBGUI = $(LIBGUI_C) /OUT:$@ $**
LIBCON = $(LIBCON_C) /OUT:$@ $**
# Preprocess files to stdout using config.h
CPREPROCESSOUT = $(CC) /EP /FI$(INCDIR)\config.h /TC /DCPP_ONLY=1
# Resources
RC2RES_C = $(RC) $(cincdirs) $(AUXRCFLAGS)
RC2RES = $(RC2RES_C) -fo $@ $**
#----------------------------------------------------------------------
# If this is the initial invocation, we check if all the build
# utilities are there. Also show the commands macros.
!ifndef RECURSE
REQUIRED_TOOLS= \
"$(AWK_CMD)" "$(YACC_CMD)" "$(LEX_CMD)" "$(PYTHON)" "$(PERL)" \
"$(CMP)" "$(SED)" "$(MAKECAT)" "$(MAKEINFO)" "$(HHC)"
!ifdef BUILD_INSTALLERS
REQUIRED_TOOLS=$(REQUIRED_TOOLS) "$(CANDLE_CMD)" "$(LIGHT_CMD)"
!endif
OPTIONAL_TOOLS="$(SH)"
check-utils:
@for %%g in ( $(REQUIRED_TOOLS) ) do @( \
for /f %%f in ( "%%g" ) do @( \
if exist %%f @( \
echo Found %%f \
) else if "%%~$$PATH:f"=="" @( \
echo Could not find %%f in PATH && \
exit /b 1 \
) else @( \
echo Found %%~$$PATH:f \
) \
) \
)
@for %%g in ( $(OPTIONAL_TOOLS) ) do @( \
for /f %%f in ( "%%g" ) do @( \
if exist %%f @( \
echo Found %%f \
) else if "%%~$$PATH:f"=="" @( \
echo Could not find %%f in PATH && \
echo Optional targets may fail. \
) else @( \
echo Found %%~$$PATH:f \
) \
) \
)
prep:: check-utils
show-cmds:
@$(ECHO) C2OBJ=$(C2OBJ_C:\=\\)
@$(ECHO).
@$(ECHO) EXECONLINK=$(EXECONLINK_C)
@$(ECHO).
@$(ECHO) EXEGUILINK=$(EXEGUILINK_C)
@$(ECHO).
@$(ECHO) DLLCONLINK=$(DLLCONLINK_C)
@$(ECHO).
@$(ECHO) DLLGUILINK=$(DLLGUILINK_C)
@$(ECHO).
@$(ECHO) LIBGUI=$(LIBGUI_C)
@$(ECHO).
@$(ECHO) LIBCON=$(LIBCON_C)
prep:: show-cmds
!endif # RECURSE
{}.c{$(OBJ)}.obj::
$(C2OBJ_C) /Fd$(OBJ)\ /Fo$(OBJ)\ $(localcflags) $(MPOPT) @<<
$<
<<
{$(OBJ)}.c{$(OBJ)}.obj::
$(C2OBJ_C) /Fd$(OBJ)\ /Fo$(OBJ)\ $(extcflags) $(MPOPT) @<<
$<
<<
{}.cpp{$(OBJ)}.obj::
$(C2OBJ_C) /Fd$(OBJ)\ /Fo$(OBJ)\ $(localcflags) $(MPOPT) @<<
$<
<<
{$(OBJ)}.cpp{$(OBJ)}.obj::
$(C2OBJ_C) /Fd$(OBJ)\ /Fo$(OBJ)\ $(extcflags) $(MPOPT) @<<
$<
<<
{}.hin{$(INCDIR)}.h:
$(CP) $< $@
{}.h{$(INCDIR)}.h:
$(CP) $< $@
{}.h{$(INCDIR)\krb5}.h:
$(CP) $< $@
{$(OBJ)}.h{$(INCDIR)}.h:
$(CP) $< $@
{$(OBJ)}.x{$(OBJ)}.c:
$(CP) $< $@
{$(OBJ)}.hx{$(INCDIR)}.h:
$(CP) $< $@
{$(OBJ)}.hx{$(OBJ)}.h:
$(CP) $< $@
{}.rc{$(OBJ)}.res:
$(RC2RES)
#----------------------------------------------------------------------
# Announce the build directory
!ifdef RELDIR
all:: announce
all-tools:: announce-tools
test:: announce
clean:: announce
announce:
@echo.
@echo --------- Entering $(RELDIR:\= ):
announce-tools:
@echo.
@echo --------- Entering $(RELDIR:\= ) tools:
!endif
#----------------------------------------------------------------------
# Create any required directories if they don't already exist
prep:: mkdirs
mkdirs:
! if !exist("$(OBJ)")
-$(MKDIR) "$(OBJ)"
! endif
! if !exist("$(DESTDIR)")
-$(MKDIR) "$(DESTDIR)"
! endif
! if !exist("$(LIBDIR)")
-$(MKDIR) "$(LIBDIR)"
! endif
! if !exist("$(BINDIR)")
-$(MKDIR) "$(BINDIR)"
! endif
! if !exist("$(PLUGINDIR)")
-$(MKDIR) "$(PLUGINDIR)"
! endif
! if !exist("$(INCDIR)")
-$(MKDIR) "$(INCDIR)"
! endif
! if !exist("$(DOCDIR)")
-$(MKDIR) "$(DOCDIR)"
! endif
! if !exist("$(INCDIR)\gssapi")
-$(MKDIR) "$(INCDIR)\gssapi"
! endif
! if !exist("$(INCDIR)\hcrypto")
-$(MKDIR) "$(INCDIR)\hcrypto"
! endif
! if !exist("$(INCDIR)\kadm5")
-$(MKDIR) "$(INCDIR)\kadm5"
! endif
! if !exist("$(INCDIR)\krb5")
-$(MKDIR) "$(INCDIR)\krb5"
! endif
#----------------------------------------------------------------------
# If SUBDIRS is defined, we should recurse into the subdirectories
!ifdef SUBDIRS
subdirs:
@for %%f in ( $(SUBDIRS) ) do @ (pushd %%f && $(RMAKE) && popd) || exit /b 1
clean-subdirs:
@for %%f in ( $(SUBDIRS) ) do @ (pushd %%f && $(RMAKE) clean && popd) || exit /b 1
test-subdirs:
@for %%f in ( $(SUBDIRS) ) do @ (pushd %%f && $(RMAKE) test && popd) || exit /b 1
all:: subdirs
clean:: clean-subdirs
test:: test-subdirs
!endif
#----------------------------------------------------------------------
# Clean targets
!ifdef CLEANFILES
clean::
-$(RM) $(CLEANFILES)
!endif
!ifdef RELDIR
clean::
-$(RM) $(OBJ)\*.*
!endif
.SUFFIXES: .c .cpp .hin .h .hx
#----------------------------------------------------------------------
# Manifest handling
#
# Starting with Visual Studio 8, the C compiler and the linker
# generate manifests so that the applications will link with the
# correct side-by-side DLLs at run-time. These are required for
# correct operation under Windows XP and later. We also have custom
# manifests which need to be merged with the manifests that VS
# creates.
#
# The syntax for invoking the _VC_MANIFEST_EMBED_FOO macro is:
# $(_VC_MANIFEST_EMBED_???) <additional manifests>
#
MT=mt.exe -nologo
_VC_MANIFEST_EMBED_EXE= \
( if exist $@.manifest $(MT) -outputresource:$@;1 -manifest $@.manifest $(APPMANIFEST) )
_VC_MANIFEST_EMBED_EXE_NOHEIM= \
( if exist $@.manifest $(MT) -outputresource:$@;1 -manifest $@.manifest )
_VC_MANIFEST_EMBED_DLL= \
( if exist $@.manifest $(MT) -outputresource:$@;2 -manifest $@.manifest )
_MERGE_MANIFEST_DLL= \
( $(MT) -inputresource:$@;2 -manifest $(APPMANIFEST) -outputresource:$@;2 )
_INSERT_APPMANIFEST_DLL= \
( $(MT) -manifest $(APPMANIFEST) -outputresource:$@;2 )
# Note that if you are merging manifests, then the VS generated
# manifest should be cleaned up after calling _VC_MANIFEST_EMBED_???.
# This ensures that even if the DLL or EXE is executed in-place, the
# embedded manifest will be used. Otherwise the $@.manifest file will
# be used.
_VC_MANIFEST_CLEAN= \
( if exist $@.manifest $(RM) $@.manifest )
# End of manifest handling
#----------------------------------------------------------------------
# Code and assembly signing
#
#
# SIGNTOOL is fullpath to signtool.exe from Windows v8.1 or later SDK
# (earlier versions do not support SHA-2 signatures)
#
# SIGNTOOL_C is any set of options required for certificate/private
# key selection for code signging.
#
# SIGNTOOL_O is any set of additional options to signtool.exe
#
# SIGNTOOL_T is the timestamp option
!ifdef CODESIGN
_CODESIGN=( $(CODESIGN) $@ )
_CODESIGN_SHA256=( $(CODESIGN_SHA256) $@ )
!else
!ifndef SIGNTOOL
SIGNTOOL=signtool.exe
!endif
!ifdef SIGNTOOL_C
!ifndef SIGNTOOL_T
SIGNTOOL_T=http://timestamp.digicert.com
!endif
!ifndef SIGNTOOL_T_SHA256
SIGNTOOL_T_SHA256=http://timestamp.digicert.com
!endif
_CODESIGN=( $(SIGNTOOL) sign /fd sha1 $(SIGNTOOL_O) /t $(SIGNTOOL_T) $(SIGNTOOL_C) /v $@ )
_CODESIGN_SHA256=( $(SIGNTOOL) sign /as /fd sha256 /td sha256 $(SIGNTOOL_O) /tr $(SIGNTOOL_T_SHA256) $(SIGNTOOL_C) /v $@ )
!else
_CODESIGN=( echo Skipping code sign )
_CODESIGN_SHA256=( echo Skipping sha256 code sign )
!endif
!endif
#----------------------------------------------------------------------
# Symbol Store Support
#
# SYMSTORE_EXE is full path to symstore.exe
#
# SYMSTORE_ROOT is full path to root directory of symbol store
#
# SYMSTORE_COMMENT is optional comment to include in symbol store catalog entry
#
!IF DEFINED(SYMSTORE_EXE) && DEFINED(SYMSTORE_ROOT)
!IF "$(SYMSTORE_COMMENT)" != ""
SYMSTORE_COMMENT = |$(SYMSTORE_COMMENT)
!ENDIF
SYMSTORE_IMPORT= \
$(SYMSTORE_EXE) add /s $(SYMSTORE_ROOT) /t "Heimdal" /v "$(BUILD)-$(CPU)-$(VER_PACKAGE_VERSION)" /c "$(@F)$(SYMSTORE_COMMENT)" /f $*.*
!ELSE
SYMSTORE_IMPORT=@echo No symbol store
!ENDIF
#----------------------------------------------------------------------
# Convenience macros for preparing EXEs and DLLs. These are multiline
# macros that deal with manifests and code signing. Unless we need to
# include custom manifests, these are what we should be using to
# prepare binaries.
EXEPREP=\
( $(_VC_MANIFEST_EMBED_EXE) && $(_VC_MANIFEST_CLEAN) && $(SYMSTORE_IMPORT) && $(_CODESIGN) && $(_CODESIGN_SHA256) ) || ( $(RM) $@ && exit /b 1 )
EXEPREP_NOHEIM=\
( $(_VC_MANIFEST_EMBED_EXE_NOHEIM) && $(_VC_MANIFEST_CLEAN) && $(SYMSTORE_IMPORT) && $(_CODESIGN) && $(_CODESIGN_SHA256) ) || ( $(RM) $@ && exit /b 1 )
EXEPREP_NODIST=\
( $(_VC_MANIFEST_EMBED_EXE_NOHEIM) && $(_VC_MANIFEST_CLEAN) && $(SYMSTORE_IMPORT) ) || ( $(RM) $@ && exit /b 1 )
DLLPREP=\
( $(_VC_MANIFEST_EMBED_DLL) && $(_VC_MANIFEST_CLEAN) && $(SYMSTORE_IMPORT) && $(_CODESIGN) && $(_CODESIGN_SHA256) ) || ( $(RM) $@ && exit /b 1 )
DLLPREP_NODIST=\
( $(_VC_MANIFEST_EMBED_DLL) && $(_VC_MANIFEST_CLEAN) && $(SYMSTORE_IMPORT) ) || ( $(RM) $@ && exit /b 1 )
DLLPREP_MERGE=\
( ( $(_MERGE_MANIFEST_DLL) || $(_INSERT_APPMANIFEST_DLL) && $(SYMSTORE_IMPORT) ) && $(_CODESIGN) && $(_CODESIGN_SHA256) ) || ( $(RM) $@ && exit /b 1 )
#----------------------------------------------------------------------
# Convenience macros for import libraries and assemblies
#
LIBASN1 =$(LIBDIR)\libasn1.lib
LIBASN1_S =$(LIBDIR)\libasn1_s.lib
LIBCOMERR =$(LIBDIR)\libcom_err.lib
LIBEDITLINE =$(LIBDIR)\libeditline.lib
LIBGSSAPI =$(LIBDIR)\libgssapi.lib
LIBGSS_PREAUTH=$(LIBDIR)\libgss_preauth.lib
LIBHCRYPTO =$(LIBDIR)\libhcrypto.lib
LIBHDB =$(LIBDIR)\libhdb.lib
LIBHEIMBASE =$(LIBDIR)\libheimbase.lib
LIBHEIMDAL =$(LIBDIR)\heimdal.lib
LIBHEIMIPCC =$(LIBDIR)\libheim-ipcc.lib
LIBHEIMIPCS =$(LIBDIR)\libheim-ipcs.lib
LIBHEIMNTLM =$(LIBDIR)\libheimntlm.lib
LIBHX509 =$(LIBDIR)\libhx509.lib
LIBKADM5CLNT=$(LIBDIR)\libkadm5clnt.lib
LIBKADM5SRV =$(LIBDIR)\libkadm5srv.lib
LIBKDC =$(LIBDIR)\libkdc.lib
LIBLTM =$(LIBDIR)\libltm.lib
LIBKRB5 =$(LIBDIR)\libkrb5.lib
LIBRFC3961 =$(LIBDIR)\librfc3961.lib
LIBROKEN =$(LIBDIR)\libroken.lib
LIBSL =$(LIBDIR)\libsl.lib
LIBSQLITE =$(LIBDIR)\libsqlite.lib
LIBVERS =$(LIBDIR)\libvers.lib
LIBWIND =$(LIBDIR)\libwind.lib
LIBX25519 =$(LIBDIR)\libx25519.lib
!ifdef VER_DEBUG
ASM_DBG=.Debug
!endif
!ifdef VER_PRERELEASE
ASM_PRE=.Pre
!endif
!ifdef VER_PRIVATE
ASM_PVT=.Private
!endif
!ifdef VER_SPECIAL
ASM_SPC=.Special
!endif
ASMKRBNAME =Heimdal.Kerberos$(ASM_SPC)$(ASM_PVT)$(ASM_PRE)$(ASM_DBG)
APPMANIFEST =$(INCDIR)\Heimdal.Application.$(MCPU).manifest
|