|
|
1.1 root 1: #*************************************************************#
2: #** **#
3: #** Microsoft RPC Examples **#
4: #** xmit 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) /Fc $<
22: $(cvtomf)
23:
24: .obj.exe:
25: $(link) $(conflags) -out:$(@R).exe $(@R).obj $(conlibs)
26:
27: all : xmitc xmits
28:
29: # Make the client
30: xmitc : xmitc.exe
31: xmitc.exe : xmitc.obj xmit_c.obj xmit_x.obj
32: $(link) $(conflags) -out:xmitc.exe -map:xmitc.map \
33: xmitc.obj xmit_c.obj xmit_x.obj \
34: $(LIB)\rpcrt4.lib $(LIB)\rpcndr.lib $(conlibs)
35:
36: # xmit client main program
37: xmitc.obj : xmitc.c xmit.h
38:
39: # xmit client stub
40: xmit_c.obj : xmit_c.c xmit.h
41: $(cc) $(cflags) $(cvars) $(WARN) xmit_c.c
42: $(cvtomf)
43:
44: # xmit client auxiliary file
45: xmit_x.obj : xmit_x.c xmit.h
46: $(cc) $(cflags) $(cvars) $(WARN) xmit_x.c
47: $(cvtomf)
48:
49: # Make the server executable
50: xmits : xmits.exe
51: xmits.exe : xmits.obj xmitp.obj xmit_s.obj xmit_y.obj
52: $(link) $(conflags) -out:xmits.exe -map:xmits.map \
53: xmits.obj xmit_s.obj xmitp.obj xmit_y.obj \
54: $(LIB)\rpcrt4.lib $(LIB)\rpcndr.lib $(conlibs)
55:
56: # xmit server main
57: xmits.obj : xmits.c xmit.h
58:
59: # remote procedures
60: xmitp.obj : xmitp.c xmit.h
61: $(cc) $(cflags) $(cvars) $(WARN) xmitp.c
62: $(cvtomf)
63:
64: # xmit server stub file
65: xmit_s.obj : xmit_s.c xmit.h
66: $(cc) $(cflags) $(cvars) $(WARN) xmit_s.c
67: $(cvtomf)
68:
69: # xmit server auxiliary file
70: xmit_y.obj : xmit_y.c xmit.h
71: $(cc) $(cflags) $(cvars) $(WARN) xmit_y.c
72: $(cvtomf)
73:
74: # Stubs, auxiliary and header file from the IDL file
75: xmit.h xmit_c.c xmit_x.c xmit_s.c xmit_y.c : xmit.idl xmit.acf
76: midl -cpp_cmd $(cc) -cpp_opt "-E" xmit.idl
77:
78: # Clean up everything
79: cleanall : clean
80: -del *.exe
81:
82: # Clean up everything but the .EXEs
83: clean :
84: -del *.obj
85: -del *.map
86: -del xmit_c.c
87: -del xmit_x.c
88: -del xmit_s.c
89: -del xmit_y.c
90: -del xmit.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.