--- mstools/samples/rpc/whello/makefile 2018/08/09 18:20:56 1.1 +++ mstools/samples/rpc/whello/makefile 2018/08/09 18:22:01 1.1.1.2 @@ -13,6 +13,8 @@ all: whellos whelloc !if "$(CPU)" == "i386" cvtomf = WARN = -W1 +# workaround for Windows NT 10/92 beta +cflags = $(cflags:G3=Gz) !endif !if "$(CPU)" == "MIPS" @@ -25,10 +27,9 @@ WARN = $(cvtomf) # Update the resource if necessary -whello.res: whello.rc whello.h rpc.ico whello.dlg - rc -r -fo whello.tmp whello.rc - cvtres -$(CPU) whello.tmp -o whello.res - del whello.tmp +whello.rbj: whello.rc whello.h rpc.ico whello.dlg + rc -r whello.rc + cvtres -$(CPU) whello.res -o whello.rbj # Update the object file if necessary whelloc.obj: whelloc.c whelloc.h whello.h @@ -36,10 +37,10 @@ whelloc.obj: whelloc.c whelloc.h whello. # Update the executable file if necessary, and if so, add the resource back in. whelloc : whelloc.exe -whelloc.exe : whelloc.obj whello.def whello_c.obj whello_x.obj whello.res +whelloc.exe : whelloc.obj whello.def whello_c.obj whello_x.obj whello.rbj $(link) $(guiflags) -out:whelloc.exe -map:whelloc.map \ - whelloc.obj whello_c.obj whello_x.obj whello.res \ - $(LIB)\rpcrt4.lib $(LIB)\rpcndr.lib $(guilibs) + whelloc.obj whello_c.obj whello_x.obj whello.rbj \ + rpcrt4.lib rpcndr.lib $(guilibs) whello_c.obj : whello_c.c whello.h $(cc) $(cflags) $(cvars) $(RPCFLAG) $(WARN) whello_c.c @@ -54,7 +55,7 @@ whellos : whellos.exe whellos.exe : whellos.obj whellop.obj whello_s.obj whello_y.obj $(link) $(conflags) -out:whellos.exe -map:whellos.map \ whellos.obj whellop.obj whello_s.obj whello_y.obj \ - $(LIB)\rpcrt4.lib $(LIB)\rpcndr.lib $(conlibs) + rpcrt4.lib rpcndr.lib $(conlibs) whellos.obj : whellos.c whello.h @@ -80,7 +81,8 @@ cleanall : clean clean : -del *.obj -del *.map - -del *.res + -del whello.res + -del whello.rbj -del whello_c.c -del whello_x.c -del whello_s.c