|
|
1.1 root 1: #*************************************************************#
2: #** **#
3: #** Microsoft RPC Examples **#
4: #** hello1 Application **#
5: #** Copyright(c) Microsoft Corp. 1991 **#
6: #** **#
7: #*************************************************************#
8:
9: !include <ntwin32.mak>
10:
11: !if "$(CPU)" == "i386"
12: CONVERTOBJECTCMD = $(cvtobj) $@
13: WARN = -W1
14: !endif
15: !if "$(CPU)" == "MIPS"
16: CONVERTOBJECTCMD = $(cvtobj)
17: WARN =
18: !endif
19:
20: .c.obj:
21: $(cc) $(cflags) $(cvars) $<
22: $(CONVERTOBJECTCMD)
23:
24: all : client server
25:
26: # Make the client
27: client : client.exe
28: client.exe : client.obj hello1_c.obj hello1_x.obj
29: $(link) $(conflags) -out:client.exe \
30: client.obj hello1_c.obj hello1_x.obj \
31: $(conlibs) $(LIB)\winrpc.lib $(LIB)\ndrlib.lib
32:
33: # client main program
34: client.obj : client.c hello1.h
35:
36: # client stub
37: hello1_c.obj : hello1_c.c hello1.h
38: $(cc) $(cflags) $(cvars) $(WARN) hello1_c.c
39: $(CONVERTOBJECTCMD)
40:
41: # client auxiliary file
42: hello1_x.obj : hello1_x.c hello1.h
43: $(cc) $(cflags) $(cvars) $(WARN) hello1_x.c
44: $(CONVERTOBJECTCMD)
45:
46: # Make the server
47: server : server.exe
48: server.exe : server.obj procs.obj hello1_s.obj hello1_y.obj
49: $(link) $(conflags) -out:server.exe \
50: server.obj hello1_s.obj procs.obj hello1_y.obj \
51: $(conlibs) $(LIB)\winrpc.lib $(LIB)\ndrlib.lib
52:
53: # server main loop
54: server.obj : server.c hello1.h
55:
56: # remote procedures
57: procs.obj : procs.c hello1.h
58:
59: # server stub file
60: hello1_s.obj : hello1_s.c hello1.h
61: $(cc) $(cflags) $(cvars) $(WARN) hello1_s.c
62: $(CONVERTOBJECTCMD)
63:
64: # server auxiliary file
65: hello1_y.obj : hello1_y.c hello1.h
66: $(cc) $(cflags) $(cvars) $(WARN) hello1_y.c
67: $(CONVERTOBJECTCMD)
68:
69: # Stubs, auxiliary and header file from the IDL file
70: hello1.h hello1_c.c hello1_x.c hello1_s.c hello1_y.c : hello1.idl
71: midl -cpp_cmd $(cc) -cpp_opt "-E" hello1.idl
72:
73: # Clean up everything
74: cleanall : clean
75: -del *.exe
76:
77: # Clean up everything but the .EXEs
78: clean :
79: -del *.obj
80: -del *.map
81: -del hello1_c.c
82: -del hello1_x.c
83: -del hello1_s.c
84: -del hello1_y.c
85: -del hello1.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.