Makefile 15.3 KB
Newer Older
Paul Bakker's avatar
Paul Bakker committed
1 2

# To compile on SunOS: add "-lsocket -lnsl" to LDFLAGS
3
# To compile on MinGW: add "-lws2_32" to LDFLAGS or define WINDOWS in your env
4
# To compile with PKCS11: add "-lpkcs11-helper" to LDFLAGS
Paul Bakker's avatar
Paul Bakker committed
5

6
CFLAGS	+= -I../include -D_FILE_OFFSET_BITS=64 -Wall -W -Wdeclaration-after-statement \
Paul Bakker's avatar
Paul Bakker committed
7 8
			-Wno-unused-function -Wno-unused-value

9
OFLAGS	= -O2
10
LDFLAGS	+= -L../library -lpolarssl $(SYS_LDFLAGS)
Paul Bakker's avatar
Paul Bakker committed
11

12 13 14 15 16 17 18 19
ifndef SHARED
DEP=../library/libpolarssl.a
CHECK_PRELOAD=
else
DEP=../library/libpolarssl.so
CHECK_PRELOAD= LD_PRELOAD=../library/libpolarssl.so
endif

20 21 22 23
ifdef DEBUG
CFLAGS += -g3
endif

24 25 26 27
ifdef WINDOWS
LDFLAGS += -lws2_32
endif

28 29 30 31 32
# Zlib shared library extensions:
ifdef ZLIB
LDFLAGS += -lz
endif

33 34 35
APPS =	test_suite_aes.ecb		test_suite_aes.cbc		\
		test_suite_aes.cfb		test_suite_aes.rest		\
		test_suite_arc4									\
36
		test_suite_base64		test_suite_blowfish		\
37
		test_suite_camellia		test_suite_cipher.aes	\
38
		test_suite_cipher.arc4	test_suite_cipher.gcm	\
39 40
		test_suite_cipher.blowfish						\
		test_suite_cipher.camellia						\
41
		test_suite_cipher.des	test_suite_cipher.null	\
42
		test_suite_cipher.padding						\
43
		test_suite_ctr_drbg		test_suite_debug		\
44
		test_suite_des			test_suite_dhm			\
45
		test_suite_ecdh			test_suite_ecdsa		\
46
		test_suite_ecp									\
47
		test_suite_error								\
48 49 50 51 52 53
		test_suite_gcm.aes128_de						\
		test_suite_gcm.aes192_de						\
		test_suite_gcm.aes256_de						\
		test_suite_gcm.aes128_en						\
		test_suite_gcm.aes192_en						\
		test_suite_gcm.aes256_en						\
54
		test_suite_gcm.camellia	test_suite_hmac_shax	\
55
		test_suite_hmac_drbg.misc						\
56
		test_suite_hmac_drbg.no_reseed					\
57
		test_suite_hmac_drbg.nopr						\
58
		test_suite_hmac_drbg.pr							\
59
		test_suite_md			test_suite_mdx			\
60
		test_suite_mpi			test_suite_pbkdf2		\
61
		test_suite_pem									\
62
		test_suite_pkcs1_v21	test_suite_pkcs5		\
63
		test_suite_pkparse		test_suite_pkwrite		\
64
		test_suite_pk									\
65
		test_suite_rsa			test_suite_shax			\
66 67
		test_suite_x509parse	test_suite_x509write	\
		test_suite_xtea			test_suite_version
Paul Bakker's avatar
Paul Bakker committed
68 69 70 71 72

.SILENT:

all: $(APPS)

73
test_suite_aes.ecb.c : suites/test_suite_aes.function suites/test_suite_aes.ecb.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
74 75 76
	echo   "  Generate	$@"
	scripts/generate_code.pl suites test_suite_aes test_suite_aes.ecb

77
test_suite_aes.cbc.c : suites/test_suite_aes.function suites/test_suite_aes.cbc.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
78 79 80
	echo   "  Generate	$@"
	scripts/generate_code.pl suites test_suite_aes test_suite_aes.cbc

81
test_suite_aes.cfb.c : suites/test_suite_aes.function suites/test_suite_aes.cfb.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
82 83 84
	echo   "  Generate	$@"
	scripts/generate_code.pl suites test_suite_aes test_suite_aes.cfb

85
test_suite_aes.rest.c : suites/test_suite_aes.function suites/test_suite_aes.rest.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
86 87 88
	echo   "  Generate	$@"
	scripts/generate_code.pl suites test_suite_aes test_suite_aes.rest

89
test_suite_cipher.aes.c : suites/test_suite_cipher.function suites/test_suite_cipher.aes.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
90 91 92
	echo   "  Generate	$@"
	scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.aes

93 94 95 96
test_suite_cipher.arc4.c : suites/test_suite_cipher.function suites/test_suite_cipher.arc4.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
	echo   "  Generate	$@"
	scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.arc4

97 98 99 100
test_suite_cipher.gcm.c : suites/test_suite_cipher.function suites/test_suite_cipher.gcm.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
	echo   "  Generate	$@"
	scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.gcm

101
test_suite_cipher.blowfish.c : suites/test_suite_cipher.function suites/test_suite_cipher.blowfish.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
102 103 104
	echo   "  Generate	$@"
	scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.blowfish

105
test_suite_cipher.camellia.c : suites/test_suite_cipher.function suites/test_suite_cipher.camellia.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
106 107 108
	echo   "  Generate	$@"
	scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.camellia

109
test_suite_cipher.des.c : suites/test_suite_cipher.function suites/test_suite_cipher.des.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
110 111 112
	echo   "  Generate	$@"
	scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.des

113
test_suite_cipher.null.c : suites/test_suite_cipher.function suites/test_suite_cipher.null.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
114 115 116
	echo   "  Generate	$@"
	scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.null

117
test_suite_cipher.padding.c : suites/test_suite_cipher.function suites/test_suite_cipher.padding.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
118 119 120
	echo   "  Generate	$@"
	scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.padding

121
test_suite_gcm.aes128_de.c : suites/test_suite_gcm.function suites/test_suite_gcm.aes128_de.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
122
	echo   "  Generate	$@"
123
	scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes128_de
124

125
test_suite_gcm.aes192_de.c : suites/test_suite_gcm.function suites/test_suite_gcm.aes192_de.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
126
	echo   "  Generate	$@"
127
	scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes192_de
128

129
test_suite_gcm.aes256_de.c : suites/test_suite_gcm.function suites/test_suite_gcm.aes256_de.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
130
	echo   "  Generate	$@"
131
	scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes256_de
132

133
test_suite_gcm.aes128_en.c : suites/test_suite_gcm.function suites/test_suite_gcm.aes128_en.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
134
	echo   "  Generate	$@"
135
	scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes128_en
136

137
test_suite_gcm.aes192_en.c : suites/test_suite_gcm.function suites/test_suite_gcm.aes192_en.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
138
	echo   "  Generate	$@"
139
	scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes192_en
140

141
test_suite_gcm.aes256_en.c : suites/test_suite_gcm.function suites/test_suite_gcm.aes256_en.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
142
	echo   "  Generate	$@"
143
	scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes256_en
144

145 146 147
test_suite_gcm.camellia.c : suites/test_suite_gcm.function suites/test_suite_gcm.camellia.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
	echo   "  Generate	$@"
	scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.camellia
148

149 150 151 152
test_suite_hmac_drbg.misc.c : suites/test_suite_hmac_drbg.function suites/test_suite_hmac_drbg.misc.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
	echo   "  Generate	$@"
	scripts/generate_code.pl suites test_suite_hmac_drbg test_suite_hmac_drbg.misc

153 154 155 156
test_suite_hmac_drbg.no_reseed.c : suites/test_suite_hmac_drbg.function suites/test_suite_hmac_drbg.no_reseed.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
	echo   "  Generate	$@"
	scripts/generate_code.pl suites test_suite_hmac_drbg test_suite_hmac_drbg.no_reseed

157 158 159 160
test_suite_hmac_drbg.nopr.c : suites/test_suite_hmac_drbg.function suites/test_suite_hmac_drbg.nopr.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
	echo   "  Generate	$@"
	scripts/generate_code.pl suites test_suite_hmac_drbg test_suite_hmac_drbg.nopr

161 162 163 164
test_suite_hmac_drbg.pr.c : suites/test_suite_hmac_drbg.function suites/test_suite_hmac_drbg.pr.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
	echo   "  Generate	$@"
	scripts/generate_code.pl suites test_suite_hmac_drbg test_suite_hmac_drbg.pr

165
%.c : suites/%.function suites/%.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Paul Bakker's avatar
Paul Bakker committed
166
	echo   "  Generate	$@"
167
	scripts/generate_code.pl suites $* $*
Paul Bakker's avatar
Paul Bakker committed
168

169
test_suite_aes.ecb: test_suite_aes.ecb.c $(DEP)
170 171 172
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

173
test_suite_aes.cbc: test_suite_aes.cbc.c $(DEP)
174 175 176
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

177
test_suite_aes.cfb: test_suite_aes.cfb.c $(DEP)
178 179 180
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

181
test_suite_aes.rest: test_suite_aes.rest.c $(DEP)
Paul Bakker's avatar
Paul Bakker committed
182 183 184
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

185
test_suite_arc4: test_suite_arc4.c $(DEP)
Paul Bakker's avatar
Paul Bakker committed
186 187 188
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

189
test_suite_base64: test_suite_base64.c $(DEP)
Paul Bakker's avatar
Paul Bakker committed
190 191 192
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

193
test_suite_blowfish: test_suite_blowfish.c $(DEP)
194 195 196
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

197
test_suite_camellia: test_suite_camellia.c $(DEP)
Paul Bakker's avatar
Paul Bakker committed
198 199 200
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

201
test_suite_cipher.aes: test_suite_cipher.aes.c $(DEP)
202 203 204
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

205
test_suite_cipher.arc4: test_suite_cipher.arc4.c $(DEP)
206 207 208
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

209
test_suite_cipher.gcm: test_suite_cipher.gcm.c $(DEP)
210 211 212
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

213
test_suite_cipher.blowfish: test_suite_cipher.blowfish.c $(DEP)
214 215 216
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

217
test_suite_cipher.camellia: test_suite_cipher.camellia.c $(DEP)
218 219 220
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

221
test_suite_cipher.des: test_suite_cipher.des.c $(DEP)
222 223 224
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

225
test_suite_cipher.null: test_suite_cipher.null.c $(DEP)
226 227 228
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

229
test_suite_cipher.padding: test_suite_cipher.padding.c $(DEP)
230 231 232
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

233
test_suite_ctr_drbg: test_suite_ctr_drbg.c $(DEP)
234 235 236
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

237
test_suite_des: test_suite_des.c $(DEP)
Paul Bakker's avatar
Paul Bakker committed
238 239 240
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

241
test_suite_dhm: test_suite_dhm.c $(DEP)
Paul Bakker's avatar
Paul Bakker committed
242 243
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@
244

245
test_suite_ecdh: test_suite_ecdh.c $(DEP)
246 247 248
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

249
test_suite_ecdsa: test_suite_ecdsa.c $(DEP)
250 251
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@
Paul Bakker's avatar
Paul Bakker committed
252

253
test_suite_ecp: test_suite_ecp.c $(DEP)
254 255 256
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

257
test_suite_error: test_suite_error.c $(DEP)
258 259 260
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

261
test_suite_gcm.aes128_de: test_suite_gcm.aes128_de.c $(DEP)
262 263 264
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

265
test_suite_gcm.aes192_de: test_suite_gcm.aes192_de.c $(DEP)
266 267 268
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

269
test_suite_gcm.aes256_de: test_suite_gcm.aes256_de.c $(DEP)
270 271 272
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

273
test_suite_gcm.aes128_en: test_suite_gcm.aes128_en.c $(DEP)
274 275 276
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

277
test_suite_gcm.aes192_en: test_suite_gcm.aes192_en.c $(DEP)
278 279 280
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

281
test_suite_gcm.aes256_en: test_suite_gcm.aes256_en.c $(DEP)
282 283 284
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

285
test_suite_gcm.camellia: test_suite_gcm.camellia.c $(DEP)
286 287
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@
288

289
test_suite_hmac_drbg.misc: test_suite_hmac_drbg.misc.c $(DEP)
290 291 292
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

293
test_suite_hmac_drbg.no_reseed: test_suite_hmac_drbg.no_reseed.c $(DEP)
294 295
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@
296

297
test_suite_hmac_drbg.nopr: test_suite_hmac_drbg.nopr.c $(DEP)
298 299
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@
300

301
test_suite_hmac_drbg.pr: test_suite_hmac_drbg.pr.c $(DEP)
302 303
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@
304

305
test_suite_hmac_shax: test_suite_hmac_shax.c $(DEP)
Paul Bakker's avatar
Paul Bakker committed
306 307 308
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

309
test_suite_md: test_suite_md.c $(DEP)
310 311 312
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

313
test_suite_mdx: test_suite_mdx.c $(DEP)
Paul Bakker's avatar
Paul Bakker committed
314 315 316
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

317
test_suite_mpi: test_suite_mpi.c $(DEP)
Paul Bakker's avatar
Paul Bakker committed
318 319 320
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

321
test_suite_pbkdf2: test_suite_pbkdf2.c $(DEP)
322 323 324
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

325 326 327 328
test_suite_pem: test_suite_pem.c $(DEP)
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

329
test_suite_pkcs1_v21: test_suite_pkcs1_v21.c $(DEP)
330 331 332
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

333
test_suite_pkcs5: test_suite_pkcs5.c $(DEP)
334 335 336
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

337
test_suite_pkparse: test_suite_pkparse.c $(DEP)
338 339 340
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

341
test_suite_pkwrite: test_suite_pkwrite.c $(DEP)
342 343 344
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

345
test_suite_pk: test_suite_pk.c $(DEP)
Paul Bakker's avatar
Paul Bakker committed
346 347 348
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

349
test_suite_rsa: test_suite_rsa.c $(DEP)
Paul Bakker's avatar
Paul Bakker committed
350 351 352
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

353
test_suite_shax: test_suite_shax.c $(DEP)
Paul Bakker's avatar
Paul Bakker committed
354 355 356
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

357
test_suite_x509parse: test_suite_x509parse.c $(DEP)
Paul Bakker's avatar
Paul Bakker committed
358 359 360
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

361
test_suite_x509write: test_suite_x509write.c $(DEP)
362 363 364
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

365
test_suite_xtea: test_suite_xtea.c $(DEP)
Paul Bakker's avatar
Paul Bakker committed
366 367 368
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

369
test_suite_debug: test_suite_debug.c $(DEP)
370 371 372
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

373
test_suite_version: test_suite_version.c $(DEP)
374 375 376
	echo   "  CC    	$@.c"
	$(CC) $(CFLAGS) $(OFLAGS) $@.c	$(LDFLAGS) -o $@

Paul Bakker's avatar
Paul Bakker committed
377
clean:
378
ifndef WINDOWS
Paul Bakker's avatar
Paul Bakker committed
379
	rm -f $(APPS) *.c
380 381 382 383
endif
ifdef WINDOWS
	del /Q /F *.c *.exe
endif
Paul Bakker's avatar
Paul Bakker committed
384

385
check: $(APPS)
386
ifndef WINDOWS
387
	echo "Running checks (Success if all tests PASSED)"
388
	RETURN=0;																\
389 390 391
	for i in $(APPS);														\
	do																		\
		echo " - $${i}";													\
392
		RESULT=`$(CHECK_PRELOAD) ./$${i} | grep -v 'PASS$$' | grep -v -- '----' | grep -v '^$$'`;	\
393 394 395 396 397 398 399
		FAILED=`echo $$RESULT |grep FAILED`; 								\
		echo "   $$RESULT";													\
		if [ "$$FAILED" != "" ];											\
		then																\
			echo "**** Failed ***************";								\
			RETURN=1;														\
		fi; 																\
400
		echo "";															\
401 402
	done;																	\
	if [ "$$RETURN" -eq 1 ]; then exit 1; fi
403
endif