blob: 151fac6873b01584722a49557c5e4946929eaea7 (
plain)
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
|
#
# Start of Win32 post-config lines (config/win-post.in)
#
setup-msg::
@set C_RULE_PRINT= $(C_RULE_PRINT)
@set DO_C_RULE_PRINT=1
!if defined(NO_OUTPRE) || defined(NO_OUTDIR)
outpre-dir::
!else
outpre-dir:: $(OUTPRE3)$(DIRNUL)
!endif
#
# put all:: first just in case no other rules occur here
#
all::
#
# Set the #define to indicate that we are compiling a DLL. We default to
# compiling the Kerberos library
#
!if defined(DLL_EXP_TYPE)
DLL_FILE_DEF=/D$(DLL_EXP_TYPE)_DLL_FILE
!else
DLL_FILE_DEF=/DKRB5_DLL_FILE
!endif
# Build the Makefile unless we are in the top-level
#(where there is already an explicit rule).
!if !defined(ZIP) && !defined(WINFILES)
Makefile: Makefile.in $(BUILDTOP)\config\win-pre.in $(BUILDTOP)\config\win-post.in
$(WCONFIG) $(BUILDTOP)\config < Makefile.in > Makefile
!endif
!if ("$(CPU)" == "IA64" ) || ("$(CPU)" == "AMD64" ) || ("$(CPU)" == "ALPHA64" )
!if defined(WIN64LIBNAME)
LIBNAME=$(WIN64LIBNAME)
!endif
!if defined(WIN64OBJFILE)
OBJFILE=$(WIN64OBJFILE)
!endif
!endif
!if defined(LIBNAME)
!if !defined(OBJFILELIST)
OBJFILELIST=@$(OBJFILE)
!endif
!if !defined(OBJFILEDEP)
OBJFILEDEP=$(OBJFILE)
!endif
all-windows:: $(LIBNAME)
$(LIBNAME): $(OBJFILEDEP)
$(LIBCMD) /out:$(LIBNAME) /nologo $(OBJFILELIST)
!endif # LIBNAME
!if defined(OBJFILE)
all-windows:: $(OBJFILE)
!if defined(LIBOBJS)
$(OBJFILE): $(LIBOBJS)
if exist $(OBJFILE) del $(OBJFILE)
!if defined(PREFIXDIR)
$(LIBECHO) -p $(PREFIXDIR)\ $** > $(OBJFILE)
!else
$(LIBECHO) $** > $(OBJFILE)
!endif # !PREFIXDIR
!endif # LIBOBJS
!endif # OBJFILE
check::
check-windows::
!if defined(LIBNAME)
clean-windows::
# NO LONGER NEEDED BECAUSE WE CLEAN OUT THE DIR...
# if exist $(LIBNAME) del $(LIBNAME)
!endif
!if defined(OBJFILE)
clean-windows::
# NO LONGER NEEDED BECAUSE WE CLEAN OUT THE DIR...
# if exist $(OBJFILE) del $(OBJFILE)
!endif
clean-windows:: clean-windows-files clean-windows-dir
# This needs to be in the post because we need RM to be defined in terms
# of BUILDTOP
clean-windows-files::
!if "$(OUTPRE3)" == ""
!error ASSERTION FAILURE: OUTPRE3 must be defined!!!
!endif
!if "$(OS)" == "Windows_NT"
@if exist $(OUTPRE3)$(DIRNUL) rd /s/q $(OUTPRE3)
!else
@if exist $(OUTPRE3)$(DIRNUL) deltree /y $(OUTPRE3)
!endif
!if 0
$(RM) .\$(OUTPRE)*.obj .\$(OUTPRE)*.res
$(RM) .\$(OUTPRE)*.exe .\$(OUTPRE)*.dll
$(RM) .\$(OUTPRE)*.lib .\$(OUTPRE)*.pdb
$(RM) .\$(OUTPRE)*.exp .\$(OUTPRE)*.map
$(RM) .\$(OUTPRE)*.idb .\$(OUTPRE)*.ilk
$(RM) .\$(OUTPRE)*.manifest
!endif
# Dependencies
!if exist($(srcdir)/deps)
!include $(srcdir)/deps
!endif
|