pull up r24469, r24530, r24533, r24534, r24535, r24537 from trunk
[krb5.git] / src / ccapi / lib / win / Makefile.in
index 9fa6c02dcadebe48145ee6bc291b62f6bfa2b842..7ca749a1895be8bd40ac749ba88a6f4291a31682 100644 (file)
-# makefile: Constructs the Kerberos for Windows CCAPI DLL.\r
-#\r
-OBJS   = $(OUTPRE)ccapi_ccache.obj \\r
-          $(OUTPRE)ccapi_ccache_iterator.obj \\r
-          $(OUTPRE)ccapi_context.obj \\r
-          $(OUTPRE)ccapi_context_change_time.obj \\r
-          $(OUTPRE)ccapi_credentials.obj \\r
-          $(OUTPRE)ccapi_credentials_iterator.obj \\r
-          $(OUTPRE)ccapi_ipc.obj \\r
-         $(OUTPRE)ccapi_err.obj \\r
-          $(OUTPRE)ccapi_os_ipc.obj \\r
-          $(OUTPRE)ccapi_string.obj \\r
-          $(OUTPRE)ccapi_v2.obj \\r
-          $(OUTPRE)cci_array_internal.obj \\r
-          $(OUTPRE)cci_cred_union.obj \\r
-          $(OUTPRE)cci_debugging.obj \\r
-          $(OUTPRE)cci_identifier.obj \\r
-          $(OUTPRE)cci_message.obj \\r
-          $(OUTPRE)cci_os_debugging.obj \\r
-          $(OUTPRE)cci_os_identifier.obj \\r
-          $(OUTPRE)ccs_reply_proc.obj \\r
-          $(OUTPRE)ccs_reply_s.obj \\r
-          $(OUTPRE)ccs_request_c.obj \\r
-          $(OUTPRE)ccutils.obj \\r
-          $(OUTPRE)client.obj \\r
-          $(OUTPRE)dllmain.obj \\r
-          $(OUTPRE)init.obj \\r
-          $(OUTPRE)rpc.obj \\r
-          $(OUTPRE)secure.obj \\r
-          $(OUTPRE)tls.obj \\r
-          $(OUTPRE)util.obj \\r
-          $(OUTPRE)win-utils.obj\r
-\r
-##### Options\r
-# Set NODEBUG if building release instead of debug\r
-\r
-#BUILDTOP is krb5/src and is relative to krb5/src/ccapi/lib/win, for making Makefile.\r
-BUILDTOP=..\..\..\      \r
-CCAPI   = $(BUILDTOP)\CCAPI\r
-CO      = $(CCAPI)\common\r
-COWIN   = $(CCAPI)\common\win\r
-CCUTIL  = $(CCAPI)\common\win\OldCC             \r
-LIBDIR  = $(CCAPI)\lib\r
-LIBWIN  = $(LIBDIR)\win\r
-POSIX   = $(BUILDTOP)\lib\krb5\posix\r
-OLDCC   = $(LIBWIN)\OldCC\r
-SRCTMP  = $(LIBWIN)\srctmp\r
-\r
-!if defined(KRB5_KFW_COMPILE)\r
-KFWINC= /I$(BUILDTOP)\..\..\krbcc\include\r
-!endif\r
-\r
-# Because all the sources are pulled together into the temp directory SRCTMP,\r
-#  the only includes we need are to directories outside of ccapi.\r
-LOCALINCLUDES = /I..\$(BUILDTOP) /I..\$(BUILDTOP)\include /I..\$(BUILDTOP)\include\krb5 $(KFWINC) \\r
-    -I..\$(BUILDTOP)\util\et \r
-MIDLINCLUDES  = /I..\$(BUILDTOP)\include\r
-\r
-CPPFLAGS = $(CPPFLAGS) /EHsc -D_CRTAPI1=_cdecl -D_CRTAPI2=_cdecl -DWINVER=0x0501 \\r
--D_WIN32_WINNT=0x0501 -D_CRT_SECURE_NO_WARNINGS $(cvarsdll)\r
-\r
-\r
-##### Linker\r
-LINK   = link\r
-LIBS   = ..\$(CLIB) ..\$(SLIB) kernel32.lib ws2_32.lib user32.lib advapi32.lib\r
-LFLAGS = /nologo $(LOPTS)\r
-\r
-all:: Makefile copysrc midl $(OUTPRE)ccapi.dll finish\r
-\r
-ccs_request.h ccs_request_c.c ccs_request_s.c : ccs_request.idl ccs_request.acf\r
-    midl $(MIDL_OPTIMIZATION) $(MIDLI) -oldnames -cpp_cmd $(CC) -cpp_opt "-E" \\r
-    ccs_request.idl\r
-\r
-ccs_reply.h   ccs_reply_c.c   ccs_reply_s.c   : ccs_reply.idl   ccs_reply.acf\r
-    midl $(MIDL_OPTIMIZATION) $(MIDLI) -oldnames -cpp_cmd $(CC) -cpp_opt "-E" \\r
-    ccs_reply.idl\r
-\r
-copysrc :\r
-    echo "Copying all sources needed to build ccapi.dll to $(SRCTMP)"\r
-    if NOT exist $(SRCTMP)\nul mkdir $(SRCTMP)\r
-    xcopy /D/Y   $(CO)\*.*     $(SRCTMP)\r
-    xcopy /D/Y   $(COWIN)\*.*  $(SRCTMP)\r
-    xcopy /D/Y   $(CCUTIL)\*.* $(SRCTMP)\r
-    xcopy /D/Y   $(LIBDIR)\*.* $(SRCTMP)\r
-    xcopy /D/Y   $(LIBWIN)\*.* $(SRCTMP)\r
-    xcopy /D/Y   $(OLDCC)\*.*  $(SRCTMP)\r
-    cd $(SRCTMP)\r
-    if NOT exist $(OUTPRE)\nul mkdir $(OUTPRE)\r
-\r
-midl : ccs_request.h ccs_reply.h\r
-\r
-# Main program:\r
-$(OUTPRE)ccapi.dll: $(OBJS) ccapi.def\r
-       $(LINK) $(LFLAGS) -entry:_DllMainCRTStartup@12 -dll /map:$*.map /out:$@ /DEF:ccapi.def $(OBJS) \\r
-           /implib:ccapi.lib $(dllflags) $(LIBS) $(KFWLIB) $(SCLIB) rpcrt4.lib $(conlibsdll) $(conflags) \r
-\r
-ccapi.def: \r
-    echo ;ccapi.def is generated by a Makefile rule. > ccapi.def\r
-    echo HEAPSIZE      8192  >> ccapi.def\r
-    echo EXPORTS          >> ccapi.def\r
-    type ccapi.exports    >> ccapi.def\r
-    type ccapi_v2.exports >> ccapi.def\r
-    type debug.exports    >> ccapi.def\r
-\r
-finish:\r
-    echo "Finished in ccapi/lib/win."\r
-    cd ..\r
-\r
-install::\r
-    echo "Doing nothing for make install"\r
-\r
-clean:: \r
-       if exist $(OUTPRE)*.exe del $(OUTPRE)*.exe\r
-       if exist $(OUTPRE)*.obj del $(OUTPRE)*.obj\r
-       if exist $(OUTPRE)*.res del $(OUTPRE)*.res\r
-       if exist $(OUTPRE)*.map del $(OUTPRE)*.map\r
-       if exist $(OUTPRE)*.pdb del $(OUTPRE)*.pdb\r
-       if exist *.err del *.err\r
-    if exist $(SRCTMP) rm -rf $(SRCTMP)
\ No newline at end of file
+# makefile: Constructs the Kerberos for Windows CCAPI DLL.
+#
+OBJS   = $(OUTPRE)ccapi_ccache.obj \
+          $(OUTPRE)ccapi_ccache_iterator.obj \
+          $(OUTPRE)ccapi_context.obj \
+          $(OUTPRE)ccapi_context_change_time.obj \
+          $(OUTPRE)ccapi_credentials.obj \
+          $(OUTPRE)ccapi_credentials_iterator.obj \
+          $(OUTPRE)ccapi_ipc.obj \
+         $(OUTPRE)ccapi_err.obj \
+          $(OUTPRE)ccapi_os_ipc.obj \
+          $(OUTPRE)ccapi_string.obj \
+          $(OUTPRE)ccapi_v2.obj \
+          $(OUTPRE)cci_array_internal.obj \
+          $(OUTPRE)cci_cred_union.obj \
+          $(OUTPRE)cci_debugging.obj \
+          $(OUTPRE)cci_identifier.obj \
+          $(OUTPRE)cci_message.obj \
+          $(OUTPRE)cci_os_debugging.obj \
+          $(OUTPRE)cci_os_identifier.obj \
+          $(OUTPRE)ccs_reply_proc.obj \
+          $(OUTPRE)ccs_reply_s.obj \
+          $(OUTPRE)ccs_request_c.obj \
+          $(OUTPRE)ccutils.obj \
+          $(OUTPRE)client.obj \
+          $(OUTPRE)dllmain.obj \
+          $(OUTPRE)init.obj \
+          $(OUTPRE)rpc.obj \
+          $(OUTPRE)secure.obj \
+          $(OUTPRE)tls.obj \
+          $(OUTPRE)util.obj \
+          $(OUTPRE)win-utils.obj
+
+##### Options
+# Set NODEBUG if building release instead of debug
+
+#BUILDTOP is krb5/src and is relative to krb5/src/ccapi/lib/win, for making Makefile.
+BUILDTOP= ..\..\..
+CCAPI   = $(BUILDTOP)\CCAPI
+CO      = $(CCAPI)\common
+COWIN   = $(CCAPI)\common\win
+CCUTIL  = $(CCAPI)\common\win\OldCC
+LIBDIR  = $(CCAPI)\lib
+LIBWIN  = $(LIBDIR)\win
+POSIX   = $(BUILDTOP)\lib\krb5\posix
+OLDCC   = $(LIBWIN)\OldCC
+SRCTMP  = $(LIBWIN)\srctmp
+
+!if defined(KRB5_KFW_COMPILE)
+KFWINC= /I$(BUILDTOP)\..\..\krbcc\include
+!endif
+
+# Because all the sources are pulled together into the temp directory SRCTMP,
+#  the only includes we need are to directories outside of ccapi.
+LOCALINCLUDES = /I..\$(BUILDTOP) /I..\$(BUILDTOP)\include /I..\$(BUILDTOP)\include\krb5 $(KFWINC) \
+    -I..\$(BUILDTOP)\util\et
+MIDLINCLUDES  = /I..\$(BUILDTOP)\include
+
+CPPFLAGS = $(CPPFLAGS) /EHsc -D_CRTAPI1=_cdecl -D_CRTAPI2=_cdecl -DWINVER=0x0501 \
+-D_WIN32_WINNT=0x0501 -D_CRT_SECURE_NO_WARNINGS $(cvarsdll)
+
+
+##### Linker
+LINK   = link
+LIBS   = ..\$(CLIB) ..\$(SLIB) kernel32.lib ws2_32.lib user32.lib advapi32.lib
+LFLAGS = /nologo $(LOPTS)
+
+all:: Makefile copysrc midl $(OUTPRE)ccapi.dll finish
+
+ccs_request.h ccs_request_c.c ccs_request_s.c : ccs_request.idl ccs_request.acf
+    midl $(MIDL_OPTIMIZATION) $(MIDLI) -oldnames -cpp_cmd $(CC) -cpp_opt "-E" \
+    ccs_request.idl
+
+ccs_reply.h   ccs_reply_c.c   ccs_reply_s.c   : ccs_reply.idl   ccs_reply.acf
+    midl $(MIDL_OPTIMIZATION) $(MIDLI) -oldnames -cpp_cmd $(CC) -cpp_opt "-E" \
+    ccs_reply.idl
+
+copysrc :
+    echo "Copying all sources needed to build ccapi.dll to $(SRCTMP)"
+    if NOT exist $(SRCTMP)\nul mkdir $(SRCTMP)
+    xcopy /D/Y   $(CO)\*.*     $(SRCTMP)
+    xcopy /D/Y   $(COWIN)\*.*  $(SRCTMP)
+    xcopy /D/Y   $(CCUTIL)\*.* $(SRCTMP)
+    xcopy /D/Y   $(LIBDIR)\*.* $(SRCTMP)
+    xcopy /D/Y   $(LIBWIN)\*.* $(SRCTMP)
+    xcopy /D/Y   $(OLDCC)\*.*  $(SRCTMP)
+    cd $(SRCTMP)
+    if NOT exist $(OUTPRE)\nul mkdir $(OUTPRE)
+
+midl : ccs_request.h ccs_reply.h
+
+# Main program:
+$(OUTPRE)ccapi.dll: $(OBJS) ccapi.def
+       $(LINK) $(LFLAGS) -entry:_DllMainCRTStartup@12 -dll /map:$*.map /out:$@ /DEF:ccapi.def $(OBJS) \
+           /implib:ccapi.lib $(dllflags) $(LIBS) $(KFWLIB) $(SCLIB) rpcrt4.lib $(conlibsdll) $(conflags)
+
+ccapi.def:
+    echo ;ccapi.def is generated by a Makefile rule. > ccapi.def
+    echo HEAPSIZE      8192  >> ccapi.def
+    echo EXPORTS          >> ccapi.def
+    type ccapi.exports    >> ccapi.def
+    type ccapi_v2.exports >> ccapi.def
+    type debug.exports    >> ccapi.def
+
+finish:
+    echo "Finished in ccapi/lib/win."
+    cd ..
+
+install::
+    echo "Doing nothing for make install"
+
+clean::
+       if exist $(OUTPRE)*.exe del $(OUTPRE)*.exe
+       if exist $(OUTPRE)*.obj del $(OUTPRE)*.obj
+       if exist $(OUTPRE)*.res del $(OUTPRE)*.res
+       if exist $(OUTPRE)*.map del $(OUTPRE)*.map
+       if exist $(OUTPRE)*.pdb del $(OUTPRE)*.pdb
+       if exist *.err del *.err
+    if exist $(SRCTMP) rmdir /s /q $(SRCTMP)