|
|
1.1 root 1: #*************************************************************#
2: #** **#
3: #** Microsoft RPC Examples **#
4: #** dunion Application **#
5: #** Copyright(c) Microsoft Corp. 1992 **#
6: #** **#
7: #*************************************************************#
8:
9: !include <ntwin32.mak>
10:
11: !if "$(CPU)" == "i386"
12: WARN = -W1
1.1.1.2 ! root 13: cvtomf =
! 14: # workaround for Windows NT 10/92 beta
! 15: cflags = $(cflags:G3=Gz)
1.1 root 16: !endif
17: !if "$(CPU)" == "MIPS"
18: cvtomf = mip2coff $@
19: WARN =
20: !endif
21:
22: .c.obj:
23: $(cc) $(cflags) $(cvars) $<
24: $(cvtomf)
25:
26: .obj.exe:
27: $(link) $(conflags) -out:$(@R).exe $(@R).obj $(conlibs)
28:
29: all : dunionc dunions
30:
31: # Make the dunionc
32: dunionc : dunionc.exe
33: dunionc.exe : dunionc.obj dunion_c.obj dunion_x.obj
34: $(link) $(conflags) -out:dunionc.exe \
35: dunionc.obj dunion_c.obj dunion_x.obj \
1.1.1.2 ! root 36: rpcrt4.lib rpcndr.lib $(conlibs)
1.1 root 37:
38: # dunionc main program
39: dunionc.obj : dunionc.c dunion.h
40:
41: # dunionc stub
42: dunion_c.obj : dunion_c.c dunion.h
43: $(cc) $(cflags) $(cvars) $(WARN) dunion_c.c
44: $(cvtomf)
45:
46: # dunionc auxiliary file
47: dunion_x.obj : dunion_x.c dunion.h
48: $(cc) $(cflags) $(cvars) $(WARN) dunion_x.c
49: $(cvtomf)
50:
51: # Make the dunions
52: dunions : dunions.exe
53: dunions.exe : dunions.obj dunionp.obj dunion_s.obj dunion_y.obj
54: $(link) $(conflags) -out:dunions.exe \
55: dunions.obj dunion_s.obj dunionp.obj dunion_y.obj \
1.1.1.2 ! root 56: rpcrt4.lib rpcndr.lib $(conlibs)
1.1 root 57:
58: # dunions main loop
59: dunions.obj : dunions.c dunion.h
60:
61: # remote procedures
62: dunionp.obj : dunionp.c dunion.h
63:
64: # dunions stub file
65: dunion_s.obj : dunion_s.c dunion.h
66: $(cc) $(cflags) $(cvars) $(WARN) dunion_s.c
67: $(cvtomf)
68:
69: # dunions auxiliary file
70: dunion_y.obj : dunion_y.c dunion.h
71: $(cc) $(cflags) $(cvars) $(WARN) dunion_y.c
72: $(cvtomf)
73:
74: # Stubs, auxiliary and header file from the IDL file
75: dunion.h dunion_c.c dunion_x.c dunion_s.c dunion_y.c : dunion.idl dunion.acf
76: midl -cpp_cmd $(cc) -cpp_opt "-E" dunion.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 dunion_c.c
87: -del dunion_x.c
88: -del dunion_s.c
89: -del dunion_y.c
90: -del dunion.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.