7 install:: install-$(WHAT)
15 all-windows:: Makefile
16 clean-windows:: Makefile
21 !if !defined(CPU) || "$(CPU)" == ""
22 CPU=$(PROCESSOR_ARCHITECTURE)
29 # Change x86 or X86 to i386
30 !if ( "$(CPU)" == "X86" ) || ( "$(CPU)" == "x86" )
34 !if ( "$(CPU)" != "i386" ) && ( "$(CPU)" != "ALPHA" )
35 !error Must specify CPU environment variable ( CPU=i386, CPU=ALPHA)
38 # End of figuring out CPU
42 # NOTE: ^ is an escape char for NMAKE.
49 OUTPRE2=$(OUTPRE1)\$(CPU)
50 OUTPRE3=$(OUTPRE2)\$(OUTPRE_DBG)
54 -@if not exist $(OUTPRE1)\nul mkdir $(OUTPRE1)
55 -@if not exist $(OUTPRE2)\nul mkdir $(OUTPRE2)
56 -@if not exist $(OUTPRE3)\nul mkdir $(OUTPRE3)
57 -@if exist $(OUTPRE3)\nul echo Output will go to $(OUTPRE3).
58 -@if not exist $(OUTPRE3)\nul echo Could not create $(OUTPRE3).
61 -@if exist $(OUTPRE3)\nul rmdir $(OUTPRE3)
62 -@if exist $(OUTPRE2)\nul rmdir $(OUTPRE2)
63 -@if exist $(OUTPRE1)\nul rmdir $(OUTPRE1)
75 # this is magic... should only be used for preceding a program invocation
79 SRCTOP = $(srcdir)\$(BUILDTOP)
82 # The name of the C compiler for the target
87 PDB_OPTS=-Fd$(OUTPRE)\ -FD
89 # /ZI gives better debug info in each object file (MSVC 6.0 or higher).
90 # /Zi gives debug info in each object file.
91 # /Gs Avoid stack probes (they don't seem to work anyway)
92 # /Os optimize for space. FIXME: Do not use /Ox; it miscompiles the DES lib!
93 # /Od disable optimization (for debugging)
94 # /MD (Win32) thread safe, ML would be single threaded, don't build with ML
97 # CCOPTS is for DLL compiles
98 # CCOPTS2 is for non-DLL compiles (EXEs, for example)
101 CCOPTS =/Os /W3 /MD $(PDB_OPTS) $(XTRA) $(DLL_FILE_DEF)
102 CCOPTS2=/Os /W3 $(PDB_OPTS) $(XTRA)
105 CCOPTS =/Od /ZI /W3 /MD $(PDB_OPTS) $(XTRA) $(DLL_FILE_DEF)
106 CCOPTS2=/Od /ZI /W3 $(PDB_OPTS) $(XTRA)
110 # XXX - NOTE: We should probably use DllMainCRTStartup
111 LINKOPTS=-incremental:no $(LOPTS) -nologo -dll -entry:DllMain
112 LINKOPTS2=-incremental:no $(LOPTS) -nologo
114 CPPFLAGS = -I$(SRCTOP)\include -I$(SRCTOP)\include\krb5
116 CFLAGS2 = $(CCOPTS2) $(DEFS)
118 RM=$(BUILDTOP)\config\rm.bat
119 LIBECHO=$(BUILDTOP)\util\windows\$(OUTPRE)libecho
128 CLIB=$(BUILDTOP)\lib\$(OUTPRE)comerr32.lib
129 PLIB=$(BUILDTOP)\lib\$(OUTPRE)xpprof32.lib
130 KLIB=$(BUILDTOP)\lib\$(OUTPRE)krb5_32.lib
131 K4LIB=$(BUILDTOP)\lib\$(OUTPRE)krb4_32.lib
133 GLIB=$(BUILDTOP)\lib\$(OUTPRE)gssapi32.lib
146 {}.rc{$(OUTPRE)}.res:
147 $(RC) $(RCFLAGS) -fo $@ -r $<
150 $(CC) $(CFLAGS) -Fo$(OUTPRE)\ -c $<
152 {}.cxx{$(OUTPRE)}.obj:
153 $(CC) $(CFLAGS) -Fo$(OUTPRE)\ -c $<
155 {}.cpp{$(OUTPRE)}.obj:
156 $(CC) $(CFLAGS) -Fo$(OUTPRE)\ -c $<
159 # End of Win32 pre-config lines (config/win-pre.in)