8302f43b0615f66d30a47ae9f88d22f8e91c3cf6
[openssl.git] / test / Makefile.ssl
1 #
2 # test/Makefile.ssl
3 #
4
5 DIR=            test
6 TOP=            ..
7 CC=             cc
8 INCLUDES=       -I$(TOP) -I../include $(KRB5_INCLUDES)
9 CFLAG=          -g
10 INSTALL_PREFIX=
11 OPENSSLDIR=     /usr/local/ssl
12 INSTALLTOP=     /usr/local/ssl
13 MAKEFILE=       Makefile.ssl
14 NEWMAKE=        make
15 MAKE=           $(NEWMAKE) -f $(MAKEFILE)
16 MAKEDEPPROG=    makedepend
17 MAKEDEPEND=     $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
18 PERL=           perl
19 # KRB5 stuff
20 KRB5_INCLUDES=
21 LIBKRB5=
22
23 PEX_LIBS=
24 EX_LIBS= #-lnsl -lsocket
25
26 CFLAGS= $(INCLUDES) $(CFLAG)
27
28 GENERAL=Makefile.ssl maketests.com \
29         tests.com testenc.com tx509.com trsa.com tcrl.com tsid.com treq.com \
30         tpkcs7.com tpkcs7d.com tverify.com testgen.com testss.com testssl.com \
31         testca.com VMSca-response.1 VMSca-response.2
32
33 DLIBCRYPTO= ../libcrypto.a
34 DLIBSSL= ../libssl.a
35 LIBCRYPTO= -L.. -lcrypto
36 LIBSSL= -L.. -lssl
37
38 BNTEST=         bntest
39 ECTEST=         ectest
40 ECDSATEST=      ecdsatest
41 ECDHTEST=       ecdhtest
42 EXPTEST=        exptest
43 IDEATEST=       ideatest
44 SHATEST=        shatest
45 SHA1TEST=       sha1test
46 SHA256TEST=     sha256t
47 SHA512TEST=     sha512t
48 MDC2TEST=       mdc2test
49 RMDTEST=        rmdtest
50 MD2TEST=        md2test
51 MD4TEST=        md4test
52 MD5TEST=        md5test
53 HMACTEST=       hmactest
54 RC2TEST=        rc2test
55 RC4TEST=        rc4test
56 RC5TEST=        rc5test
57 BFTEST=         bftest
58 CASTTEST=       casttest
59 DESTEST=        destest
60 RANDTEST=       randtest
61 DHTEST=         dhtest
62 DSATEST=        dsatest
63 METHTEST=       methtest
64 SSLTEST=        ssltest
65 RSATEST=        rsa_test
66 ENGINETEST=     enginetest
67 EVPTEST=        evp_test
68
69 TESTS=          alltests
70
71 EXE=    $(BNTEST)$(EXE_EXT) $(ECTEST)$(EXE_EXT)  $(ECDSATEST)$(EXE_EXT) $(ECDHTEST)$(EXE_EXT) $(IDEATEST)$(EXE_EXT) \
72         $(MD2TEST)$(EXE_EXT)  $(MD4TEST)$(EXE_EXT) $(MD5TEST)$(EXE_EXT) $(HMACTEST)$(EXE_EXT) \
73         $(RC2TEST)$(EXE_EXT) $(RC4TEST)$(EXE_EXT) $(RC5TEST)$(EXE_EXT) \
74         $(DESTEST)$(EXE_EXT) $(SHATEST)$(EXE_EXT) $(SHA1TEST)$(EXE_EXT) $(SHA256TEST)$(EXE_EXT) $(SHA512TEST)$(EXE_EXT) \
75         $(MDC2TEST)$(EXE_EXT) $(RMDTEST)$(EXE_EXT) \
76         $(RANDTEST)$(EXE_EXT) $(DHTEST)$(EXE_EXT) $(ENGINETEST)$(EXE_EXT) \
77         $(BFTEST)$(EXE_EXT) $(CASTTEST)$(EXE_EXT) $(SSLTEST)$(EXE_EXT) $(EXPTEST)$(EXE_EXT) $(DSATEST)$(EXE_EXT) $(RSATEST)$(EXE_EXT) \
78         $(EVPTEST)$(EXE_EXT)
79
80 # $(METHTEST)$(EXE_EXT)
81
82 OBJ=    $(BNTEST).o $(ECTEST).o  $(ECDSATEST).o $(ECDHTEST).o $(IDEATEST).o \
83         $(MD2TEST).o $(MD4TEST).o $(MD5TEST).o \
84         $(HMACTEST).o \
85         $(RC2TEST).o $(RC4TEST).o $(RC5TEST).o \
86         $(DESTEST).o $(SHATEST).o $(SHA1TEST).o $(SHA256TEST).o $(SHA512TEST).o \
87         $(MDC2TEST).o $(RMDTEST).o \
88         $(RANDTEST).o $(DHTEST).o $(ENGINETEST).o $(CASTTEST).o \
89         $(BFTEST).o  $(SSLTEST).o  $(DSATEST).o  $(EXPTEST).o $(RSATEST).o \
90         $(EVPTEST).o
91 SRC=    $(BNTEST).c $(ECTEST).c  $(ECDSATEST).c $(ECDHTEST).c $(IDEATEST).c \
92         $(MD2TEST).c  $(MD4TEST).c $(MD5TEST).c \
93         $(HMACTEST).c \
94         $(RC2TEST).c $(RC4TEST).c $(RC5TEST).c \
95         $(DESTEST).c $(SHATEST).c $(SHA1TEST).c $(MDC2TEST).c $(RMDTEST).c \
96         $(RANDTEST).c $(DHTEST).c $(ENGINETEST).c $(CASTTEST).c \
97         $(BFTEST).c  $(SSLTEST).c $(DSATEST).c   $(EXPTEST).c $(RSATEST).c \
98         $(EVPTEST).c
99
100 EXHEADER= 
101 HEADER= $(EXHEADER)
102
103 ALL=    $(GENERAL) $(SRC) $(HEADER)
104
105 top:
106         (cd ..; $(MAKE) DIRS=$(DIR) TESTS=$(TESTS) all)
107
108 all:    exe
109
110 exe:    $(EXE) dummytest$(EXE_EXT)
111
112 files:
113         $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
114
115 links:
116         @sh $(TOP)/util/point.sh Makefile.ssl Makefile
117
118 generate: $(SRC)
119 $(SRC):
120         @sh $(TOP)/util/point.sh dummytest.c $@
121
122 errors:
123
124 install:
125
126 tags:
127         ctags $(SRC)
128
129 tests:  exe apps $(TESTS)
130
131 apps:
132         @(cd ..; $(MAKE) DIRS=apps all)
133
134 SET_SO_PATHS=\
135         if [ -n "$(SHARED_LIBS)" ]; then \
136           OSSL_LIBPATH="`cd ..; pwd`"; \
137           LD_LIBRARY_PATH="$$OSSL_LIBPATH:$$LD_LIBRARY_PATH"; \
138           DYLD_LIBRARY_PATH="$$OSSL_LIBPATH:$$DYLD_LIBRARY_PATH"; \
139           SHLIB_PATH="$$OSSL_LIBPATH:$$SHLIB_PATH"; \
140           LIBPATH="$$OSSL_LIBPATH:$$LIBPATH"; \
141           if [ "$(PLATFORM)" = "Cygwin" ]; then \
142             PATH="$${LIBPATH}:$$PATH"; \
143           fi; \
144           LD_PRELOAD="$$OSSL_LIBPATH/libssl.so $$OSSL_LIBPATH/libcrypto.so"; \
145           export LD_LIBRARY_PATH DYLD_LIBRARY_PATH SHLIB_PATH LIBPATH PATH; \
146           export LD_PRELOAD; \
147         fi
148
149 alltests: \
150         test_des test_idea test_sha test_md4 test_md5 test_hmac \
151         test_md2 test_mdc2 \
152         test_rmd test_rc2 test_rc4 test_rc5 test_bf test_cast test_aes \
153         test_rand test_bn test_ec test_ecdsa test_ecdh \
154         test_enc test_x509 test_rsa test_crl test_sid \
155         test_gen test_req test_pkcs7 test_verify test_dh test_dsa \
156         test_ss test_ca test_engine test_evp test_ssl
157
158 test_evp:
159         $(SET_SO_PATHS); ./$(EVPTEST) evptests.txt
160
161 test_des:
162         $(SET_SO_PATHS); ./$(DESTEST)
163
164 test_idea:
165         $(SET_SO_PATHS); ./$(IDEATEST)
166
167 test_sha:
168         $(SET_SO_PATHS); ./$(SHATEST)
169         $(SET_SO_PATHS); ./$(SHA1TEST)
170         $(SET_SO_PATHS); ./$(SHA256TEST)
171         $(SET_SO_PATHS); ./$(SHA512TEST)
172
173 test_mdc2:
174         $(SET_SO_PATHS); ./$(MDC2TEST)
175
176 test_md5:
177         $(SET_SO_PATHS); ./$(MD5TEST)
178
179 test_md4:
180         $(SET_SO_PATHS); ./$(MD4TEST)
181
182 test_hmac:
183         $(SET_SO_PATHS); ./$(HMACTEST)
184
185 test_md2:
186         $(SET_SO_PATHS); ./$(MD2TEST)
187
188 test_rmd:
189         $(SET_SO_PATHS); ./$(RMDTEST)
190
191 test_bf:
192         $(SET_SO_PATHS); ./$(BFTEST)
193
194 test_cast:
195         $(SET_SO_PATHS); ./$(CASTTEST)
196
197 test_rc2:
198         $(SET_SO_PATHS); ./$(RC2TEST)
199
200 test_rc4:
201         $(SET_SO_PATHS); ./$(RC4TEST)
202
203 test_rc5:
204         $(SET_SO_PATHS); ./$(RC5TEST)
205
206 test_rand:
207         $(SET_SO_PATHS); ./$(RANDTEST)
208
209 test_enc:
210         @$(SET_SO_PATHS); sh ./testenc
211
212 test_x509:
213         echo test normal x509v1 certificate
214         $(SET_SO_PATHS); sh ./tx509 2>/dev/null
215         echo test first x509v3 certificate
216         $(SET_SO_PATHS); sh ./tx509 v3-cert1.pem 2>/dev/null
217         echo test second x509v3 certificate
218         $(SET_SO_PATHS); sh ./tx509 v3-cert2.pem 2>/dev/null
219
220 test_rsa:
221         @$(SET_SO_PATHS); sh ./trsa 2>/dev/null
222         $(SET_SO_PATHS); ./$(RSATEST)
223
224 test_crl:
225         @$(SET_SO_PATHS); sh ./tcrl 2>/dev/null
226
227 test_sid:
228         @$(SET_SO_PATHS); sh ./tsid 2>/dev/null
229
230 test_req:
231         @$(SET_SO_PATHS); sh ./treq 2>/dev/null
232         @$(SET_SO_PATHS); sh ./treq testreq2.pem 2>/dev/null
233
234 test_pkcs7:
235         @$(SET_SO_PATHS); sh ./tpkcs7 2>/dev/null
236         @$(SET_SO_PATHS); sh ./tpkcs7d 2>/dev/null
237
238 test_bn:
239         @echo starting big number library test, could take a while...
240         @$(SET_SO_PATHS); ./$(BNTEST) >tmp.bntest
241         @echo quit >>tmp.bntest
242         @echo "running bc"
243         @<tmp.bntest sh -c "`sh ./bctest ignore`" | $(PERL) -e '$$i=0; while (<STDIN>) {if (/^test (.*)/) {print STDERR "\nverify $$1";} elsif (!/^0$$/) {die "\nFailed! bc: $$_";} else {print STDERR "."; $$i++;}} print STDERR "\n$$i tests passed\n"'
244         @echo 'test a^b%c implementations'
245         $(SET_SO_PATHS); ./$(EXPTEST)
246
247 test_ec:
248         @echo 'test elliptic curves'
249         $(SET_SO_PATHS); ./$(ECTEST)
250
251 test_ecdsa:
252         @echo 'test ecdsa'
253         $(SET_SO_PATHS); ./$(ECDSATEST)
254
255 test_ecdh:
256         @echo 'test ecdh'
257         $(SET_SO_PATHS); ./$(ECDHTEST)
258
259 test_verify:
260         @echo "The following command should have some OK's and some failures"
261         @echo "There are definitly a few expired certificates"
262         $(SET_SO_PATHS); ../apps/openssl verify -CApath ../certs ../certs/*.pem
263
264 test_dh:
265         @echo "Generate a set of DH parameters"
266         $(SET_SO_PATHS); ./$(DHTEST)
267
268 test_dsa:
269         @echo "Generate a set of DSA parameters"
270         $(SET_SO_PATHS); ./$(DSATEST)
271         $(SET_SO_PATHS); ./$(DSATEST) -app2_1
272
273 test_gen:
274         @echo "Generate and verify a certificate request"
275         @$(SET_SO_PATHS); sh ./testgen
276
277 test_ss keyU.ss certU.ss certCA.ss certP1.ss keyP1.ss certP2.ss keyP2.ss \
278                 intP1.ss intP2.ss: testss
279         @echo "Generate and certify a test certificate"
280         @$(SET_SO_PATHS); sh ./testss
281         @cat certCA.ss certU.ss > intP1.ss
282         @cat certCA.ss certU.ss certP1.ss > intP2.ss
283
284 test_engine: 
285         @echo "Manipulate the ENGINE structures"
286         $(SET_SO_PATHS); ./$(ENGINETEST)
287
288 test_ssl: keyU.ss certU.ss certCA.ss certP1.ss keyP1.ss certP2.ss keyP2.ss \
289                 intP1.ss intP2.ss
290         @echo "test SSL protocol"
291         @$(SET_SO_PATHS); sh ./testssl keyU.ss certU.ss certCA.ss
292         @$(SET_SO_PATHS); sh ./testsslproxy keyP1.ss certP1.ss intP1.ss
293         @$(SET_SO_PATHS); sh ./testsslproxy keyP2.ss certP2.ss intP2.ss
294
295 test_ca:
296         @$(SET_SO_PATHS); if ../apps/openssl no-rsa; then \
297           echo "skipping CA.sh test -- requires RSA"; \
298         else \
299           echo "Generate and certify a test certificate via the 'ca' program"; \
300           sh ./testca; \
301         fi
302
303 test_aes: #$(AESTEST)
304 #       @echo "test Rijndael"
305 #       $(SET_SO_PATHS); ./$(AESTEST)
306
307 lint:
308         lint -DLINT $(INCLUDES) $(SRC)>fluff
309
310 depend:
311         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(SRC)
312
313 dclean:
314         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
315         mv -f Makefile.new $(MAKEFILE)
316
317 clean:
318         rm -f .rnd tmp.bntest tmp.bctest *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff $(EXE) *.ss *.srl log
319
320 $(DLIBSSL):
321         (cd ..; $(MAKE) DIRS=ssl all)
322
323 $(DLIBCRYPTO):
324         (cd ..; $(MAKE) DIRS=crypto all)
325
326 $(RSATEST)$(EXE_EXT): $(RSATEST).o $(DLIBCRYPTO)
327         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
328                 shlib_target="$(SHLIB_TARGET)"; \
329         fi; \
330         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
331           LIBRARIES="$(DLIBCRYPTO)"; \
332         else \
333           LIBRARIES="$(LIBCRYPTO)"; \
334         fi; \
335         $(NEWMAKE) -f $(TOP)/Makefile.shared \
336                 APPNAME=$(RSATEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(LDFLAGS)" \
337                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
338                 OBJECTS="$(RSATEST).o" \
339                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
340                 LIBRPATH=$(INSTALLTOP)/lib \
341                 link_app.$${shlib_target}
342
343 $(BNTEST)$(EXE_EXT): $(BNTEST).o $(DLIBCRYPTO)
344         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
345                 shlib_target="$(SHLIB_TARGET)"; \
346         fi; \
347         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
348           LIBRARIES="$(DLIBCRYPTO)"; \
349         else \
350           LIBRARIES="$(LIBCRYPTO)"; \
351         fi; \
352         $(NEWMAKE) -f $(TOP)/Makefile.shared \
353                 APPNAME=$(BNTEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
354                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
355                 OBJECTS="$(BNTEST).o" \
356                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
357                 LIBRPATH=$(INSTALLTOP)/lib \
358                 link_app.$${shlib_target}
359
360 $(ECTEST)$(EXE_EXT): $(ECTEST).o $(DLIBCRYPTO)
361         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
362                 shlib_target="$(SHLIB_TARGET)"; \
363         fi; \
364         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
365           LIBRARIES="$(DLIBCRYPTO)"; \
366         else \
367           LIBRARIES="$(LIBCRYPTO)"; \
368         fi; \
369         $(NEWMAKE) -f $(TOP)/Makefile.shared \
370                 APPNAME=$(ECTEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
371                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
372                 OBJECTS="$(ECTEST).o" \
373                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
374                 LIBRPATH=$(INSTALLTOP)/lib \
375                 link_app.$${shlib_target}
376
377 $(EXPTEST)$(EXE_EXT): $(EXPTEST).o $(DLIBCRYPTO)
378         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
379                 shlib_target="$(SHLIB_TARGET)"; \
380         fi; \
381         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
382           LIBRARIES="$(DLIBCRYPTO)"; \
383         else \
384           LIBRARIES="$(LIBCRYPTO)"; \
385         fi; \
386         $(NEWMAKE) -f $(TOP)/Makefile.shared \
387                 APPNAME=$(EXPTEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
388                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
389                 OBJECTS="$(EXPTEST).o" \
390                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
391                 LIBRPATH=$(INSTALLTOP)/lib \
392                 link_app.$${shlib_target}
393
394 $(IDEATEST)$(EXE_EXT): $(IDEATEST).o $(DLIBCRYPTO)
395         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
396                 shlib_target="$(SHLIB_TARGET)"; \
397         fi; \
398         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
399           LIBRARIES="$(DLIBCRYPTO)"; \
400         else \
401           LIBRARIES="$(LIBCRYPTO)"; \
402         fi; \
403         $(NEWMAKE) -f $(TOP)/Makefile.shared \
404                 APPNAME=$(IDEATEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
405                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
406                 OBJECTS="$(IDEATEST).o" \
407                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
408                 LIBRPATH=$(INSTALLTOP)/lib \
409                 link_app.$${shlib_target}
410
411 $(MD2TEST)$(EXE_EXT): $(MD2TEST).o $(DLIBCRYPTO)
412         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
413                 shlib_target="$(SHLIB_TARGET)"; \
414         fi; \
415         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
416           LIBRARIES="$(DLIBCRYPTO)"; \
417         else \
418           LIBRARIES="$(LIBCRYPTO)"; \
419         fi; \
420         $(NEWMAKE) -f $(TOP)/Makefile.shared \
421                 APPNAME=$(MD2TEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
422                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
423                 OBJECTS="$(MD2TEST).o" \
424                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
425                 LIBRPATH=$(INSTALLTOP)/lib \
426                 link_app.$${shlib_target}
427
428 $(SHATEST)$(EXE_EXT): $(SHATEST).o $(DLIBCRYPTO)
429         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
430                 shlib_target="$(SHLIB_TARGET)"; \
431         fi; \
432         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
433           LIBRARIES="$(DLIBCRYPTO)"; \
434         else \
435           LIBRARIES="$(LIBCRYPTO)"; \
436         fi; \
437         $(NEWMAKE) -f $(TOP)/Makefile.shared \
438                 APPNAME=$(SHATEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
439                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
440                 OBJECTS="$(SHATEST).o" \
441                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
442                 LIBRPATH=$(INSTALLTOP)/lib \
443                 link_app.$${shlib_target}
444
445 $(SHA1TEST)$(EXE_EXT): $(SHA1TEST).o $(DLIBCRYPTO)
446         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
447                 shlib_target="$(SHLIB_TARGET)"; \
448         fi; \
449         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
450           LIBRARIES="$(DLIBCRYPTO)"; \
451         else \
452           LIBRARIES="$(LIBCRYPTO)"; \
453         fi; \
454         $(NEWMAKE) -f $(TOP)/Makefile.shared \
455                 APPNAME=$(SHA1TEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
456                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
457                 OBJECTS="$(SHA1TEST).o" \
458                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
459                 LIBRPATH=$(INSTALLTOP)/lib \
460                 link_app.$${shlib_target}
461
462 $(SHA256TEST)$(EXE_EXT): $(SHA256TEST).o $(DLIBCRYPTO)
463         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
464                 shlib_target="$(SHLIB_TARGET)"; \
465         fi; \
466         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
467           LIBRARIES="$(DLIBCRYPTO)"; \
468         else \
469           LIBRARIES="$(LIBCRYPTO)"; \
470         fi; \
471         $(NEWMAKE) -f $(TOP)/Makefile.shared \
472                 APPNAME=$(SHA256TEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
473                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
474                 OBJECTS="$(SHA256TEST).o" \
475                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
476                 LIBRPATH=$(INSTALLTOP)/lib \
477                 link_app.$${shlib_target}
478
479 $(SHA512TEST)$(EXE_EXT): $(SHA512TEST).o $(DLIBCRYPTO)
480         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
481                 shlib_target="$(SHLIB_TARGET)"; \
482         fi; \
483         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
484           LIBRARIES="$(DLIBCRYPTO)"; \
485         else \
486           LIBRARIES="$(LIBCRYPTO)"; \
487         fi; \
488         $(NEWMAKE) -f $(TOP)/Makefile.shared \
489                 APPNAME=$(SHA512TEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
490                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
491                 OBJECTS="$(SHA512TEST).o" \
492                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
493                 LIBRPATH=$(INSTALLTOP)/lib \
494                 link_app.$${shlib_target}
495
496 $(RMDTEST)$(EXE_EXT): $(RMDTEST).o $(DLIBCRYPTO)
497         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
498                 shlib_target="$(SHLIB_TARGET)"; \
499         fi; \
500         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
501           LIBRARIES="$(DLIBCRYPTO)"; \
502         else \
503           LIBRARIES="$(LIBCRYPTO)"; \
504         fi; \
505         $(NEWMAKE) -f $(TOP)/Makefile.shared \
506                 APPNAME=$(RMDTEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
507                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
508                 OBJECTS="$(RMDTEST).o" \
509                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
510                 LIBRPATH=$(INSTALLTOP)/lib \
511                 link_app.$${shlib_target}
512
513 $(MDC2TEST)$(EXE_EXT): $(MDC2TEST).o $(DLIBCRYPTO)
514         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
515                 shlib_target="$(SHLIB_TARGET)"; \
516         fi; \
517         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
518           LIBRARIES="$(DLIBCRYPTO)"; \
519         else \
520           LIBRARIES="$(LIBCRYPTO)"; \
521         fi; \
522         $(NEWMAKE) -f $(TOP)/Makefile.shared \
523                 APPNAME=$(MDC2TEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
524                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
525                 OBJECTS="$(MDC2TEST).o" \
526                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
527                 LIBRPATH=$(INSTALLTOP)/lib \
528                 link_app.$${shlib_target}
529
530 $(MD4TEST)$(EXE_EXT): $(MD4TEST).o $(DLIBCRYPTO)
531         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
532                 shlib_target="$(SHLIB_TARGET)"; \
533         fi; \
534         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
535           LIBRARIES="$(DLIBCRYPTO)"; \
536         else \
537           LIBRARIES="$(LIBCRYPTO)"; \
538         fi; \
539         $(NEWMAKE) -f $(TOP)/Makefile.shared \
540                 APPNAME=$(MD4TEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
541                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
542                 OBJECTS="$(MD4TEST).o" \
543                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
544                 LIBRPATH=$(INSTALLTOP)/lib \
545                 link_app.$${shlib_target}
546
547 $(MD5TEST)$(EXE_EXT): $(MD5TEST).o $(DLIBCRYPTO)
548         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
549                 shlib_target="$(SHLIB_TARGET)"; \
550         fi; \
551         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
552           LIBRARIES="$(DLIBCRYPTO)"; \
553         else \
554           LIBRARIES="$(LIBCRYPTO)"; \
555         fi; \
556         $(NEWMAKE) -f $(TOP)/Makefile.shared \
557                 APPNAME=$(MD5TEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
558                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
559                 OBJECTS="$(MD5TEST).o" \
560                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
561                 LIBRPATH=$(INSTALLTOP)/lib \
562                 link_app.$${shlib_target}
563
564 $(HMACTEST)$(EXE_EXT): $(HMACTEST).o $(DLIBCRYPTO)
565         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
566                 shlib_target="$(SHLIB_TARGET)"; \
567         fi; \
568         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
569           LIBRARIES="$(DLIBCRYPTO)"; \
570         else \
571           LIBRARIES="$(LIBCRYPTO)"; \
572         fi; \
573         $(NEWMAKE) -f $(TOP)/Makefile.shared \
574                 APPNAME=$(HMACTEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
575                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
576                 OBJECTS="$(HMACTEST).o" \
577                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
578                 LIBRPATH=$(INSTALLTOP)/lib \
579                 link_app.$${shlib_target}
580
581 $(RC2TEST)$(EXE_EXT): $(RC2TEST).o $(DLIBCRYPTO)
582         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
583                 shlib_target="$(SHLIB_TARGET)"; \
584         fi; \
585         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
586           LIBRARIES="$(DLIBCRYPTO)"; \
587         else \
588           LIBRARIES="$(LIBCRYPTO)"; \
589         fi; \
590         $(NEWMAKE) -f $(TOP)/Makefile.shared \
591                 APPNAME=$(RC2TEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
592                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
593                 OBJECTS="$(RC2TEST).o" \
594                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
595                 LIBRPATH=$(INSTALLTOP)/lib \
596                 link_app.$${shlib_target}
597
598 $(BFTEST)$(EXE_EXT): $(BFTEST).o $(DLIBCRYPTO)
599         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
600                 shlib_target="$(SHLIB_TARGET)"; \
601         fi; \
602         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
603           LIBRARIES="$(DLIBCRYPTO)"; \
604         else \
605           LIBRARIES="$(LIBCRYPTO)"; \
606         fi; \
607         $(NEWMAKE) -f $(TOP)/Makefile.shared \
608                 APPNAME=$(BFTEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
609                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
610                 OBJECTS="$(BFTEST).o" \
611                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
612                 LIBRPATH=$(INSTALLTOP)/lib \
613                 link_app.$${shlib_target}
614
615 $(CASTTEST)$(EXE_EXT): $(CASTTEST).o $(DLIBCRYPTO)
616         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
617                 shlib_target="$(SHLIB_TARGET)"; \
618         fi; \
619         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
620           LIBRARIES="$(DLIBCRYPTO)"; \
621         else \
622           LIBRARIES="$(LIBCRYPTO)"; \
623         fi; \
624         $(NEWMAKE) -f $(TOP)/Makefile.shared \
625                 APPNAME=$(CASTTEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
626                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
627                 OBJECTS="$(CASTTEST).o" \
628                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
629                 LIBRPATH=$(INSTALLTOP)/lib \
630                 link_app.$${shlib_target}
631
632 $(RC4TEST)$(EXE_EXT): $(RC4TEST).o $(DLIBCRYPTO)
633         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
634                 shlib_target="$(SHLIB_TARGET)"; \
635         fi; \
636         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
637           LIBRARIES="$(DLIBCRYPTO)"; \
638         else \
639           LIBRARIES="$(LIBCRYPTO)"; \
640         fi; \
641         $(NEWMAKE) -f $(TOP)/Makefile.shared \
642                 APPNAME=$(RC4TEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
643                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
644                 OBJECTS="$(RC4TEST).o" \
645                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
646                 LIBRPATH=$(INSTALLTOP)/lib \
647                 link_app.$${shlib_target}
648
649 $(RC5TEST)$(EXE_EXT): $(RC5TEST).o $(DLIBCRYPTO)
650         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
651                 shlib_target="$(SHLIB_TARGET)"; \
652         fi; \
653         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
654           LIBRARIES="$(DLIBCRYPTO)"; \
655         else \
656           LIBRARIES="$(LIBCRYPTO)"; \
657         fi; \
658         $(NEWMAKE) -f $(TOP)/Makefile.shared \
659                 APPNAME=$(RC5TEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
660                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
661                 OBJECTS="$(RC5TEST).o" \
662                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
663                 LIBRPATH=$(INSTALLTOP)/lib \
664                 link_app.$${shlib_target}
665
666 $(DESTEST)$(EXE_EXT): $(DESTEST).o $(DLIBCRYPTO)
667         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
668                 shlib_target="$(SHLIB_TARGET)"; \
669         fi; \
670         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
671           LIBRARIES="$(DLIBCRYPTO)"; \
672         else \
673           LIBRARIES="$(LIBCRYPTO)"; \
674         fi; \
675         $(NEWMAKE) -f $(TOP)/Makefile.shared \
676                 APPNAME=$(DESTEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
677                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
678                 OBJECTS="$(DESTEST).o" \
679                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
680                 LIBRPATH=$(INSTALLTOP)/lib \
681                 link_app.$${shlib_target}
682
683 $(RANDTEST)$(EXE_EXT): $(RANDTEST).o $(DLIBCRYPTO)
684         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
685                 shlib_target="$(SHLIB_TARGET)"; \
686         fi; \
687         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
688           LIBRARIES="$(DLIBCRYPTO)"; \
689         else \
690           LIBRARIES="$(LIBCRYPTO)"; \
691         fi; \
692         $(NEWMAKE) -f $(TOP)/Makefile.shared \
693                 APPNAME=$(RANDTEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
694                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
695                 OBJECTS="$(RANDTEST).o" \
696                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
697                 LIBRPATH=$(INSTALLTOP)/lib \
698                 link_app.$${shlib_target}
699
700 $(DHTEST)$(EXE_EXT): $(DHTEST).o $(DLIBCRYPTO)
701         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
702                 shlib_target="$(SHLIB_TARGET)"; \
703         fi; \
704         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
705           LIBRARIES="$(DLIBCRYPTO)"; \
706         else \
707           LIBRARIES="$(LIBCRYPTO)"; \
708         fi; \
709         $(NEWMAKE) -f $(TOP)/Makefile.shared \
710                 APPNAME=$(DHTEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
711                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
712                 OBJECTS="$(DHTEST).o" \
713                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
714                 LIBRPATH=$(INSTALLTOP)/lib \
715                 link_app.$${shlib_target}
716
717 $(DSATEST)$(EXE_EXT): $(DSATEST).o $(DLIBCRYPTO)
718         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
719                 shlib_target="$(SHLIB_TARGET)"; \
720         fi; \
721         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
722           LIBRARIES="$(DLIBCRYPTO)"; \
723         else \
724           LIBRARIES="$(LIBCRYPTO)"; \
725         fi; \
726         $(NEWMAKE) -f $(TOP)/Makefile.shared \
727                 APPNAME=$(DSATEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
728                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
729                 OBJECTS="$(DSATEST).o" \
730                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
731                 LIBRPATH=$(INSTALLTOP)/lib \
732                 link_app.$${shlib_target}
733
734 $(METHTEST)$(EXE_EXT): $(METHTEST).o $(DLIBCRYPTO)
735         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
736                 shlib_target="$(SHLIB_TARGET)"; \
737         fi; \
738         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
739           LIBRARIES="$(DLIBCRYPTO)"; \
740         else \
741           LIBRARIES="$(LIBCRYPTO)"; \
742         fi; \
743         $(NEWMAKE) -f $(TOP)/Makefile.shared \
744                 APPNAME=$(METHTEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
745                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
746                 OBJECTS="$(METHTEST).o" \
747                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
748                 LIBRPATH=$(INSTALLTOP)/lib \
749                 link_app.$${shlib_target}
750
751 $(SSLTEST)$(EXE_EXT): $(SSLTEST).o $(DLIBSSL) $(DLIBCRYPTO)
752         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
753                 shlib_target="$(SHLIB_TARGET)"; \
754         fi; \
755         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
756           LIBRARIES="$(DLIBSSL) $(LIBKRB5) $(DLIBCRYPTO)"; \
757         else \
758           LIBRARIES="$(LIBSSL) $(LIBKRB5) $(LIBCRYPTO)"; \
759         fi; \
760         $(NEWMAKE) -f $(TOP)/Makefile.shared \
761                 APPNAME=$(SSLTEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
762                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
763                 OBJECTS="$(SSLTEST).o" \
764                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
765                 LIBRPATH=$(INSTALLTOP)/lib \
766                 link_app.$${shlib_target}
767
768 $(ENGINETEST)$(EXE_EXT): $(ENGINETEST).o $(DLIBCRYPTO)
769         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
770                 shlib_target="$(SHLIB_TARGET)"; \
771         fi; \
772         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
773           LIBRARIES="$(DLIBCRYPTO)"; \
774         else \
775           LIBRARIES="$(LIBCRYPTO)"; \
776         fi; \
777         $(NEWMAKE) -f $(TOP)/Makefile.shared \
778                 APPNAME=$(ENGINETEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
779                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
780                 OBJECTS="$(ENGINETEST).o" \
781                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
782                 LIBRPATH=$(INSTALLTOP)/lib \
783                 link_app.$${shlib_target}
784
785 $(EVPTEST)$(EXE_EXT): $(EVPTEST).o $(DLIBCRYPTO)
786         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
787                 shlib_target="$(SHLIB_TARGET)"; \
788         fi; \
789         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
790           LIBRARIES="$(DLIBCRYPTO)"; \
791         else \
792           LIBRARIES="$(LIBCRYPTO)"; \
793         fi; \
794         $(NEWMAKE) -f $(TOP)/Makefile.shared \
795                 APPNAME=$(EVPTEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
796                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
797                 OBJECTS="$(EVPTEST).o" \
798                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
799                 LIBRPATH=$(INSTALLTOP)/lib \
800                 link_app.$${shlib_target}
801
802 $(ECDSATEST)$(EXE_EXT): $(ECDSATEST).o $(DLIBCRYPTO)
803         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
804                 shlib_target="$(SHLIB_TARGET)"; \
805         fi; \
806         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
807           LIBRARIES="$(DLIBCRYPTO)"; \
808         else \
809           LIBRARIES="$(LIBCRYPTO)"; \
810         fi; \
811         $(NEWMAKE) -f $(TOP)/Makefile.shared \
812                 APPNAME=$(ECDSATEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
813                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
814                 OBJECTS="$(ECDSATEST).o" \
815                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
816                 LIBRPATH=$(INSTALLTOP)/lib \
817                 link_app.$${shlib_target}
818
819 $(ECDHTEST)$(EXE_EXT): $(ECDHTEST).o $(DLIBCRYPTO)
820         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
821                 shlib_target="$(SHLIB_TARGET)"; \
822         fi; \
823         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
824           LIBRARIES="$(DLIBCRYPTO)"; \
825         else \
826           LIBRARIES="$(LIBCRYPTO)"; \
827         fi; \
828         $(NEWMAKE) -f $(TOP)/Makefile.shared \
829                 APPNAME=$(ECDHTEST)$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
830                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
831                 OBJECTS="$(ECDHTEST).o" \
832                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
833                 LIBRPATH=$(INSTALLTOP)/lib \
834                 link_app.$${shlib_target}
835
836 #$(AESTEST).o: $(AESTEST).c
837 #       $(CC) -c $(CFLAGS) -DINTERMEDIATE_VALUE_KAT -DTRACE_KAT_MCT $(AESTEST).c
838
839 #$(AESTEST)$(EXE_EXT): $(AESTEST).o $(DLIBCRYPTO)
840 #       if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
841 #         $(CC) -o $(AESTEST)$(EXE_EXT) $(CFLAGS) $(AESTEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
842 #       else \
843 #         $(CC) -o $(AESTEST)$(EXE_EXT) $(CFLAGS) $(AESTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
844 #       fi
845
846 dummytest$(EXE_EXT): dummytest.o $(DLIBCRYPTO)
847         shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
848                 shlib_target="$(SHLIB_TARGET)"; \
849         fi; \
850         if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
851           LIBRARIES="$(DLIBCRYPTO)"; \
852         else \
853           LIBRARIES="$(LIBCRYPTO)"; \
854         fi; \
855         $(NEWMAKE) -f $(TOP)/Makefile.shared \
856                 APPNAME=dummytest$(EXE_EXT) CC="$(CC)" LDFLAGS="$(CFLAGS)" \
857                 SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
858                 OBJECTS="dummytest.o" \
859                 LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
860                 LIBRPATH=$(INSTALLTOP)/lib \
861                 link_app.$${shlib_target}
862
863 # DO NOT DELETE THIS LINE -- make depend depends on it.
864
865 bftest.o: ../e_os.h ../include/openssl/blowfish.h ../include/openssl/e_os2.h
866 bftest.o: ../include/openssl/opensslconf.h bftest.c
867 bntest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
868 bntest.o: ../include/openssl/bn.h ../include/openssl/buffer.h
869 bntest.o: ../include/openssl/crypto.h ../include/openssl/dh.h
870 bntest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
871 bntest.o: ../include/openssl/ec.h ../include/openssl/ecdh.h
872 bntest.o: ../include/openssl/ecdsa.h ../include/openssl/err.h
873 bntest.o: ../include/openssl/evp.h ../include/openssl/lhash.h
874 bntest.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
875 bntest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
876 bntest.o: ../include/openssl/ossl_typ.h ../include/openssl/pkcs7.h
877 bntest.o: ../include/openssl/rand.h ../include/openssl/rsa.h
878 bntest.o: ../include/openssl/safestack.h ../include/openssl/sha.h
879 bntest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
880 bntest.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h bntest.c
881 casttest.o: ../e_os.h ../include/openssl/cast.h ../include/openssl/e_os2.h
882 casttest.o: ../include/openssl/opensslconf.h casttest.c
883 destest.o: ../include/openssl/des.h ../include/openssl/des_old.h
884 destest.o: ../include/openssl/e_os2.h ../include/openssl/opensslconf.h
885 destest.o: ../include/openssl/ossl_typ.h ../include/openssl/safestack.h
886 destest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
887 destest.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h destest.c
888 dhtest.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/bn.h
889 dhtest.o: ../include/openssl/crypto.h ../include/openssl/dh.h
890 dhtest.o: ../include/openssl/e_os2.h ../include/openssl/err.h
891 dhtest.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
892 dhtest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
893 dhtest.o: ../include/openssl/rand.h ../include/openssl/safestack.h
894 dhtest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h dhtest.c
895 dsatest.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/bn.h
896 dsatest.o: ../include/openssl/crypto.h ../include/openssl/dh.h
897 dsatest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
898 dsatest.o: ../include/openssl/err.h ../include/openssl/lhash.h
899 dsatest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
900 dsatest.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h
901 dsatest.o: ../include/openssl/safestack.h ../include/openssl/stack.h
902 dsatest.o: ../include/openssl/symhacks.h dsatest.c
903 ecdhtest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
904 ecdhtest.o: ../include/openssl/bn.h ../include/openssl/crypto.h
905 ecdhtest.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
906 ecdhtest.o: ../include/openssl/ecdh.h ../include/openssl/err.h
907 ecdhtest.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h
908 ecdhtest.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
909 ecdhtest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
910 ecdhtest.o: ../include/openssl/rand.h ../include/openssl/safestack.h
911 ecdhtest.o: ../include/openssl/sha.h ../include/openssl/stack.h
912 ecdhtest.o: ../include/openssl/symhacks.h ecdhtest.c
913 ecdsatest.o: ../include/openssl/asn1.h ../include/openssl/bio.h
914 ecdsatest.o: ../include/openssl/bn.h ../include/openssl/buffer.h
915 ecdsatest.o: ../include/openssl/crypto.h ../include/openssl/dh.h
916 ecdsatest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
917 ecdsatest.o: ../include/openssl/ec.h ../include/openssl/ecdh.h
918 ecdsatest.o: ../include/openssl/ecdsa.h ../include/openssl/engine.h
919 ecdsatest.o: ../include/openssl/err.h ../include/openssl/evp.h
920 ecdsatest.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h
921 ecdsatest.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
922 ecdsatest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
923 ecdsatest.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
924 ecdsatest.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
925 ecdsatest.o: ../include/openssl/sha.h ../include/openssl/stack.h
926 ecdsatest.o: ../include/openssl/store.h ../include/openssl/symhacks.h
927 ecdsatest.o: ../include/openssl/ui.h ../include/openssl/x509.h
928 ecdsatest.o: ../include/openssl/x509_vfy.h ecdsatest.c
929 ectest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
930 ectest.o: ../include/openssl/bn.h ../include/openssl/crypto.h
931 ectest.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
932 ectest.o: ../include/openssl/engine.h ../include/openssl/err.h
933 ectest.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h
934 ectest.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
935 ectest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
936 ectest.o: ../include/openssl/rand.h ../include/openssl/safestack.h
937 ectest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h ectest.c
938 enginetest.o: ../include/openssl/bio.h ../include/openssl/buffer.h
939 enginetest.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
940 enginetest.o: ../include/openssl/engine.h ../include/openssl/err.h
941 enginetest.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
942 enginetest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
943 enginetest.o: ../include/openssl/safestack.h ../include/openssl/stack.h
944 enginetest.o: ../include/openssl/symhacks.h enginetest.c
945 evp_test.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
946 evp_test.o: ../include/openssl/conf.h ../include/openssl/crypto.h
947 evp_test.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
948 evp_test.o: ../include/openssl/err.h ../include/openssl/evp.h
949 evp_test.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h
950 evp_test.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
951 evp_test.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
952 evp_test.o: ../include/openssl/safestack.h ../include/openssl/stack.h
953 evp_test.o: ../include/openssl/symhacks.h evp_test.c
954 exptest.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/bn.h
955 exptest.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
956 exptest.o: ../include/openssl/err.h ../include/openssl/lhash.h
957 exptest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
958 exptest.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h
959 exptest.o: ../include/openssl/safestack.h ../include/openssl/stack.h
960 exptest.o: ../include/openssl/symhacks.h exptest.c
961 hmactest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
962 hmactest.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
963 hmactest.o: ../include/openssl/evp.h ../include/openssl/hmac.h
964 hmactest.o: ../include/openssl/md5.h ../include/openssl/obj_mac.h
965 hmactest.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
966 hmactest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
967 hmactest.o: ../include/openssl/safestack.h ../include/openssl/stack.h
968 hmactest.o: ../include/openssl/symhacks.h hmactest.c
969 ideatest.o: ../e_os.h ../include/openssl/e_os2.h ../include/openssl/idea.h
970 ideatest.o: ../include/openssl/opensslconf.h ideatest.c
971 md2test.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
972 md2test.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
973 md2test.o: ../include/openssl/evp.h ../include/openssl/md2.h
974 md2test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
975 md2test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
976 md2test.o: ../include/openssl/ossl_typ.h ../include/openssl/safestack.h
977 md2test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h md2test.c
978 md4test.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
979 md4test.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
980 md4test.o: ../include/openssl/evp.h ../include/openssl/md4.h
981 md4test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
982 md4test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
983 md4test.o: ../include/openssl/ossl_typ.h ../include/openssl/safestack.h
984 md4test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h md4test.c
985 md5test.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
986 md5test.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
987 md5test.o: ../include/openssl/evp.h ../include/openssl/md5.h
988 md5test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
989 md5test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
990 md5test.o: ../include/openssl/ossl_typ.h ../include/openssl/safestack.h
991 md5test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h md5test.c
992 mdc2test.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
993 mdc2test.o: ../include/openssl/crypto.h ../include/openssl/des.h
994 mdc2test.o: ../include/openssl/des_old.h ../include/openssl/e_os2.h
995 mdc2test.o: ../include/openssl/evp.h ../include/openssl/mdc2.h
996 mdc2test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
997 mdc2test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
998 mdc2test.o: ../include/openssl/ossl_typ.h ../include/openssl/safestack.h
999 mdc2test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
1000 mdc2test.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h mdc2test.c
1001 randtest.o: ../e_os.h ../include/openssl/e_os2.h
1002 randtest.o: ../include/openssl/opensslconf.h ../include/openssl/ossl_typ.h
1003 randtest.o: ../include/openssl/rand.h randtest.c
1004 rc2test.o: ../e_os.h ../include/openssl/e_os2.h
1005 rc2test.o: ../include/openssl/opensslconf.h ../include/openssl/rc2.h rc2test.c
1006 rc4test.o: ../e_os.h ../include/openssl/e_os2.h
1007 rc4test.o: ../include/openssl/opensslconf.h ../include/openssl/rc4.h
1008 rc4test.o: ../include/openssl/sha.h rc4test.c
1009 rc5test.o: ../e_os.h ../include/openssl/e_os2.h
1010 rc5test.o: ../include/openssl/opensslconf.h ../include/openssl/rc5.h rc5test.c
1011 rmdtest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
1012 rmdtest.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
1013 rmdtest.o: ../include/openssl/evp.h ../include/openssl/obj_mac.h
1014 rmdtest.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
1015 rmdtest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
1016 rmdtest.o: ../include/openssl/ripemd.h ../include/openssl/safestack.h
1017 rmdtest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h rmdtest.c
1018 rsa_test.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
1019 rsa_test.o: ../include/openssl/bn.h ../include/openssl/crypto.h
1020 rsa_test.o: ../include/openssl/e_os2.h ../include/openssl/err.h
1021 rsa_test.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
1022 rsa_test.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
1023 rsa_test.o: ../include/openssl/rand.h ../include/openssl/rsa.h
1024 rsa_test.o: ../include/openssl/safestack.h ../include/openssl/stack.h
1025 rsa_test.o: ../include/openssl/symhacks.h rsa_test.c
1026 sha1test.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
1027 sha1test.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
1028 sha1test.o: ../include/openssl/evp.h ../include/openssl/obj_mac.h
1029 sha1test.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
1030 sha1test.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
1031 sha1test.o: ../include/openssl/safestack.h ../include/openssl/sha.h
1032 sha1test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h sha1test.c
1033 shatest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
1034 shatest.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
1035 shatest.o: ../include/openssl/evp.h ../include/openssl/obj_mac.h
1036 shatest.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
1037 shatest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
1038 shatest.o: ../include/openssl/safestack.h ../include/openssl/sha.h
1039 shatest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h shatest.c
1040 ssltest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
1041 ssltest.o: ../include/openssl/bn.h ../include/openssl/buffer.h
1042 ssltest.o: ../include/openssl/comp.h ../include/openssl/conf.h
1043 ssltest.o: ../include/openssl/crypto.h ../include/openssl/dh.h
1044 ssltest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
1045 ssltest.o: ../include/openssl/ec.h ../include/openssl/ecdh.h
1046 ssltest.o: ../include/openssl/ecdsa.h ../include/openssl/engine.h
1047 ssltest.o: ../include/openssl/err.h ../include/openssl/evp.h
1048 ssltest.o: ../include/openssl/kssl.h ../include/openssl/lhash.h
1049 ssltest.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
1050 ssltest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
1051 ssltest.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h
1052 ssltest.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
1053 ssltest.o: ../include/openssl/rand.h ../include/openssl/rsa.h
1054 ssltest.o: ../include/openssl/safestack.h ../include/openssl/sha.h
1055 ssltest.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h
1056 ssltest.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h
1057 ssltest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
1058 ssltest.o: ../include/openssl/tls1.h ../include/openssl/x509.h
1059 ssltest.o: ../include/openssl/x509_vfy.h ../include/openssl/x509v3.h ssltest.c