|
|
1.1 root 1: #*************************************************************#
2: #** **#
3: #** Microsoft RPC Examples **#
4: #** whello Application **#
5: #** Copyright(c) Microsoft Corp. 1991 **#
6: #** **#
7: #*************************************************************#
8:
9: !include <ntwin32.mak>
10:
11: all: whellos whelloc
12:
13: !if "$(CPU)" == "i386"
14: cvtomf =
15: WARN = -W1
16: !endif
17:
18: !if "$(CPU)" == "MIPS"
19: cvtomf = mip2coff $@
20: WARN =
21: !endif
22:
23: .c.obj:
24: $(cc) $(cflags) $(cvars) $(RPCFLAG) $<
25: $(cvtomf)
26:
27: # Update the resource if necessary
28: whello.res: whello.rc whello.h rpc.ico whello.dlg
29: rc -r -fo whello.tmp whello.rc
30: cvtres -$(CPU) whello.tmp -o whello.res
31: del whello.tmp
32:
33: # Update the object file if necessary
34: whelloc.obj: whelloc.c whelloc.h whello.h
35:
36: # Update the executable file if necessary, and if so, add the resource back in.
37: whelloc : whelloc.exe
38:
39: whelloc.exe : whelloc.obj whello.def whello_c.obj whello_x.obj whello.res
40: $(link) $(guiflags) -out:whelloc.exe -map:whelloc.map \
41: whelloc.obj whello_c.obj whello_x.obj whello.res \
42: $(LIB)\rpcrt4.lib $(LIB)\rpcndr.lib $(guilibs)
43:
44: whello_c.obj : whello_c.c whello.h
45: $(cc) $(cflags) $(cvars) $(RPCFLAG) $(WARN) whello_c.c
46: $(cvtomf)
47:
48: whello_x.obj : whello_x.c whello.h
49: $(cc) $(cflags) $(cvars) $(RPCFLAG) $(WARN) whello_x.c
50: $(cvtomf)
51:
52: # Make the whellos
53: whellos : whellos.exe
54: whellos.exe : whellos.obj whellop.obj whello_s.obj whello_y.obj
55: $(link) $(conflags) -out:whellos.exe -map:whellos.map \
56: whellos.obj whellop.obj whello_s.obj whello_y.obj \
57: $(LIB)\rpcrt4.lib $(LIB)\rpcndr.lib $(conlibs)
58:
59: whellos.obj : whellos.c whello.h
60:
61: whellop.obj : whellop.c whello.h
62:
63: whello_s.obj : whello_s.c whello.h
64: $(cc) $(cflags) $(cvars) $(RPCFLAG) $(WARN) whello_s.c
65: $(cvtomf)
66:
67: whello_y.obj : whello_y.c whello.h
68: $(cc) $(cflags) $(cvars) $(RPCFLAG) $(WARN) whello_y.c
69: $(cvtomf)
70:
71: # Make the stubs source
72: whello.h whello_c.c whello_x.c whello_s.c whello_y.c : whello.idl whello.acf
73: midl -cpp_cmd $(cc) -cpp_opt "-E" whello.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 *.res
84: -del whello_c.c
85: -del whello_x.c
86: -del whello_s.c
87: -del whello_y.c
88: -del whello.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.