|
|
1.1 root 1: #*************************************************************#
2: #** **#
3: #** Microsoft RPC Examples **#
4: #** doctor Application **#
5: #** Copyright(c) Microsoft Corp. 1992 **#
6: #** **#
7: #*************************************************************#
8:
9: !include <ntwin32.mak>
10:
11: !if "$(CPU)" == "i386"
12: cvtomf =
13: WARN = -W1
14: !endif
15: !if "$(CPU)" == "MIPS"
16: WARN =
17: cvtomf = mip2coff $@
18: !endif
19:
20: .c.obj:
21: $(cc) $(cflags) $(cvars) $(DEBUG) $<
22: $(cvtomf)
23:
24: all : doctorc doctors
25:
26: # Make the doctor client executable
27: doctorc : doctorc.exe
28: doctorc.exe : doctorc.obj doctor_c.obj doctor_x.obj
29: $(link) $(conflags) -out:doctorc.exe \
30: doctorc.obj doctor_c.obj doctor_x.obj \
31: $(LIB)\rpcrt4.lib $(LIB)\rpcndr.lib $(conlibs)
32:
33: # client main program
34: doctorc.obj : doctorc.c doctor.h
35:
36: # client stub
37: doctor_c.obj : doctor_c.c doctor.h
38: $(cc) $(cflags) $(cvars) $(WARN) $(DEBUG) doctor_c.c
39: $(cvtomf)
40:
41: # client auxiliary file
42: doctor_x.obj : doctor_x.c doctor.h
43: $(cc) $(cflags) $(cvars) $(WARN) $(DEBUG) doctor_x.c
44: $(cvtomf)
45:
46: # Make the doctor server executable
47: doctors : doctors.exe
48: doctors.exe : doctors.obj doctorp.obj doctor_s.obj doctor_y.obj
49: $(link) $(conflags) -out:doctors.exe \
50: doctors.obj doctor_s.obj doctorp.obj doctor_y.obj \
51: $(LIB)\rpcrt4.lib $(LIB)\rpcndr.lib $(conlibs)
52:
53: # server main loop
54: doctors.obj : doctors.c doctor.h
55:
56: # remote procedures
57: doctorp.obj : doctorp.c doctor.h
58:
59: # server stub file
60: doctor_s.obj : doctor_s.c doctor.h
61: $(cc) $(cflags) $(cvars) $(WARN) $(DEBUG) doctor_s.c
62: $(cvtomf)
63:
64: # server auxiliary file
65: doctor_y.obj : doctor_y.c doctor.h
66: $(cc) $(cflags) $(cvars) $(WARN) $(DEBUG) doctor_y.c
67: $(cvtomf)
68:
69: # Stubs, auxiliary and header file from the IDL file
70: doctor.h doctor_c.c doctor_x.c doctor_s.c doctor_y.c : doctor.idl doctor.acf
71: midl -cpp_cmd $(cc) -cpp_opt "-E" doctor.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 doctor_c.c
82: -del doctor_x.c
83: -del doctor_s.c
84: -del doctor_y.c
85: -del doctor.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.