crypto: Add NULL IV generator
[strongswan.git] / src / libstrongswan / Makefile.am
1 ipseclib_LTLIBRARIES = libstrongswan.la
2
3 libstrongswan_la_SOURCES = \
4 library.c \
5 asn1/asn1.c asn1/asn1_parser.c asn1/oid.c bio/bio_reader.c bio/bio_writer.c \
6 collections/blocking_queue.c collections/enumerator.c collections/hashtable.c \
7 collections/array.c \
8 collections/linked_list.c crypto/crypters/crypter.c crypto/hashers/hasher.c \
9 crypto/hashers/hash_algorithm_set.c \
10 crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords_static.c \
11 crypto/prfs/prf.c crypto/prfs/mac_prf.c crypto/pkcs5.c \
12 crypto/rngs/rng.c crypto/prf_plus.c crypto/signers/signer.c \
13 crypto/signers/mac_signer.c crypto/crypto_factory.c crypto/crypto_tester.c \
14 crypto/diffie_hellman.c crypto/aead.c crypto/transform.c \
15 crypto/iv/iv_gen.c crypto/iv/iv_gen_rand.c crypto/iv/iv_gen_seq.c \
16 crypto/iv/iv_gen_null.c \
17 crypto/mgf1/mgf1.c crypto/mgf1/mgf1_bitspender.c \
18 credentials/credential_factory.c credentials/builder.c \
19 credentials/cred_encoding.c credentials/keys/private_key.c \
20 credentials/keys/public_key.c credentials/keys/shared_key.c \
21 credentials/certificates/certificate.c credentials/certificates/crl.c \
22 credentials/certificates/ocsp_response.c \
23 credentials/containers/container.c credentials/containers/pkcs12.c \
24 credentials/credential_manager.c \
25 credentials/sets/auth_cfg_wrapper.c credentials/sets/ocsp_response_wrapper.c \
26 credentials/sets/cert_cache.c credentials/sets/mem_cred.c \
27 credentials/sets/callback_cred.c credentials/auth_cfg.c database/database.c \
28 database/database_factory.c fetcher/fetcher.c fetcher/fetcher_manager.c eap/eap.c \
29 ipsec/ipsec_types.c \
30 networking/host.c networking/host_resolver.c networking/packet.c \
31 networking/tun_device.c networking/streams/stream_manager.c \
32 networking/streams/stream.c networking/streams/stream_service.c \
33 networking/streams/stream_tcp.c networking/streams/stream_service_tcp.c \
34 pen/pen.c plugins/plugin_loader.c plugins/plugin_feature.c processing/jobs/job.c \
35 processing/jobs/callback_job.c processing/processor.c processing/scheduler.c \
36 processing/watcher.c resolver/resolver_manager.c resolver/rr_set.c \
37 selectors/traffic_selector.c settings/settings.c settings/settings_types.c \
38 settings/settings_parser.y settings/settings_lexer.l utils/cpu_feature.c \
39 utils/utils.c utils/chunk.c utils/debug.c utils/enum.c utils/identification.c \
40 utils/lexparser.c utils/optionsfrom.c utils/capabilities.c utils/backtrace.c \
41 utils/parser_helper.c utils/test.c utils/process.c utils/utils/strerror.c \
42 utils/utils/atomics.c utils/utils/string.c utils/utils/memory.c \
43 utils/utils/tty.c utils/utils/path.c utils/utils/status.c utils/utils/time.c \
44 utils/utils/align.c
45
46 if !USE_WINDOWS
47   libstrongswan_la_SOURCES += \
48     threading/thread.c \
49     threading/thread_value.c \
50     threading/mutex.c \
51     threading/rwlock.c \
52     threading/spinlock.c \
53     threading/semaphore.c \
54     networking/streams/stream_unix.c \
55     networking/streams/stream_service_unix.c
56 endif
57
58 # private header files
59 noinst_HEADERS = \
60 settings/settings_types.h
61
62 if USE_DEV_HEADERS
63 strongswan_includedir = ${dev_headers}
64 nobase_strongswan_include_HEADERS = \
65 library.h \
66 asn1/asn1.h asn1/asn1_parser.h asn1/oid.h bio/bio_reader.h bio/bio_writer.h \
67 collections/blocking_queue.h collections/enumerator.h collections/hashtable.h \
68 collections/linked_list.h collections/array.h collections/dictionary.h \
69 crypto/crypters/crypter.h crypto/hashers/hasher.h \
70 crypto/hashers/hash_algorithm_set.h crypto/mac.h \
71 crypto/proposal/proposal_keywords.h crypto/proposal/proposal_keywords_static.h \
72 crypto/prfs/prf.h crypto/prfs/mac_prf.h crypto/rngs/rng.h crypto/nonce_gen.h \
73 crypto/prf_plus.h crypto/signers/signer.h crypto/signers/mac_signer.h \
74 crypto/crypto_factory.h crypto/crypto_tester.h crypto/diffie_hellman.h \
75 crypto/aead.h crypto/transform.h crypto/pkcs5.h crypto/iv/iv_gen.h \
76 crypto/iv/iv_gen_rand.h crypto/iv/iv_gen_seq.h crypto/iv/iv_gen_null.h \
77 crypto/mgf1/mgf1.h crypto/mgf1/mgf1_bitspender.h \
78 credentials/credential_factory.h credentials/builder.h \
79 credentials/cred_encoding.h credentials/keys/private_key.h \
80 credentials/keys/public_key.h credentials/keys/shared_key.h \
81 credentials/certificates/certificate.h credentials/certificates/x509.h \
82 credentials/certificates/ac.h credentials/certificates/crl.h \
83 credentials/certificates/pkcs10.h credentials/certificates/ocsp_request.h \
84 credentials/certificates/ocsp_response.h \
85 credentials/certificates/pgp_certificate.h \
86 credentials/containers/container.h credentials/containers/pkcs7.h \
87 credentials/containers/pkcs12.h \
88 credentials/credential_manager.h credentials/sets/auth_cfg_wrapper.h \
89 credentials/sets/ocsp_response_wrapper.h credentials/sets/cert_cache.h \
90 credentials/sets/mem_cred.h credentials/sets/callback_cred.h \
91 credentials/auth_cfg.h credentials/credential_set.h credentials/cert_validator.h \
92 database/database.h database/database_factory.h fetcher/fetcher.h \
93 fetcher/fetcher_manager.h eap/eap.h pen/pen.h ipsec/ipsec_types.h \
94 networking/host.h networking/host_resolver.h networking/packet.h \
95 networking/tun_device.h networking/streams/stream.h \
96 networking/streams/stream_unix.h networking/streams/stream_service_unix.h \
97 networking/streams/stream_tcp.h networking/streams/stream_service_tcp.h \
98 networking/streams/stream_service.h networking/streams/stream_manager.h \
99 resolver/resolver.h resolver/resolver_response.h resolver/rr_set.h \
100 resolver/rr.h resolver/resolver_manager.h \
101 plugins/plugin_loader.h plugins/plugin.h plugins/plugin_feature.h \
102 processing/jobs/job.h processing/jobs/callback_job.h processing/processor.h \
103 processing/scheduler.h processing/watcher.h selectors/traffic_selector.h \
104 settings/settings.h settings/settings_parser.h threading/thread_value.h \
105 threading/thread.h threading/windows/thread.h \
106 threading/mutex.h threading/condvar.h threading/spinlock.h threading/semaphore.h \
107 threading/rwlock.h threading/rwlock_condvar.h threading/lock_profiler.h \
108 utils/utils.h utils/chunk.h utils/debug.h utils/enum.h utils/identification.h \
109 utils/lexparser.h utils/optionsfrom.h utils/capabilities.h utils/backtrace.h \
110 utils/cpu_feature.h utils/leak_detective.h utils/printf_hook/printf_hook.h \
111 utils/printf_hook/printf_hook_vstr.h utils/printf_hook/printf_hook_builtin.h \
112 utils/parser_helper.h utils/test.h utils/integrity_checker.h utils/process.h \
113 utils/utils/strerror.h utils/compat/windows.h utils/compat/apple.h \
114 utils/utils/atomics.h utils/utils/types.h utils/utils/byteorder.h \
115 utils/utils/string.h utils/utils/memory.h utils/utils/tty.h utils/utils/path.h \
116 utils/utils/status.h utils/utils/object.h utils/utils/time.h utils/utils/align.h
117 endif
118
119 library.lo :    $(top_builddir)/config.status
120
121 libstrongswan_la_LIBADD = $(DLLIB) $(BTLIB) $(SOCKLIB) $(RTLIB) $(BFDLIB) $(UNWINDLIB)
122
123 AM_CPPFLAGS = \
124         -I$(top_srcdir)/src/libstrongswan \
125         -DIPSEC_DIR=\"${ipsecdir}\" \
126         -DIPSEC_LIB_DIR=\"${ipseclibdir}\" \
127         -DPLUGINDIR=\"${plugindir}\" \
128         -DSTRONGSWAN_CONF=\"${strongswan_conf}\"
129
130 AM_CFLAGS = \
131         @COVERAGE_CFLAGS@
132
133 AM_LDFLAGS = \
134         -no-undefined
135
136 AM_YFLAGS = -v -d
137
138 if USE_WINDOWS
139   libstrongswan_la_LIBADD += -lws2_32 -lpsapi
140   libstrongswan_la_SOURCES += \
141     threading/windows/thread.c \
142     threading/windows/thread_value.c \
143     threading/windows/mutex.c \
144     threading/windows/rwlock.c \
145     threading/windows/spinlock.c \
146     threading/windows/semaphore.c \
147     utils/compat/windows.c
148 else
149   libstrongswan_la_LIBADD += $(PTHREADLIB)
150 endif
151
152 if USE_DBGHELP
153   libstrongswan_la_LIBADD += -ldbghelp
154   AM_CPPFLAGS += -DHAVE_DBGHELP
155 endif
156
157 if USE_LEAK_DETECTIVE
158   AM_CPPFLAGS += -DLEAK_DETECTIVE
159   libstrongswan_la_SOURCES += utils/leak_detective.c
160 endif
161
162 if USE_LOCK_PROFILER
163   AM_CPPFLAGS += -DLOCK_PROFILER
164 endif
165
166 if USE_INTEGRITY_TEST
167   AM_CPPFLAGS += -DINTEGRITY_TEST
168   libstrongswan_la_SOURCES += utils/integrity_checker.c
169 endif
170
171 if USE_VSTR
172   libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_vstr.c
173   libstrongswan_la_LIBADD += -lvstr
174 endif
175
176 if USE_BUILTIN_PRINTF
177   libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_builtin.c
178   libstrongswan_la_LIBADD += -lm
179 endif
180
181 if !USE_BUILTIN_PRINTF
182 if !USE_VSTR
183   libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_glibc.c
184 endif
185 endif
186
187 if USE_LIBCAP
188   libstrongswan_la_LIBADD += -lcap
189 endif
190
191 EXTRA_DIST = \
192 asn1/oid.txt asn1/oid.pl \
193 crypto/proposal/proposal_keywords_static.txt \
194 Android.mk AndroidConfigLocal.h
195
196 BUILT_SOURCES = \
197 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
198 $(srcdir)/crypto/proposal/proposal_keywords_static.c \
199 settings/settings_parser.h
200
201 MAINTAINERCLEANFILES = \
202 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
203 $(srcdir)/crypto/proposal/proposal_keywords_static.c
204
205 $(srcdir)/asn1/oid.c :  $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
206                 $(AM_V_GEN) \
207                 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
208
209 $(srcdir)/asn1/oid.h :  $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
210                 $(AM_V_GEN) \
211                 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
212
213 $(srcdir)/crypto/proposal/proposal_keywords_static.c:   $(srcdir)/crypto/proposal/proposal_keywords_static.txt \
214                                                                                                                 $(srcdir)/crypto/proposal/proposal_keywords_static.h
215                 $(AM_V_GEN) \
216                 $(GPERF) -N proposal_get_token_static -m 10 -C -G -c -t -D < \
217                                                                                                 $(srcdir)/crypto/proposal/proposal_keywords_static.txt > $@
218
219
220 # build plugins with their own Makefile
221 #######################################
222
223 if MONOLITHIC
224 SUBDIRS =
225 else
226 SUBDIRS = .
227 endif
228
229 if USE_AF_ALG
230   SUBDIRS += plugins/af_alg
231 if MONOLITHIC
232   libstrongswan_la_LIBADD += plugins/af_alg/libstrongswan-af-alg.la
233 endif
234 endif
235
236 if USE_AES
237   SUBDIRS += plugins/aes
238 if MONOLITHIC
239   libstrongswan_la_LIBADD += plugins/aes/libstrongswan-aes.la
240 endif
241 endif
242
243 if USE_DES
244   SUBDIRS += plugins/des
245 if MONOLITHIC
246   libstrongswan_la_LIBADD += plugins/des/libstrongswan-des.la
247 endif
248 endif
249
250 if USE_BLOWFISH
251   SUBDIRS += plugins/blowfish
252 if MONOLITHIC
253   libstrongswan_la_LIBADD += plugins/blowfish/libstrongswan-blowfish.la
254 endif
255 endif
256
257 if USE_RC2
258   SUBDIRS += plugins/rc2
259 if MONOLITHIC
260   libstrongswan_la_LIBADD += plugins/rc2/libstrongswan-rc2.la
261 endif
262 endif
263
264 if USE_MD4
265   SUBDIRS += plugins/md4
266 if MONOLITHIC
267   libstrongswan_la_LIBADD += plugins/md4/libstrongswan-md4.la
268 endif
269 endif
270
271 if USE_MD5
272   SUBDIRS += plugins/md5
273 if MONOLITHIC
274   libstrongswan_la_LIBADD += plugins/md5/libstrongswan-md5.la
275 endif
276 endif
277
278 if USE_SHA1
279   SUBDIRS += plugins/sha1
280 if MONOLITHIC
281   libstrongswan_la_LIBADD += plugins/sha1/libstrongswan-sha1.la
282 endif
283 endif
284
285 if USE_SHA2
286   SUBDIRS += plugins/sha2
287 if MONOLITHIC
288   libstrongswan_la_LIBADD += plugins/sha2/libstrongswan-sha2.la
289 endif
290 endif
291
292 if USE_SHA3
293   SUBDIRS += plugins/sha3
294 if MONOLITHIC
295   libstrongswan_la_LIBADD += plugins/sha3/libstrongswan-sha3.la
296 endif
297 endif
298
299 if USE_GMP
300   SUBDIRS += plugins/gmp
301 if MONOLITHIC
302   libstrongswan_la_LIBADD += plugins/gmp/libstrongswan-gmp.la
303 endif
304 endif
305
306 if USE_RDRAND
307   SUBDIRS += plugins/rdrand
308 if MONOLITHIC
309   libstrongswan_la_LIBADD += plugins/rdrand/libstrongswan-rdrand.la
310 endif
311 endif
312
313 if USE_AESNI
314   SUBDIRS += plugins/aesni
315 if MONOLITHIC
316   libstrongswan_la_LIBADD += plugins/aesni/libstrongswan-aesni.la
317 endif
318 endif
319
320 if USE_RANDOM
321   SUBDIRS += plugins/random
322 if MONOLITHIC
323   libstrongswan_la_LIBADD += plugins/random/libstrongswan-random.la
324 endif
325 endif
326
327 if USE_NONCE
328   SUBDIRS += plugins/nonce
329 if MONOLITHIC
330   libstrongswan_la_LIBADD += plugins/nonce/libstrongswan-nonce.la
331 endif
332 endif
333
334 if USE_HMAC
335   SUBDIRS += plugins/hmac
336 if MONOLITHIC
337   libstrongswan_la_LIBADD += plugins/hmac/libstrongswan-hmac.la
338 endif
339 endif
340
341 if USE_CMAC
342   SUBDIRS += plugins/cmac
343 if MONOLITHIC
344   libstrongswan_la_LIBADD += plugins/cmac/libstrongswan-cmac.la
345 endif
346 endif
347
348 if USE_XCBC
349   SUBDIRS += plugins/xcbc
350 if MONOLITHIC
351   libstrongswan_la_LIBADD += plugins/xcbc/libstrongswan-xcbc.la
352 endif
353 endif
354
355 if USE_X509
356   SUBDIRS += plugins/x509
357 if MONOLITHIC
358   libstrongswan_la_LIBADD += plugins/x509/libstrongswan-x509.la
359 endif
360 endif
361
362 if USE_REVOCATION
363   SUBDIRS += plugins/revocation
364 if MONOLITHIC
365   libstrongswan_la_LIBADD += plugins/revocation/libstrongswan-revocation.la
366 endif
367 endif
368
369 if USE_CONSTRAINTS
370   SUBDIRS += plugins/constraints
371 if MONOLITHIC
372   libstrongswan_la_LIBADD += plugins/constraints/libstrongswan-constraints.la
373 endif
374 endif
375
376 if USE_ACERT
377   SUBDIRS += plugins/acert
378 if MONOLITHIC
379   libstrongswan_la_LIBADD += plugins/acert/libstrongswan-acert.la
380 endif
381 endif
382
383 if USE_PUBKEY
384   SUBDIRS += plugins/pubkey
385 if MONOLITHIC
386   libstrongswan_la_LIBADD += plugins/pubkey/libstrongswan-pubkey.la
387 endif
388 endif
389
390 if USE_PKCS1
391   SUBDIRS += plugins/pkcs1
392 if MONOLITHIC
393   libstrongswan_la_LIBADD += plugins/pkcs1/libstrongswan-pkcs1.la
394 endif
395 endif
396
397 if USE_PKCS7
398   SUBDIRS += plugins/pkcs7
399 if MONOLITHIC
400   libstrongswan_la_LIBADD += plugins/pkcs7/libstrongswan-pkcs7.la
401 endif
402 endif
403
404 if USE_PKCS8
405   SUBDIRS += plugins/pkcs8
406 if MONOLITHIC
407   libstrongswan_la_LIBADD += plugins/pkcs8/libstrongswan-pkcs8.la
408 endif
409 endif
410
411 if USE_PKCS12
412   SUBDIRS += plugins/pkcs12
413 if MONOLITHIC
414   libstrongswan_la_LIBADD += plugins/pkcs12/libstrongswan-pkcs12.la
415 endif
416 endif
417
418 if USE_PGP
419   SUBDIRS += plugins/pgp
420 if MONOLITHIC
421   libstrongswan_la_LIBADD += plugins/pgp/libstrongswan-pgp.la
422 endif
423 endif
424
425 if USE_DNSKEY
426   SUBDIRS += plugins/dnskey
427 if MONOLITHIC
428   libstrongswan_la_LIBADD += plugins/dnskey/libstrongswan-dnskey.la
429 endif
430 endif
431
432 if USE_SSHKEY
433   SUBDIRS += plugins/sshkey
434 if MONOLITHIC
435   libstrongswan_la_LIBADD += plugins/sshkey/libstrongswan-sshkey.la
436 endif
437 endif
438
439 if USE_PEM
440   SUBDIRS += plugins/pem
441 if MONOLITHIC
442   libstrongswan_la_LIBADD += plugins/pem/libstrongswan-pem.la
443 endif
444 endif
445
446 if USE_CURL
447   SUBDIRS += plugins/curl
448 if MONOLITHIC
449   libstrongswan_la_LIBADD += plugins/curl/libstrongswan-curl.la
450 endif
451 endif
452
453 if USE_FILES
454   SUBDIRS += plugins/files
455 if MONOLITHIC
456   libstrongswan_la_LIBADD += plugins/files/libstrongswan-files.la
457 endif
458 endif
459
460 if USE_WINHTTP
461   SUBDIRS += plugins/winhttp
462 if MONOLITHIC
463   libstrongswan_la_LIBADD += plugins/winhttp/libstrongswan-winhttp.la
464 endif
465 endif
466
467 if USE_UNBOUND
468   SUBDIRS += plugins/unbound
469 if MONOLITHIC
470   libstrongswan_la_LIBADD += plugins/unbound/libstrongswan-unbound.la
471 endif
472 endif
473
474 if USE_SOUP
475   SUBDIRS += plugins/soup
476 if MONOLITHIC
477   libstrongswan_la_LIBADD += plugins/soup/libstrongswan-soup.la
478 endif
479 endif
480
481 if USE_LDAP
482   SUBDIRS += plugins/ldap
483 if MONOLITHIC
484   libstrongswan_la_LIBADD += plugins/ldap/libstrongswan-ldap.la
485 endif
486 endif
487
488 if USE_MYSQL
489   SUBDIRS += plugins/mysql
490 if MONOLITHIC
491   libstrongswan_la_LIBADD += plugins/mysql/libstrongswan-mysql.la
492 endif
493 endif
494
495 if USE_SQLITE
496   SUBDIRS += plugins/sqlite
497 if MONOLITHIC
498   libstrongswan_la_LIBADD += plugins/sqlite/libstrongswan-sqlite.la
499 endif
500 endif
501
502 if USE_PADLOCK
503   SUBDIRS += plugins/padlock
504 if MONOLITHIC
505   libstrongswan_la_LIBADD += plugins/padlock/libstrongswan-padlock.la
506 endif
507 endif
508
509 if USE_OPENSSL
510   SUBDIRS += plugins/openssl
511 if MONOLITHIC
512   libstrongswan_la_LIBADD += plugins/openssl/libstrongswan-openssl.la
513 endif
514 endif
515
516 if USE_GCRYPT
517   SUBDIRS += plugins/gcrypt
518 if MONOLITHIC
519   libstrongswan_la_LIBADD += plugins/gcrypt/libstrongswan-gcrypt.la
520 endif
521 endif
522
523 if USE_FIPS_PRF
524   SUBDIRS += plugins/fips_prf
525 if MONOLITHIC
526   libstrongswan_la_LIBADD += plugins/fips_prf/libstrongswan-fips-prf.la
527 endif
528 endif
529
530 if USE_AGENT
531   SUBDIRS += plugins/agent
532 if MONOLITHIC
533   libstrongswan_la_LIBADD += plugins/agent/libstrongswan-agent.la
534 endif
535 endif
536
537 if USE_KEYCHAIN
538   SUBDIRS += plugins/keychain
539 if MONOLITHIC
540   libstrongswan_la_LIBADD += plugins/keychain/libstrongswan-keychain.la
541 endif
542 endif
543
544 if USE_PKCS11
545   SUBDIRS += plugins/pkcs11
546 if MONOLITHIC
547   libstrongswan_la_LIBADD += plugins/pkcs11/libstrongswan-pkcs11.la
548 endif
549 endif
550
551 if USE_CHAPOLY
552   SUBDIRS += plugins/chapoly
553 if MONOLITHIC
554   libstrongswan_la_LIBADD += plugins/chapoly/libstrongswan-chapoly.la
555 endif
556 endif
557
558 if USE_CTR
559   SUBDIRS += plugins/ctr
560 if MONOLITHIC
561   libstrongswan_la_LIBADD += plugins/ctr/libstrongswan-ctr.la
562 endif
563 endif
564
565 if USE_CCM
566   SUBDIRS += plugins/ccm
567 if MONOLITHIC
568   libstrongswan_la_LIBADD += plugins/ccm/libstrongswan-ccm.la
569 endif
570 endif
571
572 if USE_GCM
573   SUBDIRS += plugins/gcm
574 if MONOLITHIC
575   libstrongswan_la_LIBADD += plugins/gcm/libstrongswan-gcm.la
576 endif
577 endif
578
579 if USE_NTRU
580   SUBDIRS += plugins/ntru
581 if MONOLITHIC
582   libstrongswan_la_LIBADD += plugins/ntru/libstrongswan-ntru.la
583 endif
584 endif
585
586 if USE_BLISS
587   SUBDIRS += plugins/bliss
588 if MONOLITHIC
589   libstrongswan_la_LIBADD += plugins/bliss/libstrongswan-bliss.la
590 endif
591 endif
592
593 if USE_TEST_VECTORS
594   SUBDIRS += plugins/test_vectors
595 if MONOLITHIC
596   libstrongswan_la_LIBADD += plugins/test_vectors/libstrongswan-test-vectors.la
597 endif
598 endif
599
600 if MONOLITHIC
601   SUBDIRS += .
602 endif
603 SUBDIRS += tests
604 if USE_BLISS
605   SUBDIRS += plugins/bliss/tests
606 endif