Added USES_PVM.
[dyninst.git] / igen / tests / Makefile
1
2 USES_PVM = true
3
4 include ../../make.config
5
6 .SUFFIXES: .c .I .C .o
7
8 C_OBJS3 = test3.o client3.o test3.CLNT.o 
9 S_OBJS3 = test3.o server3.o test3.SRVR.o 
10 OBJS4   = test4.o client4.o server4.o 
11 C_OBJSPVM       = testPVM.o clientPVM.o testPVM.CLNT.o 
12 S_OBJSPVM       = testPVM.o serverPVM.o testPVM.SRVR.o 
13 S_OBJSXDR       = xdr_link.o server_xdr.o xdr_link.SRVR.o
14 XDRC_PVM        = xdr_link.o xdrc_pvm.o xdr_link.CLNT.o 
15 C_OBJS1 = test1.o client1.o test1.CLNT.o 
16 S_OBJS1 = test1.o server1.o test1.SRVR.o 
17 OBJS2   = test2.o client2.o server2.o 
18
19 SRCS    = client1.C \
20           client2.C \
21           client3.C \
22           client4.C \
23           server1.C \
24           server2.C \
25           server3.C \
26           server4.C \
27           clientPVM.C \
28           serverPVM.C \
29           xdrc_pvm.C \
30           server_xdr.C
31            
32 EXTRA_CFLAGS = $(CFLAGS) -I./util/h
33
34 all:  client3 server3 program4 clientPVM serverPVM xdrc_pvm server_xdr \
35       client1 server1 program2
36
37 all_igen: test1_igen test2_igen test3_igen test4_igen testPVM_igen xdr_link_igen
38
39 all_pure: client3_pure server3_pure program4_pure clientPVM_pure \
40           serverPVM_pure server_xdr_pure xdrc_pvm_pure
41
42 xdrc_pvm_pure: $(XDRC_PVM)
43         purify -g++ -collector=/usr/sup/purify/collect2 $(CC) -o xdrc_pvm \
44                  $(XDRC_PVM) $(LIBDIR) -lutil -lpvm3 
45
46 server_xdr_pure: $(S_OBJSXDR)
47         purify -g++ -collector=/usr/sup/purify/collect2 $(CC) -o server_xdr \
48                  $(S_OBJSXDR) $(LIBDIR) -lutil
49
50 client3_pure: $(C_OBJS3) 
51         purify -g++ -collector=/usr/sup/purify/collect2 $(CC) -o client3 \
52                  $(C_OBJS3) $(LIBDIR) -lutil
53
54 server3_pure: $(S_OBJS3) 
55         purify -g++ -collector=/usr/sup/purify/collect2 $(CC) -o server3  \
56                  $(S_OBJS3) $(LIBDIR) -lutil
57
58 client1_pure: $(C_OBJS3) 
59         purify -g++ -collector=/usr/sup/purify/collect2 $(CC) -o client1 \
60                  $(C_OBJS1) $(LIBDIR) -lutil
61
62 server1_pure: $(S_OBJS3) 
63         purify -g++ -collector=/usr/sup/purify/collect2 $(CC) -o server1  \
64                  $(S_OBJS1) $(LIBDIR) -lutil
65
66 program2_pure: $(OBJS4) 
67         purify -g++ -collector=/usr/sup/purify/collect2 $(CC) -o program2 \
68                   $(OBJS2) $(LIBDIR) -lthread -lutil
69
70 program4_pure: $(OBJS4) 
71         purify -g++ -collector=/usr/sup/purify/collect2 $(CC) -o program4 \
72                   $(OBJS4) $(LIBDIR) -lthread -lutil
73
74 clientPVM_pure: $(C_OBJSPVM) 
75         purify -g++ -collector=/usr/sup/purify/collect2 $(CC) -o clientPVM \
76                     $(C_OBJSPVM) $(LIBDIR) -lutil -lpvm3 
77
78 serverPVM_pure: $(S_OBJSPVM) 
79         purify -g++ -collector=/usr/sup/purify/collect2 $(CC) -o serverPVM \
80                  $(S_OBJSPVM) $(LIBDIR) -lutil -lpvm3 
81
82
83 client3: $(C_OBJS3) 
84         $(CC) $(CFLAGS) -o client3 $(C_OBJS3) $(LIBDIR) -lutil
85
86 server3: $(S_OBJS3) 
87         $(CC) $(CFLAGS) -o server3 $(S_OBJS3) $(LIBDIR) -lutil
88
89 client1: $(C_OBJS1) 
90         $(CC) $(CFLAGS) -o client1 $(C_OBJS1) $(LIBDIR) -lutil
91
92 server1: $(S_OBJS1) 
93         $(CC) $(CFLAGS) -o server1 $(S_OBJS1) $(LIBDIR) -lutil
94
95 program2: $(OBJS2) 
96         $(CC) $(CFLAGS) -o program2 $(OBJS2) $(LIBDIR) -lthread -lutil
97
98 program4: $(OBJS4) 
99         $(CC) $(CFLAGS) -o program4 $(OBJS4) $(LIBDIR) -lthread -lutil
100
101 clientPVM: $(C_OBJSPVM) 
102         $(CC) $(CFLAGS) -o clientPVM $(C_OBJSPVM) $(LIBDIR) -lutil -lpvm3 
103
104 serverPVM: $(S_OBJSPVM) 
105         $(CC) $(CFLAGS) -o serverPVM $(S_OBJSPVM) $(LIBDIR) -lutil -lpvm3 
106
107 server_xdr: $(S_OBJSXDR) 
108         $(CC) $(CFLAGS) -o server_xdr $(S_OBJSXDR) $(LIBDIR) -lutil
109
110 xdrc_pvm: $(XDRC_PVM)
111         $(CC) $(CFLAGS) -o xdrc_pvm $(XDRC_PVM) $(LIBDIR) -lutil -lpvm3 
112
113 clean: 
114         rm *.o *.CLNT.C *.SRVR.C *.h client3 server3 program4 test3.C \
115               test4.C xdrc_pvm server_xdr clientPVM serverPVM \
116               xdr_link.C  testPVM.C *pure* client1 server1 program2 \
117               test1.C test2.C
118
119 test1_igen: test1.I
120         ../$(PLATFORM)/igen -xdr $<
121
122 test2_igen: test2.I
123         ../$(PLATFORM)/igen -thread $<
124
125 test3_igen: test3.I
126         ../$(PLATFORM)/igen -xdr $<
127
128 test4_igen: test4.I
129         ../$(PLATFORM)/igen -thread $<
130
131 testPVM_igen: testPVM.I
132         ../$(PLATFORM)/igen -pvm $<
133
134 xdr_link_igen: xdr_link.I
135         ../$(PLATFORM)/igen -xdr $<
136
137 test2.C: test2.I ../$(PLATFORM)/igen
138         ../$(PLATFORM)/igen -thread $<
139
140 test1.C: test1.I ../$(PLATFORM)/igen
141         ../$(PLATFORM)/igen -xdr $<
142
143 test1.h: test1.I ../$(PLATFORM)/igen
144         ../$(PLATFORM)/igen -xdr $<
145
146 test3.C: test3.I ../$(PLATFORM)/igen
147         ../$(PLATFORM)/igen -xdr $<
148
149 test4.C: test4.I ../$(PLATFORM)/igen
150         ../$(PLATFORM)/igen -thread $<
151
152 testPVM.C: testPVM.I ../$(PLATFORM)/igen
153         ../$(PLATFORM)/igen -pvm $<
154
155 xdr_link.C: xdr_link.I ../$(PLATFORM)/igen
156         ../$(PLATFORM)/igen -xdr $<
157
158 depend: $(SRCS)
159         makedepend $(SRCS) $(CFLAGS)
160
161 # DO NOT DELETE THIS LINE -- make depend depends on it.
162
163 client1.o: /usr/include/unistd.h /usr/include/assert.h test1.h
164 client1.o: ../../util/h/rpcUtil.h /usr/include/rpc/types.h
165 client1.o: /usr/include/malloc.h /usr/include/sys/types.h
166 client1.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
167 client1.o: /usr/include/sys/time.h /usr/include/sys/time.h
168 client1.o: /usr/include/rpc/xdr.h /usr/include/sys/socket.h
169 client1.o: /usr/include/netinet/in.h /usr/include/netdb.h
170 client1.o: /usr/include/sys/file.h /usr/include/sys/fcntlcom.h
171 client1.o: /usr/include/sys/stat.h
172 client2.o: /usr/include/unistd.h /usr/include/assert.h test2.h
173 client2.o: ../../util/h/rpcUtil.h /usr/include/rpc/types.h
174 client2.o: /usr/include/malloc.h /usr/include/sys/types.h
175 client2.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
176 client2.o: /usr/include/sys/time.h /usr/include/sys/time.h
177 client2.o: /usr/include/rpc/xdr.h /usr/include/sys/socket.h
178 client2.o: /usr/include/netinet/in.h /usr/include/netdb.h
179 client2.o: /usr/include/sys/file.h /usr/include/sys/fcntlcom.h
180 client2.o: /usr/include/sys/stat.h
181 client3.o: /usr/include/rpc/xdr.h /usr/include/rpc/types.h
182 client3.o: /usr/include/malloc.h /usr/include/sys/types.h
183 client3.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
184 client3.o: /usr/include/sys/time.h /usr/include/sys/time.h
185 client3.o: /usr/include/unistd.h /usr/include/assert.h test3.CLNT.h test3.h
186 client3.o: ../../util/h/rpcUtil.h /usr/include/sys/socket.h
187 client3.o: /usr/include/netinet/in.h /usr/include/netdb.h
188 client3.o: /usr/include/sys/file.h /usr/include/sys/fcntlcom.h
189 client3.o: /usr/include/sys/stat.h /usr/include/string.h
190 client4.o: /usr/include/rpc/xdr.h /usr/include/rpc/types.h
191 client4.o: /usr/include/malloc.h /usr/include/sys/types.h
192 client4.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
193 client4.o: /usr/include/sys/time.h /usr/include/sys/time.h
194 client4.o: /usr/include/unistd.h /usr/include/assert.h test4.CLNT.h test4.h
195 client4.o: ../../util/h/rpcUtil.h /usr/include/sys/socket.h
196 client4.o: /usr/include/netinet/in.h /usr/include/netdb.h
197 client4.o: /usr/include/sys/file.h /usr/include/sys/fcntlcom.h
198 client4.o: /usr/include/sys/stat.h
199 server1.o: /usr/include/stdio.h /usr/include/stdlib.h
200 server1.o: /usr/include/sys/stdtypes.h test1.h ../../util/h/rpcUtil.h
201 server1.o: /usr/include/rpc/types.h /usr/include/malloc.h
202 server1.o: /usr/include/sys/types.h /usr/include/sys/sysmacros.h
203 server1.o: /usr/include/sys/time.h /usr/include/sys/time.h
204 server1.o: /usr/include/rpc/xdr.h /usr/include/sys/socket.h
205 server1.o: /usr/include/netinet/in.h /usr/include/netdb.h
206 server1.o: /usr/include/unistd.h /usr/include/sys/file.h
207 server1.o: /usr/include/sys/fcntlcom.h /usr/include/sys/stat.h
208 server2.o: /usr/include/stdio.h /usr/include/stdlib.h
209 server2.o: /usr/include/sys/stdtypes.h test2.h ../../util/h/rpcUtil.h
210 server2.o: /usr/include/rpc/types.h /usr/include/malloc.h
211 server2.o: /usr/include/sys/types.h /usr/include/sys/sysmacros.h
212 server2.o: /usr/include/sys/time.h /usr/include/sys/time.h
213 server2.o: /usr/include/rpc/xdr.h /usr/include/sys/socket.h
214 server2.o: /usr/include/netinet/in.h /usr/include/netdb.h
215 server2.o: /usr/include/unistd.h /usr/include/sys/file.h
216 server2.o: /usr/include/sys/fcntlcom.h /usr/include/sys/stat.h
217 server3.o: /usr/include/stdio.h /usr/include/stdlib.h
218 server3.o: /usr/include/sys/stdtypes.h test3.SRVR.h test3.h
219 server3.o: ../../util/h/rpcUtil.h /usr/include/rpc/types.h
220 server3.o: /usr/include/malloc.h /usr/include/sys/types.h
221 server3.o: /usr/include/sys/sysmacros.h /usr/include/sys/time.h
222 server3.o: /usr/include/sys/time.h /usr/include/rpc/xdr.h
223 server3.o: /usr/include/sys/socket.h /usr/include/netinet/in.h
224 server3.o: /usr/include/netdb.h /usr/include/unistd.h /usr/include/sys/file.h
225 server3.o: /usr/include/sys/fcntlcom.h /usr/include/sys/stat.h
226 server3.o: /usr/include/string.h
227 server4.o: /usr/include/stdio.h /usr/include/stdlib.h
228 server4.o: /usr/include/sys/stdtypes.h test4.SRVR.h test4.h
229 server4.o: ../../util/h/rpcUtil.h /usr/include/rpc/types.h
230 server4.o: /usr/include/malloc.h /usr/include/sys/types.h
231 server4.o: /usr/include/sys/sysmacros.h /usr/include/sys/time.h
232 server4.o: /usr/include/sys/time.h /usr/include/rpc/xdr.h
233 server4.o: /usr/include/sys/socket.h /usr/include/netinet/in.h
234 server4.o: /usr/include/netdb.h /usr/include/unistd.h /usr/include/sys/file.h
235 server4.o: /usr/include/sys/fcntlcom.h /usr/include/sys/stat.h
236 clientPVM.o: /usr/include/rpc/xdr.h /usr/include/rpc/types.h
237 clientPVM.o: /usr/include/malloc.h /usr/include/sys/types.h
238 clientPVM.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
239 clientPVM.o: /usr/include/sys/time.h /usr/include/sys/time.h
240 clientPVM.o: /usr/include/unistd.h /usr/include/assert.h testPVM.CLNT.h
241 clientPVM.o: testPVM.h ../../util/h/rpcUtil.h /usr/include/sys/socket.h
242 clientPVM.o: /usr/include/netinet/in.h /usr/include/netdb.h
243 clientPVM.o: /usr/include/sys/file.h /usr/include/sys/fcntlcom.h
244 clientPVM.o: /usr/include/sys/stat.h ../../util/h/rpcUtilPVM.h
245 clientPVM.o: /paradyn/packages/pvm3-dyn/include/pvm3.h
246 serverPVM.o: /usr/include/stdio.h /usr/include/stdlib.h
247 serverPVM.o: /usr/include/sys/stdtypes.h testPVM.SRVR.h testPVM.h
248 serverPVM.o: ../../util/h/rpcUtil.h /usr/include/rpc/types.h
249 serverPVM.o: /usr/include/malloc.h /usr/include/sys/types.h
250 serverPVM.o: /usr/include/sys/sysmacros.h /usr/include/sys/time.h
251 serverPVM.o: /usr/include/sys/time.h /usr/include/rpc/xdr.h
252 serverPVM.o: /usr/include/sys/socket.h /usr/include/netinet/in.h
253 serverPVM.o: /usr/include/netdb.h /usr/include/unistd.h
254 serverPVM.o: /usr/include/sys/file.h /usr/include/sys/fcntlcom.h
255 serverPVM.o: /usr/include/sys/stat.h ../../util/h/rpcUtilPVM.h
256 serverPVM.o: /paradyn/packages/pvm3-dyn/include/pvm3.h
257 xdrc_pvm.o: /usr/include/stdio.h xdr_link.CLNT.h xdr_link.h
258 xdrc_pvm.o: ../../util/h/rpcUtil.h /usr/include/rpc/types.h
259 xdrc_pvm.o: /usr/include/malloc.h /usr/include/sys/types.h
260 xdrc_pvm.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
261 xdrc_pvm.o: /usr/include/sys/time.h /usr/include/sys/time.h
262 xdrc_pvm.o: /usr/include/rpc/xdr.h /usr/include/sys/socket.h
263 xdrc_pvm.o: /usr/include/netinet/in.h /usr/include/netdb.h
264 xdrc_pvm.o: /usr/include/unistd.h /usr/include/sys/file.h
265 xdrc_pvm.o: /usr/include/sys/fcntlcom.h /usr/include/sys/stat.h
266 xdrc_pvm.o: ../../util/h/list.h /usr/include/stdlib.h
267 xdrc_pvm.o: /paradyn/packages/pvm3-dyn/include/pvm3.h /usr/include/string.h
268 xdrc_pvm.o: /usr/include/assert.h
269 server_xdr.o: /usr/include/stdio.h /usr/include/stdlib.h
270 server_xdr.o: /usr/include/sys/stdtypes.h xdr_link.SRVR.h xdr_link.h
271 server_xdr.o: ../../util/h/rpcUtil.h /usr/include/rpc/types.h
272 server_xdr.o: /usr/include/malloc.h /usr/include/sys/types.h
273 server_xdr.o: /usr/include/sys/sysmacros.h /usr/include/sys/time.h
274 server_xdr.o: /usr/include/sys/time.h /usr/include/rpc/xdr.h
275 server_xdr.o: /usr/include/sys/socket.h /usr/include/netinet/in.h
276 server_xdr.o: /usr/include/netdb.h /usr/include/unistd.h
277 server_xdr.o: /usr/include/sys/file.h /usr/include/sys/fcntlcom.h
278 server_xdr.o: /usr/include/sys/stat.h ../../util/h/list.h
279 server_xdr.o: /usr/include/signal.h /usr/include/sys/signal.h
280 server_xdr.o: /usr/include/vm/faultcode.h