OLD | NEW |
| (Empty) |
1 # | |
2 # OpenSSL/fips/rand/Makefile | |
3 # | |
4 | |
5 DIR= rand | |
6 TOP= ../.. | |
7 CC= cc | |
8 INCLUDES= | |
9 CFLAG=-g | |
10 INSTALL_PREFIX= | |
11 OPENSSLDIR= /usr/local/ssl | |
12 INSTALLTOP=/usr/local/ssl | |
13 MAKEDEPPROG= makedepend | |
14 MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | |
15 MAKEFILE= Makefile | |
16 AR= ar r | |
17 | |
18 CFLAGS= $(INCLUDES) $(CFLAG) | |
19 | |
20 GENERAL=Makefile | |
21 TEST= fips_randtest.c fips_rngvs.c | |
22 APPS= | |
23 | |
24 LIB=$(TOP)/libcrypto.a | |
25 LIBSRC=fips_rand.c fips_rand_selftest.c | |
26 LIBOBJ=fips_rand.o fips_rand_selftest.o | |
27 | |
28 SRC= $(LIBSRC) | |
29 | |
30 EXHEADER= fips_rand.h | |
31 HEADER= $(EXHEADER) | |
32 | |
33 ALL= $(GENERAL) $(SRC) $(HEADER) | |
34 | |
35 top: | |
36 (cd $(TOP); $(MAKE) DIRS=fips SDIRS=$(DIR) sub_all) | |
37 | |
38 all: lib | |
39 | |
40 lib: $(LIBOBJ) | |
41 @echo $(LIBOBJ) > lib | |
42 | |
43 files: | |
44 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | |
45 | |
46 links: | |
47 @$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER) | |
48 @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST) | |
49 @$(PERL) $(TOP)/util/mklink.pl $(TOP)/apps $(APPS) | |
50 | |
51 install: | |
52 @headerlist="$(EXHEADER)"; for i in $$headerlist; \ | |
53 do \ | |
54 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | |
55 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | |
56 done | |
57 | |
58 tags: | |
59 ctags $(SRC) | |
60 | |
61 tests: | |
62 | |
63 Q=../testvectors/rng/req | |
64 A=../testvectors/rng/rsp | |
65 | |
66 fips_test: | |
67 -rm -rf $(A) | |
68 mkdir $(A) | |
69 if [ -f $(Q)/ANSI931_AES128MCT.req ]; then $(TOP)/util/shlib_wrap.sh $(T
OP)/test/fips_rngvs mct < $(Q)/ANSI931_AES128MCT.req > $(A)/ANSI931_AES128MCT.rs
p; fi | |
70 if [ -f $(Q)/ANSI931_AES192MCT.req ]; then $(TOP)/util/shlib_wrap.sh $(T
OP)/test/fips_rngvs mct < $(Q)/ANSI931_AES192MCT.req > $(A)/ANSI931_AES192MCT.rs
p; fi | |
71 if [ -f $(Q)/ANSI931_AES256MCT.req ]; then $(TOP)/util/shlib_wrap.sh $(T
OP)/test/fips_rngvs mct < $(Q)/ANSI931_AES256MCT.req > $(A)/ANSI931_AES256MCT.rs
p; fi | |
72 if [ -f $(Q)/ANSI931_AES128VST.req ]; then $(TOP)/util/shlib_wrap.sh $(T
OP)/test/fips_rngvs vst < $(Q)/ANSI931_AES128VST.req > $(A)/ANSI931_AES128VST.rs
p; fi | |
73 if [ -f $(Q)/ANSI931_AES192VST.req ]; then $(TOP)/util/shlib_wrap.sh $(T
OP)/test/fips_rngvs vst < $(Q)/ANSI931_AES192VST.req > $(A)/ANSI931_AES192VST.rs
p; fi | |
74 if [ -f $(Q)/ANSI931_AES256VST.req ]; then $(TOP)/util/shlib_wrap.sh $(T
OP)/test/fips_rngvs vst < $(Q)/ANSI931_AES256VST.req > $(A)/ANSI931_AES256VST.rs
p; fi | |
75 | |
76 lint: | |
77 lint -DLINT $(INCLUDES) $(SRC)>fluff | |
78 | |
79 depend: | |
80 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST) | |
81 | |
82 dclean: | |
83 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKE
FILE) >Makefile.new | |
84 mv -f Makefile.new $(MAKEFILE) | |
85 | |
86 clean: | |
87 rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | |
88 | |
89 # DO NOT DELETE THIS LINE -- make depend depends on it. | |
90 | |
91 fips_rand.o: ../../e_os.h ../../include/openssl/aes.h | |
92 fips_rand.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | |
93 fips_rand.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | |
94 fips_rand.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | |
95 fips_rand.o: ../../include/openssl/fips.h ../../include/openssl/fips_rand.h | |
96 fips_rand.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | |
97 fips_rand.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | |
98 fips_rand.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | |
99 fips_rand.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | |
100 fips_rand.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | |
101 fips_rand.o: ../fips_locl.h fips_rand.c | |
102 fips_rand_selftest.o: ../../include/openssl/bio.h | |
103 fips_rand_selftest.o: ../../include/openssl/crypto.h | |
104 fips_rand_selftest.o: ../../include/openssl/des.h | |
105 fips_rand_selftest.o: ../../include/openssl/des_old.h | |
106 fips_rand_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | |
107 fips_rand_selftest.o: ../../include/openssl/fips.h | |
108 fips_rand_selftest.o: ../../include/openssl/fips_rand.h | |
109 fips_rand_selftest.o: ../../include/openssl/lhash.h | |
110 fips_rand_selftest.o: ../../include/openssl/opensslconf.h | |
111 fips_rand_selftest.o: ../../include/openssl/opensslv.h | |
112 fips_rand_selftest.o: ../../include/openssl/ossl_typ.h | |
113 fips_rand_selftest.o: ../../include/openssl/rand.h | |
114 fips_rand_selftest.o: ../../include/openssl/safestack.h | |
115 fips_rand_selftest.o: ../../include/openssl/stack.h | |
116 fips_rand_selftest.o: ../../include/openssl/symhacks.h | |
117 fips_rand_selftest.o: ../../include/openssl/ui.h | |
118 fips_rand_selftest.o: ../../include/openssl/ui_compat.h fips_rand_selftest.c | |
119 fips_randtest.o: ../../e_os.h ../../include/openssl/bio.h | |
120 fips_randtest.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | |
121 fips_randtest.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | |
122 fips_randtest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | |
123 fips_randtest.o: ../../include/openssl/fips_rand.h | |
124 fips_randtest.o: ../../include/openssl/lhash.h | |
125 fips_randtest.o: ../../include/openssl/opensslconf.h | |
126 fips_randtest.o: ../../include/openssl/opensslv.h | |
127 fips_randtest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | |
128 fips_randtest.o: ../../include/openssl/safestack.h | |
129 fips_randtest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | |
130 fips_randtest.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | |
131 fips_randtest.o: ../fips_utl.h fips_randtest.c | |
132 fips_rngvs.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | |
133 fips_rngvs.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | |
134 fips_rngvs.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | |
135 fips_rngvs.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | |
136 fips_rngvs.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | |
137 fips_rngvs.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h | |
138 fips_rngvs.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h | |
139 fips_rngvs.o: ../../include/openssl/evp.h ../../include/openssl/fips.h | |
140 fips_rngvs.o: ../../include/openssl/fips_rand.h ../../include/openssl/lhash.h | |
141 fips_rngvs.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | |
142 fips_rngvs.o: ../../include/openssl/opensslconf.h | |
143 fips_rngvs.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | |
144 fips_rngvs.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | |
145 fips_rngvs.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | |
146 fips_rngvs.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | |
147 fips_rngvs.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | |
148 fips_rngvs.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | |
149 fips_rngvs.o: ../../include/openssl/x509v3.h ../fips_utl.h fips_rngvs.c | |
OLD | NEW |