--- mstools/samples/rpc/mandel/makefile 2018/08/09 18:20:55 1.1.1.2 +++ mstools/samples/rpc/mandel/makefile 2018/08/09 18:24:14 1.1.1.4 @@ -1,7 +1,7 @@ #*************************************************************# #** **# #** Microsoft RPC Examples **# -#** Mandelbrot RPC Application **# +#** Mandelbrot RPC Application **# #** Copyright(c) Microsoft Corp. 1991 **# #** **# #*************************************************************# @@ -24,19 +24,8 @@ RPCFLAG = RPCFLAG = -DRPC !endif -# Establish the inference rules. -# Use lower warning levels for the RPC version on MIPS; -# remove -std switch from compiler switches -# Use different command line input for object conversion. - -cvtomf = -!if "$(CPU)" == "MIPS" -cvtomf = mip2coff $@ -!endif - .c.obj: - $(cc) $(cflags) $(cvars) $(RPCFLAG) $< - $(cvtomf) + $(cc) $(cdebug) $(cflags) $(cvars) $(RPCFLAG) $< # Targets # The RPC version produces client and server executables. @@ -48,26 +37,24 @@ all: client.exe server.exe all: mandel.exe !endif -mandel.exe: mandel.obj remote.obj mandel.def mandel.res calc.obj - $(link) $(guiflags) -out:mandel.exe -map:mandel.map \ - mandel.obj remote.obj calc.obj mandel.res $(guilibs) - -client.exe: mandel.obj remote.obj mandel.def mandel.res \ - mdlrpc_c.obj mdlrpc_x.obj - $(link) $(guiflags) -out:client.exe -map:client.map \ +mandel.exe: mandel.obj remote.obj mandel.def mandel.rbj calc.obj + $(link) $(linkdebug) $(guiflags) -out:mandel.exe -map:mandel.map \ + mandel.obj remote.obj calc.obj mandel.rbj $(guilibs) + +client.exe: mandel.obj remote.obj mandel.def mandel.rbj mdlrpc_c.obj mdlrpc_x.obj + $(link) $(linkdebug) $(guiflags) -out:client.exe -map:client.map \ mandel.obj remote.obj mdlrpc_c.obj mdlrpc_x.obj \ - mandel.res $(LIB)\rpcrt4.lib $(LIB)\rpcndr.lib $(guilibs) + mandel.rbj rpcrt4.lib $(guilibs) server.exe: server.obj calc.obj mdlrpc_s.obj mdlrpc_y.obj - $(link) $(conflags) -out:server.exe -map:server.map \ + $(link) $(linkdebug) $(conflags) -out:server.exe -map:server.map \ server.obj calc.obj mdlrpc_s.obj mdlrpc_y.obj \ - $(LIB)\rpcrt4.lib $(LIB)\rpcndr.lib $(conlibs) + rpcrt4.lib $(conlibs) # Update the resource if necessary -mandel.res: mandel.rc mandel.h - rc -r -fo res.tmp mandel.rc - cvtres -$(CPU) res.tmp -o mandel.res - del res.tmp +mandel.rbj: mandel.rc mandel.h + rc -r mandel.rc + cvtres -$(CPU) mandel.res -o mandel.rbj # Object file dependencies @@ -82,36 +69,20 @@ calc.obj : calc.c mandel.h mdlrpc.h !else mandel.obj: mandel.c mandel.h remote.obj: remote.c mandel.h -calc.obj: calc.c mandel.h +calc.obj : calc.c mandel.h !endif # client stub mdlrpc_c.obj : mdlrpc_c.c mdlrpc.h -# use lower warning levels for the stub source code; add -W1 -!if "$(CPU)"=="i386" - $(cc) $(cflags) $(cvars) -W1 mdlrpc_c.c -!endif # client auxiliary file mdlrpc_x.obj : mdlrpc_x.c mdlrpc.h -# use lower warning levels for the stub source code; add -W1 -!if "$(CPU)"=="i386" - $(cc) $(cflags) $(cvars) -W1 mdlrpc_x.c -!endif # server stub file mdlrpc_s.obj : mdlrpc_s.c mdlrpc.h -# use lower warning levels for the stub source code; add -W1 -!if "$(CPU)"=="i386" - $(cc) $(cflags) -W1 $(cvars) mdlrpc_s.c -!endif # server auxiliary file mdlrpc_y.obj : mdlrpc_y.c mdlrpc.h -# use lower warning levels for the stub source code; add -W1 -!if "$(CPU)"=="i386" - $(cc) $(cflags) $(cvars) -W1 mdlrpc_y.c -!endif # Stubs, auxiliary and header file from the IDL file mdlrpc.h mdlrpc_c.c mdlrpc_x.c mdlrpc_s.c mdlrpc_y.c: mdlrpc.idl mdlrpc.acf @@ -123,11 +94,9 @@ clean: -del mandel.exe cleanall: clean - -del *.o - -del *.oo - -del *.res - -del *.map -del *.obj - -del mdlrpc.h - -del mdlrpc_*.obj + -del *.map + -del *.res + -del *.rbj -del mdlrpc_*.c + -del mdlrpc.h