45e3fddce1be7c462dc05ec8b8aab5c611d24d5b
[openssl.git] / test / build.info
1 {-
2      use File::Spec::Functions;
3      sub rebase_files
4      {
5          my ($base, $files) = @_;
6          return join(" ", map { "$base/$_" } split(/\s+/, $files));
7      }
8      ""
9 -}
10 IF[{- !$disabled{tests} -}]
11   LIBS_NO_INST=libtestutil.a
12   SOURCE[libtestutil.a]=testutil/basic_output.c testutil/output_helpers.c \
13           testutil/driver.c testutil/tests.c testutil/cb.c testutil/stanza.c \
14           testutil/format_output.c testutil/tap_bio.c \
15           testutil/test_cleanup.c testutil/main.c testutil/init.c
16   INCLUDE[libtestutil.a]=../include
17   DEPEND[libtestutil.a]=../libcrypto
18
19   # Special hack for descrip.mms to include the MAIN object module
20   # explicitly.  This will only be done if there isn't a MAIN in the
21   # program's object modules already.
22   BEGINRAW[descrip.mms]
23 INCLUDE_MAIN___test_libtestutil_OLB = /INCLUDE=MAIN
24   ENDRAW[descrip.mms]
25
26   PROGRAMS_NO_INST=\
27           aborttest test_test \
28           sanitytest exdatatest bntest \
29           ectest ecstresstest ecdsatest gmdifftest pbelutest ideatest \
30           sm2sigtest sm2crypttest \
31           md2test \
32           hmactest \
33           rc2test rc4test rc5test \
34           destest mdc2test \
35           dhtest enginetest casttest \
36           bftest ssltest_old dsatest exptest rsa_test \
37           evp_test evp_extra_test igetest v3nametest v3ext \
38           crltest danetest bad_dtls_test lhash_test \
39           conf_include_test \
40           constant_time_test verify_extra_test clienthellotest \
41           packettest asynctest secmemtest srptest memleaktest stack_test \
42           dtlsv1listentest ct_test threadstest afalgtest d2i_test \
43           ssl_test_ctx_test ssl_test x509aux cipherlist_test asynciotest \
44           bio_callback_test \
45           bioprinttest sslapitest dtlstest sslcorrupttest bio_enc_test \
46           pkey_meth_test pkey_meth_kdf_test uitest cipherbytes_test \
47           asn1_encode_test asn1_string_table_test \
48           x509_time_test x509_dup_cert_test x509_check_cert_pkey_test \
49           recordlentest drbgtest sslbuffertest \
50           time_offset_test pemtest ssl_cert_table_internal_test ciphername_test \
51           servername_test ocspapitest rsa_mp_test fatalerrtest tls13ccstest
52
53   SOURCE[aborttest]=aborttest.c
54   INCLUDE[aborttest]=../include
55   DEPEND[aborttest]=../libcrypto
56
57   SOURCE[sanitytest]=sanitytest.c
58   INCLUDE[sanitytest]=../include
59   DEPEND[sanitytest]=../libcrypto libtestutil.a
60
61   SOURCE[test_test]=test_test.c
62   INCLUDE[test_test]=../include
63   DEPEND[test_test]=../libcrypto libtestutil.a
64
65   SOURCE[exdatatest]=exdatatest.c
66   INCLUDE[exdatatest]=../include
67   DEPEND[exdatatest]=../libcrypto libtestutil.a
68
69   SOURCE[bntest]=bntest.c
70   INCLUDE[bntest]=../include
71   DEPEND[bntest]=../libcrypto libtestutil.a
72
73   SOURCE[ectest]=ectest.c
74   INCLUDE[ectest]=../include
75   DEPEND[ectest]=../libcrypto libtestutil.a
76
77   SOURCE[ecstresstest]=ecstresstest.c
78   INCLUDE[ecstresstest]=../include
79   DEPEND[ecstresstest]=../libcrypto libtestutil.a
80
81   SOURCE[ecdsatest]=ecdsatest.c
82   INCLUDE[ecdsatest]=../include
83   DEPEND[ecdsatest]=../libcrypto libtestutil.a
84
85   SOURCE[sm2sigtest]=sm2sigtest.c
86   INCLUDE[sm2sigtest]=../include
87   DEPEND[sm2sigtest]=../libcrypto libtestutil.a
88
89   SOURCE[sm2crypttest]=sm2crypttest.c
90   INCLUDE[sm2crypttest]=../include
91   DEPEND[sm2crypttest]=../libcrypto libtestutil.a
92
93   SOURCE[gmdifftest]=gmdifftest.c
94   INCLUDE[gmdifftest]=../include
95   DEPEND[gmdifftest]=../libcrypto libtestutil.a
96
97   SOURCE[pbelutest]=pbelutest.c
98   INCLUDE[pbelutest]=../include
99   DEPEND[pbelutest]=../libcrypto libtestutil.a
100
101   SOURCE[ideatest]=ideatest.c
102   INCLUDE[ideatest]=../include
103   DEPEND[ideatest]=../libcrypto libtestutil.a
104
105   SOURCE[md2test]=md2test.c
106   INCLUDE[md2test]=../include
107   DEPEND[md2test]=../libcrypto libtestutil.a
108
109   SOURCE[hmactest]=hmactest.c
110   INCLUDE[hmactest]=../include
111   DEPEND[hmactest]=../libcrypto libtestutil.a
112
113   SOURCE[rc2test]=rc2test.c
114   INCLUDE[rc2test]=../include
115   DEPEND[rc2test]=../libcrypto libtestutil.a
116
117   SOURCE[rc4test]=rc4test.c
118   INCLUDE[rc4test]=../include
119   DEPEND[rc4test]=../libcrypto libtestutil.a
120
121   SOURCE[rc5test]=rc5test.c
122   INCLUDE[rc5test]=../include
123   DEPEND[rc5test]=../libcrypto libtestutil.a
124
125   SOURCE[destest]=destest.c
126   INCLUDE[destest]=../include
127   DEPEND[destest]=../libcrypto libtestutil.a
128
129   SOURCE[mdc2test]=mdc2test.c
130   INCLUDE[mdc2test]=../include
131   DEPEND[mdc2test]=../libcrypto libtestutil.a
132
133   SOURCE[dhtest]=dhtest.c
134   INCLUDE[dhtest]=../include
135   DEPEND[dhtest]=../libcrypto libtestutil.a
136
137   SOURCE[enginetest]=enginetest.c
138   INCLUDE[enginetest]=../include
139   DEPEND[enginetest]=../libcrypto libtestutil.a
140
141   SOURCE[casttest]=casttest.c
142   INCLUDE[casttest]=../include
143   DEPEND[casttest]=../libcrypto libtestutil.a
144
145   SOURCE[bftest]=bftest.c
146   INCLUDE[bftest]=../include
147   DEPEND[bftest]=../libcrypto libtestutil.a
148
149   SOURCE[ssltest_old]=ssltest_old.c
150   INCLUDE[ssltest_old]=.. ../include
151   DEPEND[ssltest_old]=../libcrypto ../libssl
152
153   SOURCE[dsatest]=dsatest.c
154   INCLUDE[dsatest]=../include
155   DEPEND[dsatest]=../libcrypto libtestutil.a
156
157   SOURCE[exptest]=exptest.c
158   INCLUDE[exptest]=../include
159   DEPEND[exptest]=../libcrypto libtestutil.a
160
161   SOURCE[rsa_test]=rsa_test.c
162   INCLUDE[rsa_test]=../include
163   DEPEND[rsa_test]=../libcrypto libtestutil.a
164
165   SOURCE[rsa_mp_test]=rsa_mp_test.c
166   INCLUDE[rsa_mp_test]=../include
167   DEPEND[rsa_mp_test]=../libcrypto libtestutil.a
168
169   SOURCE[fatalerrtest]=fatalerrtest.c ssltestlib.c
170   INCLUDE[fatalerrtest]=../include
171   DEPEND[fatalerrtest]=../libcrypto ../libssl libtestutil.a
172
173   SOURCE[tls13ccstest]=tls13ccstest.c ssltestlib.c
174   INCLUDE[tls13ccstest]=../include
175   DEPEND[tls13ccstest]=../libcrypto ../libssl libtestutil.a
176
177   SOURCE[evp_test]=evp_test.c
178   INCLUDE[evp_test]=../include
179   DEPEND[evp_test]=../libcrypto libtestutil.a
180
181   SOURCE[evp_extra_test]=evp_extra_test.c
182   INCLUDE[evp_extra_test]=../include ../crypto/include
183   DEPEND[evp_extra_test]=../libcrypto libtestutil.a
184
185   SOURCE[igetest]=igetest.c
186   INCLUDE[igetest]=../include
187   DEPEND[igetest]=../libcrypto libtestutil.a
188
189   SOURCE[v3nametest]=v3nametest.c
190   INCLUDE[v3nametest]=../include
191   DEPEND[v3nametest]=../libcrypto libtestutil.a
192
193   SOURCE[crltest]=crltest.c
194   INCLUDE[crltest]=../include
195   DEPEND[crltest]=../libcrypto libtestutil.a
196
197   SOURCE[v3ext]=v3ext.c
198   INCLUDE[v3ext]=../include
199   DEPEND[v3ext]=../libcrypto libtestutil.a
200
201   SOURCE[danetest]=danetest.c
202   INCLUDE[danetest]=../include
203   DEPEND[danetest]=../libcrypto ../libssl libtestutil.a
204
205   SOURCE[constant_time_test]=constant_time_test.c
206   INCLUDE[constant_time_test]=../include
207   DEPEND[constant_time_test]=../libcrypto libtestutil.a
208
209   SOURCE[verify_extra_test]=verify_extra_test.c
210   INCLUDE[verify_extra_test]=../include
211   DEPEND[verify_extra_test]=../libcrypto libtestutil.a
212
213   SOURCE[clienthellotest]=clienthellotest.c
214   INCLUDE[clienthellotest]=../include
215   DEPEND[clienthellotest]=../libcrypto ../libssl libtestutil.a
216
217   SOURCE[bad_dtls_test]=bad_dtls_test.c
218   INCLUDE[bad_dtls_test]=../include
219   DEPEND[bad_dtls_test]=../libcrypto ../libssl libtestutil.a
220
221   SOURCE[packettest]=packettest.c
222   INCLUDE[packettest]=../include
223   DEPEND[packettest]=../libcrypto libtestutil.a
224
225   SOURCE[asynctest]=asynctest.c
226   INCLUDE[asynctest]=../include
227   DEPEND[asynctest]=../libcrypto
228
229   SOURCE[secmemtest]=secmemtest.c
230   INCLUDE[secmemtest]=../include
231   DEPEND[secmemtest]=../libcrypto libtestutil.a
232
233   SOURCE[srptest]=srptest.c
234   INCLUDE[srptest]=../include
235   DEPEND[srptest]=../libcrypto libtestutil.a
236
237   SOURCE[memleaktest]=memleaktest.c
238   INCLUDE[memleaktest]=../include
239   DEPEND[memleaktest]=../libcrypto libtestutil.a
240
241   SOURCE[stack_test]=stack_test.c
242   INCLUDE[stack_test]=../include
243   DEPEND[stack_test]=../libcrypto libtestutil.a
244
245   SOURCE[lhash_test]=lhash_test.c
246   INCLUDE[lhash_test]=../include
247   DEPEND[lhash_test]=../libcrypto libtestutil.a
248
249   SOURCE[dtlsv1listentest]=dtlsv1listentest.c
250   INCLUDE[dtlsv1listentest]=../include
251   DEPEND[dtlsv1listentest]=../libssl libtestutil.a
252
253   SOURCE[ct_test]=ct_test.c
254   INCLUDE[ct_test]=../include
255   DEPEND[ct_test]=../libcrypto libtestutil.a
256
257   SOURCE[threadstest]=threadstest.c
258   INCLUDE[threadstest]=../include
259   DEPEND[threadstest]=../libcrypto libtestutil.a
260
261   SOURCE[afalgtest]=afalgtest.c
262   INCLUDE[afalgtest]=../include
263   DEPEND[afalgtest]=../libcrypto libtestutil.a
264
265   SOURCE[d2i_test]=d2i_test.c
266   INCLUDE[d2i_test]=../include
267   DEPEND[d2i_test]=../libcrypto libtestutil.a
268
269   SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c
270   INCLUDE[ssl_test_ctx_test]=../include
271   DEPEND[ssl_test_ctx_test]=../libcrypto ../libssl libtestutil.a
272
273   SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c handshake_helper.c
274   INCLUDE[ssl_test]=../include
275   DEPEND[ssl_test]=../libcrypto ../libssl libtestutil.a
276
277   SOURCE[cipherlist_test]=cipherlist_test.c
278   INCLUDE[cipherlist_test]=../include
279   DEPEND[cipherlist_test]=../libcrypto ../libssl libtestutil.a
280
281   INCLUDE[ssl_test_ctx.o]=../include
282   INCLUDE[handshake_helper.o]=.. ../include
283   INCLUDE[ssltestlib.o]=.. ../include
284
285   SOURCE[x509aux]=x509aux.c
286   INCLUDE[x509aux]=../include
287   DEPEND[x509aux]=../libcrypto libtestutil.a
288
289   SOURCE[asynciotest]=asynciotest.c ssltestlib.c
290   INCLUDE[asynciotest]=../include
291   DEPEND[asynciotest]=../libcrypto ../libssl libtestutil.a
292
293   SOURCE[bio_callback_test]=bio_callback_test.c
294   INCLUDE[bio_callback_test]=../include
295   DEPEND[bio_callback_test]=../libcrypto libtestutil.a
296
297   SOURCE[bioprinttest]=bioprinttest.c
298   INCLUDE[bioprinttest]=../include
299   DEPEND[bioprinttest]=../libcrypto libtestutil.a
300
301   SOURCE[sslapitest]=sslapitest.c ssltestlib.c
302   INCLUDE[sslapitest]=../include ..
303   DEPEND[sslapitest]=../libcrypto ../libssl libtestutil.a
304
305   SOURCE[ocspapitest]=ocspapitest.c
306   INCLUDE[ocspapitest]=../include
307   DEPEND[ocspapitest]=../libcrypto libtestutil.a
308
309   SOURCE[dtlstest]=dtlstest.c ssltestlib.c
310   INCLUDE[dtlstest]=../include
311   DEPEND[dtlstest]=../libcrypto ../libssl libtestutil.a
312
313   SOURCE[sslcorrupttest]=sslcorrupttest.c ssltestlib.c
314   INCLUDE[sslcorrupttest]=../include
315   DEPEND[sslcorrupttest]=../libcrypto ../libssl libtestutil.a
316
317   SOURCE[bio_enc_test]=bio_enc_test.c
318   INCLUDE[bio_enc_test]=../include
319   DEPEND[bio_enc_test]=../libcrypto libtestutil.a
320
321   SOURCE[pkey_meth_test]=pkey_meth_test.c
322   INCLUDE[pkey_meth_test]=../include
323   DEPEND[pkey_meth_test]=../libcrypto libtestutil.a
324
325   SOURCE[pkey_meth_kdf_test]=pkey_meth_kdf_test.c
326   INCLUDE[pkey_meth_kdf_test]=../include
327   DEPEND[pkey_meth_kdf_test]=../libcrypto libtestutil.a
328
329   SOURCE[x509_time_test]=x509_time_test.c
330   INCLUDE[x509_time_test]=../include
331   DEPEND[x509_time_test]=../libcrypto libtestutil.a
332
333   SOURCE[recordlentest]=recordlentest.c ssltestlib.c
334   INCLUDE[recordlentest]=../include
335   DEPEND[recordlentest]=../libcrypto ../libssl libtestutil.a
336
337   SOURCE[drbgtest]=drbgtest.c
338   INCLUDE[drbgtest]=../include
339   DEPEND[drbgtest]=../libcrypto libtestutil.a
340
341   SOURCE[x509_dup_cert_test]=x509_dup_cert_test.c
342   INCLUDE[x509_dup_cert_test]=../include
343   DEPEND[x509_dup_cert_test]=../libcrypto libtestutil.a
344
345   SOURCE[x509_check_cert_pkey_test]=x509_check_cert_pkey_test.c
346   INCLUDE[x509_check_cert_pkey_test]=../include
347   DEPEND[x509_check_cert_pkey_test]=../libcrypto libtestutil.a
348
349   SOURCE[pemtest]=pemtest.c
350   INCLUDE[pemtest]=../include
351   DEPEND[pemtest]=../libcrypto libtestutil.a
352
353   SOURCE[ssl_cert_table_internal_test]=ssl_cert_table_internal_test.c
354   INCLUDE[ssl_cert_table_internal_test]=.. ../include
355   DEPEND[ssl_cert_table_internal_test]=../libcrypto libtestutil.a
356
357   SOURCE[ciphername_test]=ciphername_test.c
358   INCLUDE[ciphername_test]=../include
359   DEPEND[ciphername_test]=../libcrypto ../libssl libtestutil.a
360
361   SOURCE[servername_test]=servername_test.c
362   INCLUDE[servername_test]=../include
363   DEPEND[servername_test]=../libcrypto ../libssl libtestutil.a
364
365   IF[{- !$disabled{psk} -}]
366     PROGRAMS_NO_INST=dtls_mtu_test
367     SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c
368     INCLUDE[dtls_mtu_test]=.. ../include
369     DEPEND[dtls_mtu_test]=../libcrypto ../libssl libtestutil.a
370   ENDIF
371
372   IF[{- !$disabled{shared} -}]
373     PROGRAMS_NO_INST=shlibloadtest
374     SOURCE[shlibloadtest]=shlibloadtest.c
375     INCLUDE[shlibloadtest]=../include
376     DEPEND[shlibloadtest]=libtestutil.a
377   ENDIF
378
379   IF[{- $disabled{shared} -}]
380     PROGRAMS_NO_INST=cipher_overhead_test
381     SOURCE[cipher_overhead_test]=cipher_overhead_test.c
382     INCLUDE[cipher_overhead_test]=.. ../include
383     DEPEND[cipher_overhead_test]=../libcrypto ../libssl libtestutil.a
384   ENDIF
385
386   SOURCE[uitest]=uitest.c \
387                  {- rebase_files("../apps",
388                                  split(/\s+/, $target{apps_init_src})) -}
389   INCLUDE[uitest]=.. ../include ../apps
390   DEPEND[uitest]=../apps/libapps.a ../libcrypto ../libssl libtestutil.a
391
392   SOURCE[cipherbytes_test]=cipherbytes_test.c
393   INCLUDE[cipherbytes_test]=../include
394   DEPEND[cipherbytes_test]=../libcrypto ../libssl libtestutil.a
395
396   SOURCE[asn1_encode_test]=asn1_encode_test.c
397   INCLUDE[asn1_encode_test]=../include
398   DEPEND[asn1_encode_test]=../libcrypto libtestutil.a
399
400   SOURCE[asn1_string_table_test]=asn1_string_table_test.c
401   INCLUDE[asn1_string_table_test]=../include
402   DEPEND[asn1_string_table_test]=../libcrypto libtestutil.a
403
404   SOURCE[time_offset_test]=time_offset_test.c
405   INCLUDE[time_offset_test]=../include
406   DEPEND[time_offset_test]=../libcrypto libtestutil.a
407
408   SOURCE[conf_include_test]=conf_include_test.c
409   INCLUDE[conf_include_test]=../include
410   DEPEND[conf_include_test]=../libcrypto libtestutil.a
411
412   # Internal test programs.  These are essentially a collection of internal
413   # test routines.  Some of them need to reach internal symbols that aren't
414   # available through the shared library (at least on Linux, Solaris, Windows
415   # and VMS, where the exported symbols are those listed in util/*.num), these
416   # programs are forcibly linked with the static libraries, where all symbols
417   # are always available.  This excludes linking these programs natively on
418   # Windows when building shared libraries, since the static libraries share
419   # names with the DLL import libraries.
420   IF[{- $disabled{shared} || $target{build_scheme}->[1] ne 'windows' -}]
421     PROGRAMS_NO_INST=asn1_internal_test modes_internal_test x509_internal_test \
422                      tls13encryptiontest wpackettest ctype_internal_test \
423                      rdrand_sanitytest
424     IF[{- !$disabled{poly1305} -}]
425       PROGRAMS_NO_INST=poly1305_internal_test
426     ENDIF
427     IF[{- !$disabled{chacha} -}]
428       PROGRAMS_NO_INST=chacha_internal_test
429     ENDIF
430     IF[{- !$disabled{siphash} -}]
431       PROGRAMS_NO_INST=siphash_internal_test
432     ENDIF
433     IF[{- !$disabled{sm4} -}]
434       PROGRAMS_NO_INST=sm4_internal_test
435     ENDIF
436     IF[{- !$disabled{ec} -}]
437       PROGRAMS_NO_INST=curve448_internal_test
438     ENDIF
439
440     SOURCE[poly1305_internal_test]=poly1305_internal_test.c
441     INCLUDE[poly1305_internal_test]=.. ../include ../crypto/include
442     DEPEND[poly1305_internal_test]=../libcrypto.a libtestutil.a
443
444     SOURCE[chacha_internal_test]=chacha_internal_test.c
445     INCLUDE[chacha_internal_test]=.. ../include ../crypto/include
446     DEPEND[chacha_internal_test]=../libcrypto.a libtestutil.a
447
448     SOURCE[asn1_internal_test]=asn1_internal_test.c
449     INCLUDE[asn1_internal_test]=.. ../include ../crypto/include
450     DEPEND[asn1_internal_test]=../libcrypto.a libtestutil.a
451
452     SOURCE[modes_internal_test]=modes_internal_test.c
453     INCLUDE[modes_internal_test]=.. ../include
454     DEPEND[modes_internal_test]=../libcrypto.a libtestutil.a
455
456     SOURCE[x509_internal_test]=x509_internal_test.c
457     INCLUDE[x509_internal_test]=.. ../include
458     DEPEND[x509_internal_test]=../libcrypto.a libtestutil.a
459
460     SOURCE[tls13encryptiontest]=tls13encryptiontest.c
461     INCLUDE[tls13encryptiontest]=.. ../include
462     DEPEND[tls13encryptiontest]=../libcrypto ../libssl.a libtestutil.a
463
464     SOURCE[wpackettest]=wpackettest.c
465     INCLUDE[wpackettest]=../include
466     DEPEND[wpackettest]=../libcrypto ../libssl.a libtestutil.a
467
468     SOURCE[ctype_internal_test]=ctype_internal_test.c
469     INCLUDE[ctype_internal_test]=.. ../crypto/include ../include
470     DEPEND[ctype_internal_test]=../libcrypto.a libtestutil.a
471
472     SOURCE[siphash_internal_test]=siphash_internal_test.c
473     INCLUDE[siphash_internal_test]=.. ../include ../crypto/include
474     DEPEND[siphash_internal_test]=../libcrypto.a libtestutil.a
475
476     SOURCE[sm4_internal_test]=sm4_internal_test.c
477     INCLUDE[sm4_internal_test]=.. ../include ../crypto/include
478     DEPEND[sm4_internal_test]=../libcrypto.a libtestutil.a
479
480     SOURCE[curve448_internal_test]=curve448_internal_test.c
481     INCLUDE[curve448_internal_test]=.. ../include ../crypto/ec/curve448
482     DEPEND[curve448_internal_test]=../libcrypto.a libtestutil.a
483
484     SOURCE[rdrand_sanitytest]=rdrand_sanitytest.c
485     INCLUDE[rdrand_sanitytest]=../include
486     DEPEND[rdrand_sanitytest]=../libcrypto.a libtestutil.a
487   ENDIF
488
489   IF[{- !$disabled{mdc2} -}]
490     PROGRAMS_NO_INST=mdc2_internal_test
491   ENDIF
492
493   SOURCE[mdc2_internal_test]=mdc2_internal_test.c
494   INCLUDE[mdc2_internal_test]=.. ../include
495   DEPEND[mdc2_internal_test]=../libcrypto libtestutil.a
496
497   PROGRAMS_NO_INST=asn1_time_test
498   SOURCE[asn1_time_test]=asn1_time_test.c
499   INCLUDE[asn1_time_test]=../include
500   DEPEND[asn1_time_test]=../libcrypto libtestutil.a
501
502   # We disable this test completely in a shared build because it deliberately
503   # redefines some internal libssl symbols. This doesn't work in a non-shared
504   # build
505   IF[{- !$disabled{shared} -}]
506     PROGRAMS_NO_INST=tls13secretstest
507     SOURCE[tls13secretstest]=tls13secretstest.c
508     SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../ssl/packet.c
509     INCLUDE[tls13secretstest]=.. ../include
510     DEPEND[tls13secretstest]=../libcrypto ../libssl libtestutil.a
511   ENDIF
512
513   SOURCE[sslbuffertest]=sslbuffertest.c ssltestlib.c
514   INCLUDE[sslbuffertest]=../include
515   DEPEND[sslbuffertest]=../libcrypto ../libssl libtestutil.a
516 ENDIF
517
518 {-
519    use File::Spec::Functions;
520    use File::Basename;
521    use OpenSSL::Glob;
522
523    my @nogo_headers = ( "asn1_mac.h",
524                         "__decc_include_prologue.h",
525                         "__decc_include_epilogue.h" );
526    my @headerfiles = glob catfile($sourcedir,
527                                   updir(), "include", "openssl", "*.h");
528
529    foreach my $headerfile (@headerfiles) {
530        my $name = basename($headerfile, ".h");
531        next if $disabled{$name};
532        next if grep { $_ eq lc("$name.h") } @nogo_headers;
533        $OUT .= <<"_____";
534
535   PROGRAMS_NO_INST=buildtest_$name
536   GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
537   SOURCE[buildtest_$name]=buildtest_$name.c
538   INCLUDE[buildtest_$name]=../include
539   DEPEND[buildtest_$name]=../libssl ../libcrypto
540 _____
541    }
542 -}