blob: 149961de6faff303518ee5215391b30a94e632a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#OPTS = -O0 -g -Wall -fprofile-arcs -ftest-coverage -fPIC
#OPTS = -O0 -g -Wall -m31 -D_LINUX_S390_
if DEBUG
OPTS = -O0 -g -Wall -D_LINUX_S390_ -D_GNU_SOURCE -pthread -fstack-protector-all
else
OPTS = -O0 -g -Wall -D_LINUX_S390_ -D_GNU_SOURCE -pthread
endif
if ICA_FIPS
OPTS += -DICA_FIPS
endif
LIBS = -L../.libs
INCLUDE = -I. -I../include -I../../include
CC = gcc
TARGETS = icastats_test \
libica_des_test libica_3des_test \
libica_aes128_test libica_aes192_test libica_aes256_test \
libica_sha1_test \
libica_sha256_test \
libica_rsa_test libica_rsa_key_check_test \
libica_rng_test libica_keygen_test \
libica_cmac_test \
libica_aes_xts_test libica_aes_gcm_test libica_ccm_test \
libica_aes_ctr_test libica_aes_ofb_test libica_aes_cfb_test \
libica_aes_cbc_test libica_aes_ecb_test \
libica_des_ctr_test libica_3des_ctr_test \
libica_des_cfb_test libica_3des_cfb_test \
libica_des_cbc_test libica_3des_cbc_test \
libica_des_ecb_test libica_cbccs_test libica_3des_ecb_test \
libica_des_ofb_test libica_3des_ofb_test \
libica_get_version \
libica_get_functionlist \
libica_drbg_test \
libica_drbg_birthdays \
libica_fips_test
all: $(TARGETS)
# Every target is created from a single .c file.
%: %.c
gcc $(OPTS) -o $@ $^ $(LIBS) $(INCLUDE) -lica -lcrypto
clean:
rm -f $(TARGETS)
distclean:
rm -f Makefile
rm -f $(TARGETS)
|