Added tests of new igen features.
[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 -lutilPVM -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 -lutilPVM -lpvm3 
77
78 serverPVM_pure: $(S_OBJSPVM) 
79         purify -g++ -collector=/usr/sup/purify/collect2 $(CC) -o serverPVM \
80                  $(S_OBJSPVM) $(LIBDIR) -lutil -lutilPVM -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 -lutilPVM -lpvm3 
103
104 serverPVM: $(S_OBJSPVM) 
105         $(CC) $(CFLAGS) -o serverPVM $(S_OBJSPVM) $(LIBDIR) -lutil -lutilPVM -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 -lutilPVM -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
164 client2.o: /usr/include/unistd.h /usr/include/assert.h
165 client3.o: /usr/include/rpc/xdr.h /usr/include/rpc/types.h
166 client3.o: /usr/include/malloc.h /usr/include/sys/types.h
167 client3.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
168 client3.o: /usr/include/sys/time.h /usr/include/sys/time.h
169 client3.o: /usr/include/unistd.h /usr/include/assert.h /usr/include/string.h
170 client4.o: /usr/include/rpc/xdr.h /usr/include/rpc/types.h
171 client4.o: /usr/include/malloc.h /usr/include/sys/types.h
172 client4.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
173 client4.o: /usr/include/sys/time.h /usr/include/sys/time.h
174 client4.o: /usr/include/unistd.h /usr/include/assert.h
175 server1.o: /usr/include/stdio.h /usr/include/stdlib.h
176 server1.o: /usr/include/sys/stdtypes.h
177 server2.o: /usr/include/stdio.h /usr/include/stdlib.h
178 server2.o: /usr/include/sys/stdtypes.h
179 server3.o: /usr/include/stdio.h /usr/include/stdlib.h
180 server3.o: /usr/include/sys/stdtypes.h /usr/include/string.h
181 server4.o: /usr/include/stdio.h /usr/include/stdlib.h
182 server4.o: /usr/include/sys/stdtypes.h
183 clientPVM.o: /usr/include/rpc/xdr.h /usr/include/rpc/types.h
184 clientPVM.o: /usr/include/malloc.h /usr/include/sys/types.h
185 clientPVM.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
186 clientPVM.o: /usr/include/sys/time.h /usr/include/sys/time.h
187 clientPVM.o: /usr/include/unistd.h /usr/include/assert.h
188 serverPVM.o: /usr/include/stdio.h /usr/include/stdlib.h
189 serverPVM.o: /usr/include/sys/stdtypes.h
190 xdrc_pvm.o: /usr/include/stdio.h ../../util/h/list.h /usr/include/stdlib.h
191 xdrc_pvm.o: /usr/include/sys/stdtypes.h
192 xdrc_pvm.o: /paradyn/packages/pvm3-dyn/include/pvm3.h /usr/include/string.h
193 xdrc_pvm.o: /usr/include/assert.h
194 server_xdr.o: /usr/include/stdio.h /usr/include/stdlib.h
195 server_xdr.o: /usr/include/sys/stdtypes.h ../../util/h/list.h
196 server_xdr.o: /usr/include/signal.h /usr/include/sys/signal.h
197 server_xdr.o: /usr/include/vm/faultcode.h