|
|
1.1 ! root 1: #*************************************************************# ! 2: #** **# ! 3: #** Microsoft RPC Examples **# ! 4: #** inout Application **# ! 5: #** Copyright(c) Microsoft Corp. 1992 **# ! 6: #** **# ! 7: #*************************************************************# ! 8: ! 9: !include <ntwin32.mak> ! 10: ! 11: !if "$(CPU)" == "i386" ! 12: WARN = -W0 ! 13: cvtomf = ! 14: !endif ! 15: !if "$(CPU)" == "MIPS" ! 16: WARN = ! 17: cvtomf = mip2coff $@ ! 18: !endif ! 19: ! 20: .c.obj: ! 21: $(cc) $(cflags) $(cvars) $< ! 22: $(cvtomf) ! 23: ! 24: .obj.exe: ! 25: $(link) $(conflags) -out:$(@R).exe $(@R).obj $(conlibs) ! 26: ! 27: all : inoutc inouts ! 28: ! 29: # Make the inout client ! 30: inoutc : inoutc.exe ! 31: inoutc.exe : inoutc.obj inout_c.obj inout_x.obj ! 32: $(link) $(conflags) -out:inoutc.exe \ ! 33: inoutc.obj inout_c.obj inout_x.obj \ ! 34: $(LIB)\rpcrt4.lib $(LIB)\rpcndr.lib $(conlibs) ! 35: ! 36: # inout client main program ! 37: inoutc.obj : inoutc.c inout.h ! 38: ! 39: # inout client stub ! 40: inout_c.obj : inout_c.c inout.h ! 41: $(cc) $(cflags) $(cvars) $(WARN) inout_c.c ! 42: $(cvtomf) ! 43: ! 44: # inout client auxiliary file ! 45: inout_x.obj : inout_x.c inout.h ! 46: $(cc) $(cflags) $(cvars) $(WARN) inout_x.c ! 47: $(cvtomf) ! 48: ! 49: # Make the inout server ! 50: inouts : inouts.exe ! 51: inouts.exe : inouts.obj inoutp.obj inout_s.obj inout_y.obj ! 52: $(link) $(conflags) -out:inouts.exe \ ! 53: inouts.obj inout_s.obj inoutp.obj inout_y.obj \ ! 54: $(LIB)\rpcrt4.lib $(LIB)\rpcndr.lib $(conlibs) ! 55: ! 56: # inout server main loop ! 57: inouts.obj : inouts.c inout.h ! 58: ! 59: # remote procedures ! 60: inoutp.obj : inoutp.c inout.h ! 61: ! 62: # inout server stub file ! 63: inout_s.obj : inout_s.c inout.h ! 64: $(cc) $(cflags) $(cvars) $(WARN) inout_s.c ! 65: $(cvtomf) ! 66: ! 67: # inout server auxiliary file ! 68: inout_y.obj : inout_y.c inout.h ! 69: $(cc) $(cflags) $(cvars) $(WARN) inout_y.c ! 70: $(cvtomf) ! 71: ! 72: # Stubs, auxiliary and header file from the IDL file ! 73: inout.h inout_c.c inout_x.c inout_s.c inout_y.c : inout.idl inout.acf ! 74: midl -cpp_cmd $(cc) -cpp_opt "-E" inout.idl ! 75: ! 76: # Clean up everything ! 77: cleanall : clean ! 78: -del *.exe ! 79: ! 80: # Clean up everything but the .EXEs ! 81: clean : ! 82: -del *.obj ! 83: -del *.map ! 84: -del inout_c.c ! 85: -del inout_x.c ! 86: -del inout_s.c ! 87: -del inout_y.c ! 88: -del inout.h ! 89:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.