2 # Start of Win32 post-config lines (config/win-post.in)
6 @set C_RULE_PRINT= $(C_RULE_PRINT)
9 !if defined(NO_OUTPRE) || defined(NO_OUTDIR)
12 outpre-dir:: $(OUTPRE3)$(DIRNUL)
16 # put all:: first just in case no other rules occur here
21 # Set the #define to indicate that we are compiling a DLL. We default to
22 # compiling the Kerberos library
24 !if defined(DLL_EXP_TYPE)
25 DLL_FILE_DEF=/D$(DLL_EXP_TYPE)_DLL_FILE
27 DLL_FILE_DEF=/DKRB5_DLL_FILE
30 # Build the Makefile unless we are in the top-level
31 #(where there is already an explicit rule).
32 !if !defined(ZIP) && !defined(WINFILES)
33 Makefile: Makefile.in $(BUILDTOP)\config\win-pre.in $(BUILDTOP)\config\win-post.in
34 $(WCONFIG) $(BUILDTOP)\config < Makefile.in > Makefile
37 !if ("$(CPU)" == "IA64" ) || ("$(CPU)" == "AMD64" ) || ("$(CPU)" == "ALPHA64" )
38 !if defined(WIN64LIBNAME)
39 LIBNAME=$(WIN64LIBNAME)
41 !if defined(WIN64OBJFILE)
42 OBJFILE=$(WIN64OBJFILE)
48 !if !defined(OBJFILELIST)
49 OBJFILELIST=@$(OBJFILE)
51 !if !defined(OBJFILEDEP)
55 all-windows:: $(LIBNAME)
56 $(LIBNAME): $(OBJFILEDEP)
57 $(LIBCMD) /out:$(LIBNAME) /nologo $(OBJFILELIST)
63 all-windows:: $(OBJFILE)
65 $(OBJFILE): $(LIBOBJS)
66 if exist $(OBJFILE) del $(OBJFILE)
67 !if defined(PREFIXDIR)
68 $(LIBECHO) -p $(PREFIXDIR)\ $** > $(OBJFILE)
70 $(LIBECHO) $** > $(OBJFILE)
81 # NO LONGER NEEDED BECAUSE WE CLEAN OUT THE DIR...
82 # if exist $(LIBNAME) del $(LIBNAME)
86 # NO LONGER NEEDED BECAUSE WE CLEAN OUT THE DIR...
87 # if exist $(OBJFILE) del $(OBJFILE)
90 clean-windows:: clean-windows-files clean-windows-dir
93 # This needs to be in the post because we need RM to be defined in terms
96 !if "$(OUTPRE3)" == ""
97 !error ASSERTION FAILURE: OUTPRE3 must be defined!!!
99 !if "$(OS)" == "Windows_NT"
100 @if exist $(OUTPRE3)$(DIRNUL) rd /s/q $(OUTPRE3)
102 @if exist $(OUTPRE3)$(DIRNUL) deltree /y $(OUTPRE3)
105 $(RM) .\$(OUTPRE)*.obj .\$(OUTPRE)*.res
106 $(RM) .\$(OUTPRE)*.exe .\$(OUTPRE)*.dll
107 $(RM) .\$(OUTPRE)*.lib .\$(OUTPRE)*.pdb
108 $(RM) .\$(OUTPRE)*.exp .\$(OUTPRE)*.map
109 $(RM) .\$(OUTPRE)*.idb .\$(OUTPRE)*.ilk
110 $(RM) .\$(OUTPRE)*.manifest
114 !if exist($(srcdir)/deps)
115 !include $(srcdir)/deps