Makefile 38.9 KB
Newer Older
1
#
B
Ben Laurie 已提交
2
# test/Makefile
3 4 5 6 7
#

DIR=		test
TOP=		..
CC=		cc
8
INCLUDES=	-I$(TOP) -I../include $(KRB5_INCLUDES)
9
CFLAG=		-g
10 11
INSTALL_PREFIX=
OPENSSLDIR=     /usr/local/ssl
12
INSTALLTOP=	/usr/local/ssl
B
Ben Laurie 已提交
13
MAKEFILE=	Makefile
14
NEWMAKE=	make
B
Ben Laurie 已提交
15
MAKE=		$(NEWMAKE)
16 17
MAKEDEPPROG=	makedepend
MAKEDEPEND=	$(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
18
PERL=		perl
19 20 21
# KRB5 stuff
KRB5_INCLUDES=
LIBKRB5=
22 23

PEX_LIBS=
24
EX_LIBS= #-lnsl -lsocket
25 26 27

CFLAGS= $(INCLUDES) $(CFLAG)

B
Ben Laurie 已提交
28
GENERAL=Makefile maketests.com \
U
Ulf Möller 已提交
29 30 31
	tests.com testenc.com tx509.com trsa.com tcrl.com tsid.com treq.com \
	tpkcs7.com tpkcs7d.com tverify.com testgen.com testss.com testssl.com \
	testca.com VMSca-response.1 VMSca-response.2
32 33 34 35 36 37 38

DLIBCRYPTO= ../libcrypto.a
DLIBSSL= ../libssl.a
LIBCRYPTO= -L.. -lcrypto
LIBSSL= -L.. -lssl

BNTEST=		bntest
39
ECTEST=		ectest
40
ECDSATEST=	ecdsatest
B
Bodo Möller 已提交
41
ECDHTEST=	ecdhtest
42 43 44 45
EXPTEST=	exptest
IDEATEST=	ideatest
SHATEST=	shatest
SHA1TEST=	sha1test
A
Andy Polyakov 已提交
46 47
SHA256TEST=	sha256t
SHA512TEST=	sha512t
48
MDC2TEST=	mdc2test
49
RMDTEST=	rmdtest
50
MD2TEST=	md2test
51
MD4TEST=	md4test
52
MD5TEST=	md5test
53
HMACTEST=	hmactest
54
RC2TEST=	rc2test
55 56
RC4TEST=	rc4test
RC5TEST=	rc5test
57
BFTEST=		bftest
58
CASTTEST=	casttest
59 60 61 62 63 64
DESTEST=	destest
RANDTEST=	randtest
DHTEST=		dhtest
DSATEST=	dsatest
METHTEST=	methtest
SSLTEST=	ssltest
65
RSATEST=	rsa_test
66
ENGINETEST=	enginetest
B
Ben Laurie 已提交
67
EVPTEST=	evp_test
68

69 70
TESTS=		alltests

71 72 73 74 75 76 77 78
EXE=	$(BNTEST)$(EXE_EXT) $(ECTEST)$(EXE_EXT)  $(ECDSATEST)$(EXE_EXT) $(ECDHTEST)$(EXE_EXT) $(IDEATEST)$(EXE_EXT) \
	$(MD2TEST)$(EXE_EXT)  $(MD4TEST)$(EXE_EXT) $(MD5TEST)$(EXE_EXT) $(HMACTEST)$(EXE_EXT) \
	$(RC2TEST)$(EXE_EXT) $(RC4TEST)$(EXE_EXT) $(RC5TEST)$(EXE_EXT) \
	$(DESTEST)$(EXE_EXT) $(SHATEST)$(EXE_EXT) $(SHA1TEST)$(EXE_EXT) $(SHA256TEST)$(EXE_EXT) $(SHA512TEST)$(EXE_EXT) \
	$(MDC2TEST)$(EXE_EXT) $(RMDTEST)$(EXE_EXT) \
	$(RANDTEST)$(EXE_EXT) $(DHTEST)$(EXE_EXT) $(ENGINETEST)$(EXE_EXT) \
	$(BFTEST)$(EXE_EXT) $(CASTTEST)$(EXE_EXT) $(SSLTEST)$(EXE_EXT) $(EXPTEST)$(EXE_EXT) $(DSATEST)$(EXE_EXT) $(RSATEST)$(EXE_EXT) \
	$(EVPTEST)$(EXE_EXT)
79

80
# $(METHTEST)$(EXE_EXT)
81

B
Bodo Möller 已提交
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 \
A
Andy Polyakov 已提交
86 87
	$(DESTEST).o $(SHATEST).o $(SHA1TEST).o $(SHA256TEST).o $(SHA512TEST).o \
	$(MDC2TEST).o $(RMDTEST).o \
88
	$(RANDTEST).o $(DHTEST).o $(ENGINETEST).o $(CASTTEST).o \
B
Ben Laurie 已提交
89
	$(BFTEST).o  $(SSLTEST).o  $(DSATEST).o  $(EXPTEST).o $(RSATEST).o \
90
	$(EVPTEST).o
B
Bodo Möller 已提交
91
SRC=	$(BNTEST).c $(ECTEST).c  $(ECDSATEST).c $(ECDHTEST).c $(IDEATEST).c \
92
	$(MD2TEST).c  $(MD4TEST).c $(MD5TEST).c \
93
	$(HMACTEST).c \
94 95
	$(RC2TEST).c $(RC4TEST).c $(RC5TEST).c \
	$(DESTEST).c $(SHATEST).c $(SHA1TEST).c $(MDC2TEST).c $(RMDTEST).c \
96
	$(RANDTEST).c $(DHTEST).c $(ENGINETEST).c $(CASTTEST).c \
B
Ben Laurie 已提交
97
	$(BFTEST).c  $(SSLTEST).c $(DSATEST).c   $(EXPTEST).c $(RSATEST).c \
98
	$(EVPTEST).c
99 100 101 102 103 104 105

EXHEADER= 
HEADER=	$(EXHEADER)

ALL=    $(GENERAL) $(SRC) $(HEADER)

top:
106
	(cd ..; $(MAKE) DIRS=$(DIR) TESTS=$(TESTS) all)
107 108 109

all:	exe

110
exe:	$(EXE) dummytest$(EXE_EXT)
111 112

files:
B
Ben Laurie 已提交
113
	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
114 115 116

links:

117 118
generate: $(SRC)
$(SRC):
119
	@sh $(TOP)/util/point.sh dummytest.c $@
120

121 122 123 124 125 126 127
errors:

install:

tags:
	ctags $(SRC)

128 129 130
tests:	exe apps $(TESTS)

apps:
131
	@(cd ..; $(MAKE) DIRS=apps all)
132

133
alltests: \
134 135
	test_des test_idea test_sha test_md4 test_md5 test_hmac \
	test_md2 test_mdc2 \
136
	test_rmd test_rc2 test_rc4 test_rc5 test_bf test_cast test_aes \
B
Bodo Möller 已提交
137
	test_rand test_bn test_ec test_ecdsa test_ecdh \
138
	test_enc test_x509 test_rsa test_crl test_sid \
139
	test_gen test_req test_pkcs7 test_verify test_dh test_dsa \
140
	test_ss test_ca test_engine test_evp test_ssl
B
Ben Laurie 已提交
141 142

test_evp:
143
	../util/shlib_wrap.sh ./$(EVPTEST) evptests.txt
144 145

test_des:
146
	../util/shlib_wrap.sh ./$(DESTEST)
147 148

test_idea:
149
	../util/shlib_wrap.sh ./$(IDEATEST)
150 151

test_sha:
152 153 154 155
	../util/shlib_wrap.sh ./$(SHATEST)
	../util/shlib_wrap.sh ./$(SHA1TEST)
	../util/shlib_wrap.sh ./$(SHA256TEST)
	../util/shlib_wrap.sh ./$(SHA512TEST)
156 157

test_mdc2:
158
	../util/shlib_wrap.sh ./$(MDC2TEST)
159 160

test_md5:
161
	../util/shlib_wrap.sh ./$(MD5TEST)
162

163
test_md4:
164
	../util/shlib_wrap.sh ./$(MD4TEST)
165

166
test_hmac:
167
	../util/shlib_wrap.sh ./$(HMACTEST)
168

169
test_md2:
170
	../util/shlib_wrap.sh ./$(MD2TEST)
171

172
test_rmd:
173
	../util/shlib_wrap.sh ./$(RMDTEST)
174 175

test_bf:
176
	../util/shlib_wrap.sh ./$(BFTEST)
177

178
test_cast:
179
	../util/shlib_wrap.sh ./$(CASTTEST)
180 181

test_rc2:
182
	../util/shlib_wrap.sh ./$(RC2TEST)
183

184
test_rc4:
185
	../util/shlib_wrap.sh ./$(RC4TEST)
186

187
test_rc5:
188
	../util/shlib_wrap.sh ./$(RC5TEST)
189

190
test_rand:
191
	../util/shlib_wrap.sh ./$(RANDTEST)
192 193

test_enc:
194
	@sh ./testenc
195 196 197

test_x509:
	echo test normal x509v1 certificate
198
	sh ./tx509 2>/dev/null
199
	echo test first x509v3 certificate
200
	sh ./tx509 v3-cert1.pem 2>/dev/null
201
	echo test second x509v3 certificate
202
	sh ./tx509 v3-cert2.pem 2>/dev/null
203 204

test_rsa:
205 206
	@sh ./trsa 2>/dev/null
	../util/shlib_wrap.sh ./$(RSATEST)
207 208

test_crl:
209
	@sh ./tcrl 2>/dev/null
210 211

test_sid:
212
	@sh ./tsid 2>/dev/null
213 214

test_req:
215 216
	@sh ./treq 2>/dev/null
	@sh ./treq testreq2.pem 2>/dev/null
217 218

test_pkcs7:
219 220
	@sh ./tpkcs7 2>/dev/null
	@sh ./tpkcs7d 2>/dev/null
221 222 223

test_bn:
	@echo starting big number library test, could take a while...
224
	@../util/shlib_wrap.sh ./$(BNTEST) >tmp.bntest
225
	@echo quit >>tmp.bntest
226
	@echo "running bc"
227
	@<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"'
228
	@echo 'test a^b%c implementations'
229
	../util/shlib_wrap.sh ./$(EXPTEST)
230

231
test_ec:
232
	@echo 'test elliptic curves'
233
	../util/shlib_wrap.sh ./$(ECTEST)
234

B
Bodo Möller 已提交
235 236
test_ecdsa:
	@echo 'test ecdsa'
237
	../util/shlib_wrap.sh ./$(ECDSATEST)
B
Bodo Möller 已提交
238

B
Bodo Möller 已提交
239 240
test_ecdh:
	@echo 'test ecdh'
241
	../util/shlib_wrap.sh ./$(ECDHTEST)
B
Bodo Möller 已提交
242

243 244 245
test_verify:
	@echo "The following command should have some OK's and some failures"
	@echo "There are definitly a few expired certificates"
246
	../util/shlib_wrap.sh ../apps/openssl verify -CApath ../certs ../certs/*.pem
247 248

test_dh:
249
	@echo "Generate a set of DH parameters"
250
	../util/shlib_wrap.sh ./$(DHTEST)
251 252

test_dsa:
253
	@echo "Generate a set of DSA parameters"
254 255
	../util/shlib_wrap.sh ./$(DSATEST)
	../util/shlib_wrap.sh ./$(DSATEST) -app2_1
256

257
test_gen:
258
	@echo "Generate and verify a certificate request"
259
	@sh ./testgen
260

261 262
test_ss keyU.ss certU.ss certCA.ss certP1.ss keyP1.ss certP2.ss keyP2.ss \
		intP1.ss intP2.ss: testss
263
	@echo "Generate and certify a test certificate"
264
	@sh ./testss
265 266
	@cat certCA.ss certU.ss > intP1.ss
	@cat certCA.ss certU.ss certP1.ss > intP2.ss
267

268 269
test_engine: 
	@echo "Manipulate the ENGINE structures"
270
	../util/shlib_wrap.sh ./$(ENGINETEST)
271

272 273
test_ssl: keyU.ss certU.ss certCA.ss certP1.ss keyP1.ss certP2.ss keyP2.ss \
		intP1.ss intP2.ss
274
	@echo "test SSL protocol"
275 276 277
	@sh ./testssl keyU.ss certU.ss certCA.ss
	@sh ./testsslproxy keyP1.ss certP1.ss intP1.ss
	@sh ./testsslproxy keyP2.ss certP2.ss intP2.ss
278 279

test_ca:
280
	@if ../util/shlib_wrap.sh ../apps/openssl no-rsa; then \
281 282
	  echo "skipping CA.sh test -- requires RSA"; \
	else \
283 284
	  echo "Generate and certify a test certificate via the 'ca' program"; \
	  sh ./testca; \
B
Ben Laurie 已提交
285
	fi
286

287
test_aes: #$(AESTEST)
288
#	@echo "test Rijndael"
289
#	../util/shlib_wrap.sh ./$(AESTEST)
290

291 292 293 294
lint:
	lint -DLINT $(INCLUDES) $(SRC)>fluff

depend:
295
	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(SRC)
296 297

dclean:
298
	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
299 300 301
	mv -f Makefile.new $(MAKEFILE)

clean:
302
	rm -f .rnd tmp.bntest tmp.bctest *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff $(EXE) *.ss *.srl log
303 304

$(DLIBSSL):
305
	(cd ..; $(MAKE) DIRS=ssl all)
306 307

$(DLIBCRYPTO):
308
	(cd ..; $(MAKE) DIRS=crypto all)
309

310
$(RSATEST)$(EXE_EXT): $(RSATEST).o $(DLIBCRYPTO)
311 312 313 314
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
315
	  LIBRARIES="$(DLIBCRYPTO)"; \
316
	else \
317 318 319
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
320 321
		APPNAME=$(RSATEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
322 323 324
		OBJECTS="$(RSATEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
325
		link_app.$${shlib_target}
B
Ben Laurie 已提交
326

327
$(BNTEST)$(EXE_EXT): $(BNTEST).o $(DLIBCRYPTO)
328 329 330 331
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
332
	  LIBRARIES="$(DLIBCRYPTO)"; \
333
	else \
334 335 336
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
337 338
		APPNAME=$(BNTEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
339 340 341
		OBJECTS="$(BNTEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
342
		link_app.$${shlib_target}
343

344
$(ECTEST)$(EXE_EXT): $(ECTEST).o $(DLIBCRYPTO)
345 346 347 348
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
349
	  LIBRARIES="$(DLIBCRYPTO)"; \
350
	else \
351 352 353
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
354 355
		APPNAME=$(ECTEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
356 357 358
		OBJECTS="$(ECTEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
359
		link_app.$${shlib_target}
360

361
$(EXPTEST)$(EXE_EXT): $(EXPTEST).o $(DLIBCRYPTO)
362 363 364 365
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
366
	  LIBRARIES="$(DLIBCRYPTO)"; \
367
	else \
368 369 370
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
371 372
		APPNAME=$(EXPTEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
373 374 375
		OBJECTS="$(EXPTEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
376
		link_app.$${shlib_target}
377

378
$(IDEATEST)$(EXE_EXT): $(IDEATEST).o $(DLIBCRYPTO)
379 380 381 382
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
383
	  LIBRARIES="$(DLIBCRYPTO)"; \
384
	else \
385 386 387
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
388 389
		APPNAME=$(IDEATEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
390 391 392
		OBJECTS="$(IDEATEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
393
		link_app.$${shlib_target}
394

395
$(MD2TEST)$(EXE_EXT): $(MD2TEST).o $(DLIBCRYPTO)
396 397 398 399
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
400
	  LIBRARIES="$(DLIBCRYPTO)"; \
401
	else \
402 403 404
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
405 406
		APPNAME=$(MD2TEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
407 408 409
		OBJECTS="$(MD2TEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
410
		link_app.$${shlib_target}
411

412
$(SHATEST)$(EXE_EXT): $(SHATEST).o $(DLIBCRYPTO)
413 414 415 416
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
417
	  LIBRARIES="$(DLIBCRYPTO)"; \
418
	else \
419 420 421
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
422 423
		APPNAME=$(SHATEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
424 425 426
		OBJECTS="$(SHATEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
427
		link_app.$${shlib_target}
428

429
$(SHA1TEST)$(EXE_EXT): $(SHA1TEST).o $(DLIBCRYPTO)
430 431 432 433
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
434
	  LIBRARIES="$(DLIBCRYPTO)"; \
435
	else \
436 437 438
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
439 440
		APPNAME=$(SHA1TEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
441 442 443
		OBJECTS="$(SHA1TEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
A
Andy Polyakov 已提交
444 445
		link_app.$${shlib_target}

446
$(SHA256TEST)$(EXE_EXT): $(SHA256TEST).o $(DLIBCRYPTO)
A
Andy Polyakov 已提交
447 448 449 450 451 452 453 454 455
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
	  LIBRARIES="$(DLIBCRYPTO)"; \
	else \
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
456 457
		APPNAME=$(SHA256TEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
A
Andy Polyakov 已提交
458 459 460 461 462
		OBJECTS="$(SHA256TEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
		link_app.$${shlib_target}

463
$(SHA512TEST)$(EXE_EXT): $(SHA512TEST).o $(DLIBCRYPTO)
A
Andy Polyakov 已提交
464 465 466 467 468 469 470 471 472
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
	  LIBRARIES="$(DLIBCRYPTO)"; \
	else \
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
473 474
		APPNAME=$(SHA512TEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
A
Andy Polyakov 已提交
475 476 477
		OBJECTS="$(SHA512TEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
478
		link_app.$${shlib_target}
479

480
$(RMDTEST)$(EXE_EXT): $(RMDTEST).o $(DLIBCRYPTO)
481 482 483 484
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
485
	  LIBRARIES="$(DLIBCRYPTO)"; \
486
	else \
487 488 489
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
490 491
		APPNAME=$(RMDTEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
492 493 494
		OBJECTS="$(RMDTEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
495
		link_app.$${shlib_target}
496

497
$(MDC2TEST)$(EXE_EXT): $(MDC2TEST).o $(DLIBCRYPTO)
498 499 500 501
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
502
	  LIBRARIES="$(DLIBCRYPTO)"; \
503
	else \
504 505 506
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
507 508
		APPNAME=$(MDC2TEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
509 510 511
		OBJECTS="$(MDC2TEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
512
		link_app.$${shlib_target}
513

514
$(MD4TEST)$(EXE_EXT): $(MD4TEST).o $(DLIBCRYPTO)
515 516 517 518
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
519
	  LIBRARIES="$(DLIBCRYPTO)"; \
520
	else \
521 522 523
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
524 525
		APPNAME=$(MD4TEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
526 527 528
		OBJECTS="$(MD4TEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
529
		link_app.$${shlib_target}
530

531
$(MD5TEST)$(EXE_EXT): $(MD5TEST).o $(DLIBCRYPTO)
532 533 534 535
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
536
	  LIBRARIES="$(DLIBCRYPTO)"; \
537
	else \
538 539 540
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
541 542
		APPNAME=$(MD5TEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
543 544 545
		OBJECTS="$(MD5TEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
546
		link_app.$${shlib_target}
547

548
$(HMACTEST)$(EXE_EXT): $(HMACTEST).o $(DLIBCRYPTO)
549 550 551 552
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
553
	  LIBRARIES="$(DLIBCRYPTO)"; \
554
	else \
555 556 557
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
558 559
		APPNAME=$(HMACTEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
560 561 562
		OBJECTS="$(HMACTEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
563
		link_app.$${shlib_target}
564

565
$(RC2TEST)$(EXE_EXT): $(RC2TEST).o $(DLIBCRYPTO)
566 567 568 569
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
570
	  LIBRARIES="$(DLIBCRYPTO)"; \
571
	else \
572 573 574
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
575 576
		APPNAME=$(RC2TEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
577 578 579
		OBJECTS="$(RC2TEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
580
		link_app.$${shlib_target}
581

582
$(BFTEST)$(EXE_EXT): $(BFTEST).o $(DLIBCRYPTO)
583 584 585 586
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
587
	  LIBRARIES="$(DLIBCRYPTO)"; \
588
	else \
589 590 591
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
592 593
		APPNAME=$(BFTEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
594 595 596
		OBJECTS="$(BFTEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
597
		link_app.$${shlib_target}
598

599
$(CASTTEST)$(EXE_EXT): $(CASTTEST).o $(DLIBCRYPTO)
600 601 602 603
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
604
	  LIBRARIES="$(DLIBCRYPTO)"; \
605
	else \
606 607 608
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
609 610
		APPNAME=$(CASTTEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
611 612 613
		OBJECTS="$(CASTTEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
614
		link_app.$${shlib_target}
615

616
$(RC4TEST)$(EXE_EXT): $(RC4TEST).o $(DLIBCRYPTO)
617 618 619 620
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
621
	  LIBRARIES="$(DLIBCRYPTO)"; \
622
	else \
623 624 625
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
626 627
		APPNAME=$(RC4TEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
628 629 630
		OBJECTS="$(RC4TEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
631
		link_app.$${shlib_target}
632

633
$(RC5TEST)$(EXE_EXT): $(RC5TEST).o $(DLIBCRYPTO)
634 635 636 637
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
638
	  LIBRARIES="$(DLIBCRYPTO)"; \
639
	else \
640 641 642
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
643 644
		APPNAME=$(RC5TEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
645 646 647
		OBJECTS="$(RC5TEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
648
		link_app.$${shlib_target}
649

650
$(DESTEST)$(EXE_EXT): $(DESTEST).o $(DLIBCRYPTO)
651 652 653 654
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
655
	  LIBRARIES="$(DLIBCRYPTO)"; \
656
	else \
657 658 659
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
660 661
		APPNAME=$(DESTEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
662 663 664
		OBJECTS="$(DESTEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
665
		link_app.$${shlib_target}
666

667
$(RANDTEST)$(EXE_EXT): $(RANDTEST).o $(DLIBCRYPTO)
668 669 670 671
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
672
	  LIBRARIES="$(DLIBCRYPTO)"; \
673
	else \
674 675 676
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
677 678
		APPNAME=$(RANDTEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
679 680 681
		OBJECTS="$(RANDTEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
682
		link_app.$${shlib_target}
683

684
$(DHTEST)$(EXE_EXT): $(DHTEST).o $(DLIBCRYPTO)
685 686 687 688
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
689
	  LIBRARIES="$(DLIBCRYPTO)"; \
690
	else \
691 692 693
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
694 695
		APPNAME=$(DHTEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
696 697 698
		OBJECTS="$(DHTEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
699
		link_app.$${shlib_target}
700

701
$(DSATEST)$(EXE_EXT): $(DSATEST).o $(DLIBCRYPTO)
702 703 704 705
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
706
	  LIBRARIES="$(DLIBCRYPTO)"; \
707
	else \
708 709 710
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
711 712
		APPNAME=$(DSATEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
713 714 715
		OBJECTS="$(DSATEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
716
		link_app.$${shlib_target}
717

718
$(METHTEST)$(EXE_EXT): $(METHTEST).o $(DLIBCRYPTO)
719 720 721 722
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
723
	  LIBRARIES="$(DLIBCRYPTO)"; \
724
	else \
725 726 727
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
728 729
		APPNAME=$(METHTEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
730 731 732
		OBJECTS="$(METHTEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
733
		link_app.$${shlib_target}
734

735
$(SSLTEST)$(EXE_EXT): $(SSLTEST).o $(DLIBSSL) $(DLIBCRYPTO)
736 737 738 739
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
740
	  LIBRARIES="$(DLIBSSL) $(LIBKRB5) $(DLIBCRYPTO)"; \
741
	else \
742 743 744
	  LIBRARIES="$(LIBSSL) $(LIBKRB5) $(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
745 746
		APPNAME=$(SSLTEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
747 748 749
		OBJECTS="$(SSLTEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
750
		link_app.$${shlib_target}
751

752
$(ENGINETEST)$(EXE_EXT): $(ENGINETEST).o $(DLIBCRYPTO)
753 754 755 756
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
757
	  LIBRARIES="$(DLIBCRYPTO)"; \
758
	else \
759 760 761
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
762 763
		APPNAME=$(ENGINETEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
764 765 766
		OBJECTS="$(ENGINETEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
767
		link_app.$${shlib_target}
768

769
$(EVPTEST)$(EXE_EXT): $(EVPTEST).o $(DLIBCRYPTO)
770 771 772 773
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
774
	  LIBRARIES="$(DLIBCRYPTO)"; \
775
	else \
776 777 778
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
779 780
		APPNAME=$(EVPTEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
781 782 783
		OBJECTS="$(EVPTEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
784
		link_app.$${shlib_target}
B
Bodo Möller 已提交
785

786
$(ECDSATEST)$(EXE_EXT): $(ECDSATEST).o $(DLIBCRYPTO)
787 788 789 790
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
791
	  LIBRARIES="$(DLIBCRYPTO)"; \
792
	else \
793 794 795
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
796 797
		APPNAME=$(ECDSATEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
798 799 800
		OBJECTS="$(ECDSATEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
801
		link_app.$${shlib_target}
B
Ben Laurie 已提交
802

803
$(ECDHTEST)$(EXE_EXT): $(ECDHTEST).o $(DLIBCRYPTO)
804 805 806 807
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
808
	  LIBRARIES="$(DLIBCRYPTO)"; \
809
	else \
810 811 812
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
813 814
		APPNAME=$(ECDHTEST)$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
815 816 817
		OBJECTS="$(ECDHTEST).o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
818
		link_app.$${shlib_target}
B
Bodo Möller 已提交
819

820 821
#$(AESTEST).o: $(AESTEST).c
#	$(CC) -c $(CFLAGS) -DINTERMEDIATE_VALUE_KAT -DTRACE_KAT_MCT $(AESTEST).c
822

823
#$(AESTEST)$(EXE_EXT): $(AESTEST).o $(DLIBCRYPTO)
824
#	if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
825
#	  $(CC) -o $(AESTEST)$(EXE_EXT) $(CFLAGS) $(AESTEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
826
#	else \
827
#	  $(CC) -o $(AESTEST)$(EXE_EXT) $(CFLAGS) $(AESTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
B
Ben Laurie 已提交
828
#	fi
829

830
dummytest$(EXE_EXT): dummytest.o $(DLIBCRYPTO)
831 832 833 834
	shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
		shlib_target="$(SHLIB_TARGET)"; \
	fi; \
	if [ "$${shlib_target}" = "hpux-shared" -o "$${shlib_target}" = "darwin-shared" ] ; then \
835
	  LIBRARIES="$(DLIBCRYPTO)"; \
836
	else \
837 838 839
	  LIBRARIES="$(LIBCRYPTO)"; \
	fi; \
	$(NEWMAKE) -f $(TOP)/Makefile.shared \
840 841
		APPNAME=dummytest$(EXE_EXT) CC="$(CC)" CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
842 843 844
		OBJECTS="dummytest.o" \
		LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \
		LIBRPATH=$(INSTALLTOP)/lib \
845
		link_app.$${shlib_target}
A
Andy Polyakov 已提交
846
	@case "../*.dll" in *\**) ;; *) cp -p ../*.dll .;; esac
847

848
# DO NOT DELETE THIS LINE -- make depend depends on it.
B
Ben Laurie 已提交
849

R
Richard Levitte 已提交
850
bftest.o: ../e_os.h ../include/openssl/blowfish.h ../include/openssl/e_os2.h
851
bftest.o: ../include/openssl/opensslconf.h bftest.c
R
Richard Levitte 已提交
852
bntest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
L
Lutz Jänicke 已提交
853
bntest.o: ../include/openssl/bn.h ../include/openssl/buffer.h
R
Richard Levitte 已提交
854 855 856 857 858
bntest.o: ../include/openssl/crypto.h ../include/openssl/dh.h
bntest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
bntest.o: ../include/openssl/ec.h ../include/openssl/ecdh.h
bntest.o: ../include/openssl/ecdsa.h ../include/openssl/err.h
bntest.o: ../include/openssl/evp.h ../include/openssl/lhash.h
B
Bodo Möller 已提交
859 860 861
bntest.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
bntest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
bntest.o: ../include/openssl/ossl_typ.h ../include/openssl/pkcs7.h
R
Richard Levitte 已提交
862
bntest.o: ../include/openssl/rand.h ../include/openssl/rsa.h
B
Bodo Möller 已提交
863 864 865
bntest.o: ../include/openssl/safestack.h ../include/openssl/sha.h
bntest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
bntest.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h bntest.c
R
Richard Levitte 已提交
866 867
casttest.o: ../e_os.h ../include/openssl/cast.h ../include/openssl/e_os2.h
casttest.o: ../include/openssl/opensslconf.h casttest.c
868 869
destest.o: ../include/openssl/des.h ../include/openssl/des_old.h
destest.o: ../include/openssl/e_os2.h ../include/openssl/opensslconf.h
G
Geoff Thorpe 已提交
870 871 872
destest.o: ../include/openssl/ossl_typ.h ../include/openssl/safestack.h
destest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
destest.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h destest.c
R
Richard Levitte 已提交
873
dhtest.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/bn.h
B
Bodo Möller 已提交
874
dhtest.o: ../include/openssl/crypto.h ../include/openssl/dh.h
G
Geoff Thorpe 已提交
875 876
dhtest.o: ../include/openssl/e_os2.h ../include/openssl/err.h
dhtest.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
R
Richard Levitte 已提交
877 878 879
dhtest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
dhtest.o: ../include/openssl/rand.h ../include/openssl/safestack.h
dhtest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h dhtest.c
R
Richard Levitte 已提交
880 881 882 883 884 885
dsatest.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/bn.h
dsatest.o: ../include/openssl/crypto.h ../include/openssl/dh.h
dsatest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
dsatest.o: ../include/openssl/err.h ../include/openssl/lhash.h
dsatest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
dsatest.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h
B
Bodo Möller 已提交
886
dsatest.o: ../include/openssl/safestack.h ../include/openssl/stack.h
R
Richard Levitte 已提交
887
dsatest.o: ../include/openssl/symhacks.h dsatest.c
D
Dr. Stephen Henson 已提交
888 889 890 891 892 893 894 895 896 897
ecdhtest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
ecdhtest.o: ../include/openssl/bn.h ../include/openssl/crypto.h
ecdhtest.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
ecdhtest.o: ../include/openssl/ecdh.h ../include/openssl/err.h
ecdhtest.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h
ecdhtest.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
ecdhtest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
ecdhtest.o: ../include/openssl/rand.h ../include/openssl/safestack.h
ecdhtest.o: ../include/openssl/sha.h ../include/openssl/stack.h
ecdhtest.o: ../include/openssl/symhacks.h ecdhtest.c
R
Richard Levitte 已提交
898
ecdsatest.o: ../include/openssl/asn1.h ../include/openssl/bio.h
R
Richard Levitte 已提交
899 900 901 902 903 904 905 906 907 908
ecdsatest.o: ../include/openssl/bn.h ../include/openssl/buffer.h
ecdsatest.o: ../include/openssl/crypto.h ../include/openssl/dh.h
ecdsatest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
ecdsatest.o: ../include/openssl/ec.h ../include/openssl/ecdh.h
ecdsatest.o: ../include/openssl/ecdsa.h ../include/openssl/engine.h
ecdsatest.o: ../include/openssl/err.h ../include/openssl/evp.h
ecdsatest.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h
ecdsatest.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
ecdsatest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
ecdsatest.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
B
Bodo Möller 已提交
909
ecdsatest.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
R
Richard Levitte 已提交
910 911 912 913
ecdsatest.o: ../include/openssl/sha.h ../include/openssl/stack.h
ecdsatest.o: ../include/openssl/store.h ../include/openssl/symhacks.h
ecdsatest.o: ../include/openssl/ui.h ../include/openssl/x509.h
ecdsatest.o: ../include/openssl/x509_vfy.h ecdsatest.c
R
Richard Levitte 已提交
914
ectest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
G
Geoff Thorpe 已提交
915 916 917
ectest.o: ../include/openssl/bn.h ../include/openssl/crypto.h
ectest.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
ectest.o: ../include/openssl/engine.h ../include/openssl/err.h
B
Bodo Möller 已提交
918
ectest.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h
919 920
ectest.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
ectest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
G
Geoff Thorpe 已提交
921 922 923 924 925 926
ectest.o: ../include/openssl/rand.h ../include/openssl/safestack.h
ectest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h ectest.c
enginetest.o: ../include/openssl/bio.h ../include/openssl/buffer.h
enginetest.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
enginetest.o: ../include/openssl/engine.h ../include/openssl/err.h
enginetest.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
R
Richard Levitte 已提交
927
enginetest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
G
Geoff Thorpe 已提交
928 929
enginetest.o: ../include/openssl/safestack.h ../include/openssl/stack.h
enginetest.o: ../include/openssl/symhacks.h enginetest.c
R
Richard Levitte 已提交
930
evp_test.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
931 932 933 934 935 936 937 938
evp_test.o: ../include/openssl/conf.h ../include/openssl/crypto.h
evp_test.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
evp_test.o: ../include/openssl/err.h ../include/openssl/evp.h
evp_test.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h
evp_test.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
evp_test.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
evp_test.o: ../include/openssl/safestack.h ../include/openssl/stack.h
evp_test.o: ../include/openssl/symhacks.h evp_test.c
R
Richard Levitte 已提交
939
exptest.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/bn.h
940 941 942
exptest.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
exptest.o: ../include/openssl/err.h ../include/openssl/lhash.h
exptest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
R
Richard Levitte 已提交
943 944 945
exptest.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h
exptest.o: ../include/openssl/safestack.h ../include/openssl/stack.h
exptest.o: ../include/openssl/symhacks.h exptest.c
R
Richard Levitte 已提交
946
hmactest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
947 948 949 950 951 952 953
hmactest.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
hmactest.o: ../include/openssl/evp.h ../include/openssl/hmac.h
hmactest.o: ../include/openssl/md5.h ../include/openssl/obj_mac.h
hmactest.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
hmactest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
hmactest.o: ../include/openssl/safestack.h ../include/openssl/stack.h
hmactest.o: ../include/openssl/symhacks.h hmactest.c
R
Richard Levitte 已提交
954 955
ideatest.o: ../e_os.h ../include/openssl/e_os2.h ../include/openssl/idea.h
ideatest.o: ../include/openssl/opensslconf.h ideatest.c
R
Richard Levitte 已提交
956
md2test.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
957 958 959 960 961 962
md2test.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
md2test.o: ../include/openssl/evp.h ../include/openssl/md2.h
md2test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
md2test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
md2test.o: ../include/openssl/ossl_typ.h ../include/openssl/safestack.h
md2test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h md2test.c
R
Richard Levitte 已提交
963
md4test.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
964 965 966 967 968 969
md4test.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
md4test.o: ../include/openssl/evp.h ../include/openssl/md4.h
md4test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
md4test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
md4test.o: ../include/openssl/ossl_typ.h ../include/openssl/safestack.h
md4test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h md4test.c
R
Richard Levitte 已提交
970
md5test.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
971 972 973 974 975 976
md5test.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
md5test.o: ../include/openssl/evp.h ../include/openssl/md5.h
md5test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
md5test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
md5test.o: ../include/openssl/ossl_typ.h ../include/openssl/safestack.h
md5test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h md5test.c
B
Bodo Möller 已提交
977 978
mdc2test.o: ../e_os.h ../include/openssl/e_os2.h
mdc2test.o: ../include/openssl/opensslconf.h mdc2test.c
R
Richard Levitte 已提交
979 980 981 982
randtest.o: ../e_os.h ../include/openssl/e_os2.h
randtest.o: ../include/openssl/opensslconf.h ../include/openssl/ossl_typ.h
randtest.o: ../include/openssl/rand.h randtest.c
rc2test.o: ../e_os.h ../include/openssl/e_os2.h
983
rc2test.o: ../include/openssl/opensslconf.h ../include/openssl/rc2.h rc2test.c
R
Richard Levitte 已提交
984
rc4test.o: ../e_os.h ../include/openssl/e_os2.h
985 986
rc4test.o: ../include/openssl/opensslconf.h ../include/openssl/rc4.h
rc4test.o: ../include/openssl/sha.h rc4test.c
B
Bodo Möller 已提交
987 988
rc5test.o: ../e_os.h ../include/openssl/e_os2.h
rc5test.o: ../include/openssl/opensslconf.h rc5test.c
R
Richard Levitte 已提交
989
rmdtest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
990 991 992 993 994 995
rmdtest.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
rmdtest.o: ../include/openssl/evp.h ../include/openssl/obj_mac.h
rmdtest.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
rmdtest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
rmdtest.o: ../include/openssl/ripemd.h ../include/openssl/safestack.h
rmdtest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h rmdtest.c
L
Lutz Jänicke 已提交
996 997
rsa_test.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
rsa_test.o: ../include/openssl/bn.h ../include/openssl/crypto.h
R
Richard Levitte 已提交
998
rsa_test.o: ../include/openssl/e_os2.h ../include/openssl/err.h
B
Bodo Möller 已提交
999 1000 1001 1002
rsa_test.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
rsa_test.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
rsa_test.o: ../include/openssl/rand.h ../include/openssl/rsa.h
rsa_test.o: ../include/openssl/safestack.h ../include/openssl/stack.h
R
Richard Levitte 已提交
1003
rsa_test.o: ../include/openssl/symhacks.h rsa_test.c
R
Richard Levitte 已提交
1004
sha1test.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
1005 1006 1007 1008 1009 1010
sha1test.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
sha1test.o: ../include/openssl/evp.h ../include/openssl/obj_mac.h
sha1test.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
sha1test.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
sha1test.o: ../include/openssl/safestack.h ../include/openssl/sha.h
sha1test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h sha1test.c
R
Richard Levitte 已提交
1011
shatest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
1012 1013 1014 1015 1016 1017
shatest.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
shatest.o: ../include/openssl/evp.h ../include/openssl/obj_mac.h
shatest.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
shatest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
shatest.o: ../include/openssl/safestack.h ../include/openssl/sha.h
shatest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h shatest.c
R
Richard Levitte 已提交
1018
ssltest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
L
Lutz Jänicke 已提交
1019
ssltest.o: ../include/openssl/bn.h ../include/openssl/buffer.h
1020 1021
ssltest.o: ../include/openssl/comp.h ../include/openssl/conf.h
ssltest.o: ../include/openssl/crypto.h ../include/openssl/dh.h
B
Bodo Möller 已提交
1022 1023 1024 1025 1026 1027 1028 1029 1030 1031
ssltest.o: ../include/openssl/dsa.h ../include/openssl/dtls1.h
ssltest.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
ssltest.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
ssltest.o: ../include/openssl/engine.h ../include/openssl/err.h
ssltest.o: ../include/openssl/evp.h ../include/openssl/kssl.h
ssltest.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h
ssltest.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
ssltest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
ssltest.o: ../include/openssl/pem.h ../include/openssl/pem2.h
ssltest.o: ../include/openssl/pkcs7.h ../include/openssl/pqueue.h
1032 1033 1034 1035 1036 1037 1038
ssltest.o: ../include/openssl/rand.h ../include/openssl/rsa.h
ssltest.o: ../include/openssl/safestack.h ../include/openssl/sha.h
ssltest.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h
ssltest.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h
ssltest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
ssltest.o: ../include/openssl/tls1.h ../include/openssl/x509.h
ssltest.o: ../include/openssl/x509_vfy.h ../include/openssl/x509v3.h ssltest.c