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