|
|
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
1.1.1.2 ! root 16: # workaround for Windows NT 10/92 beta
! 17: cflags = $(cflags:G3=Gz)
1.1 root 18: !endif
19:
20: !if "$(CPU)" == "MIPS"
21: cvtomf = mip2coff $@
22: WARN =
23: !endif
24:
25: .c.obj:
26: $(cc) $(cflags) $(cvars) $(RPCFLAG) $<
27: $(cvtomf)
28:
29: # Update the resource if necessary
1.1.1.2 ! root 30: whello.rbj: whello.rc whello.h rpc.ico whello.dlg
! 31: rc -r whello.rc
! 32: cvtres -$(CPU) whello.res -o whello.rbj
1.1 root 33:
34: # Update the object file if necessary
35: whelloc.obj: whelloc.c whelloc.h whello.h
36:
37: # Update the executable file if necessary, and if so, add the resource back in.
38: whelloc : whelloc.exe
39:
1.1.1.2 ! root 40: whelloc.exe : whelloc.obj whello.def whello_c.obj whello_x.obj whello.rbj
1.1 root 41: $(link) $(guiflags) -out:whelloc.exe -map:whelloc.map \
1.1.1.2 ! root 42: whelloc.obj whello_c.obj whello_x.obj whello.rbj \
! 43: rpcrt4.lib rpcndr.lib $(guilibs)
1.1 root 44:
45: whello_c.obj : whello_c.c whello.h
46: $(cc) $(cflags) $(cvars) $(RPCFLAG) $(WARN) whello_c.c
47: $(cvtomf)
48:
49: whello_x.obj : whello_x.c whello.h
50: $(cc) $(cflags) $(cvars) $(RPCFLAG) $(WARN) whello_x.c
51: $(cvtomf)
52:
53: # Make the whellos
54: whellos : whellos.exe
55: whellos.exe : whellos.obj whellop.obj whello_s.obj whello_y.obj
56: $(link) $(conflags) -out:whellos.exe -map:whellos.map \
57: whellos.obj whellop.obj whello_s.obj whello_y.obj \
1.1.1.2 ! root 58: rpcrt4.lib rpcndr.lib $(conlibs)
1.1 root 59:
60: whellos.obj : whellos.c whello.h
61:
62: whellop.obj : whellop.c whello.h
63:
64: whello_s.obj : whello_s.c whello.h
65: $(cc) $(cflags) $(cvars) $(RPCFLAG) $(WARN) whello_s.c
66: $(cvtomf)
67:
68: whello_y.obj : whello_y.c whello.h
69: $(cc) $(cflags) $(cvars) $(RPCFLAG) $(WARN) whello_y.c
70: $(cvtomf)
71:
72: # Make the stubs source
73: whello.h whello_c.c whello_x.c whello_s.c whello_y.c : whello.idl whello.acf
74: midl -cpp_cmd $(cc) -cpp_opt "-E" whello.idl
75:
76: # Clean up everything
77: cleanall : clean
78: -del *.exe
79:
80: # Clean up everything but the .EXEs
81: clean :
82: -del *.obj
83: -del *.map
1.1.1.2 ! root 84: -del whello.res
! 85: -del whello.rbj
1.1 root 86: -del whello_c.c
87: -del whello_x.c
88: -del whello_s.c
89: -del whello_y.c
90: -del whello.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.