|
|
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 =
1.1.1.2 ! root 14: # workaround for Windows NT 10/92 beta
! 15: cflags = $(cflags:G3=Gz)
1.1 root 16: !endif
17: !if "$(CPU)" == "MIPS"
18: WARN =
19: cvtomf = mip2coff $@
20: !endif
21:
22: .c.obj:
23: $(cc) $(cflags) $(cvars) $<
24: $(cvtomf)
25:
26: all : usrdefc usrdefs
27:
28: # Make the usrdefc
29: usrdefc : usrdefc.exe
30: usrdefc.exe : usrdefc.obj usrdef_c.obj usrdef_x.obj
31: $(link) $(conflags) -out:usrdefc.exe \
32: usrdefc.obj usrdef_c.obj usrdef_x.obj \
1.1.1.2 ! root 33: rpcrt4.lib rpcndr.lib rpcns4.lib $(conlibs)
1.1 root 34:
35: # usrdefc main program
36: usrdefc.obj : usrdefc.c usrdef.h
37:
38: # usrdefc stub
39: usrdef_c.obj : usrdef_c.c usrdef.h
40: $(cc) $(cflags) $(cvars) $(WARN) usrdef_c.c
41: $(cvtomf)
42:
43: # usrdefc auxiliary file
44: usrdef_x.obj : usrdef_x.c usrdef.h
45: $(cc) $(cflags) $(cvars) $(WARN) usrdef_x.c
46: $(cvtomf)
47:
48: # Make the usrdefs
49: usrdefs : usrdefs.exe
50: usrdefs.exe : usrdefs.obj usrdefp.obj usrdef_s.obj usrdef_y.obj
51: $(link) $(conflags) -out:usrdefs.exe \
52: usrdefs.obj usrdef_s.obj usrdefp.obj usrdef_y.obj \
1.1.1.2 ! root 53: rpcrt4.lib rpcndr.lib $(conlibs)
1.1 root 54:
55: # usrdefs main loop
56: usrdefs.obj : usrdefs.c usrdef.h
57:
58: # remote procedures
59: usrdefp.obj : usrdefp.c usrdef.h
60: $(cc) $(cflags) $(cvars) $(WARN) usrdefp.c
61: $(cvtomf)
62:
63: # usrdefs stub file
64: usrdef_s.obj : usrdef_s.c usrdef.h
65: $(cc) $(cflags) $(cvars) $(WARN) usrdef_s.c
66: $(cvtomf)
67:
68: # usrdefs auxiliary file
69: usrdef_y.obj : usrdef_y.c usrdef.h
70: $(cc) $(cflags) $(cvars) $(WARN) usrdef_y.c
71: $(cvtomf)
72:
73: # Stubs, auxiliary and header file from the IDL file
74: usrdef.h usrdef_c.c usrdef_x.c usrdef_s.c usrdef_y.c : usrdef.idl usrdef.acf
75: midl -cpp_cmd $(cc) -cpp_opt "-E" usrdef.idl
76:
77: # Clean up everything
78: cleanall : clean
79: -del *.exe
80:
81: # Clean up everything but the .EXEs
82: clean :
83: -del *.obj
84: -del *.map
85: -del usrdef_c.c
86: -del usrdef_x.c
87: -del usrdef_s.c
88: -del usrdef_y.c
89: -del usrdef.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.