OLD | NEW |
| (Empty) |
1 # | |
2 # OpenSSL/fips/hmac/Makefile | |
3 # | |
4 | |
5 DIR= hmac | |
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_hmactest.c | |
22 APPS= | |
23 | |
24 LIB=$(TOP)/libcrypto.a | |
25 LIBSRC=fips_hmac.c fips_hmac_selftest.c | |
26 LIBOBJ=fips_hmac.o fips_hmac_selftest.o | |
27 | |
28 SRC= $(LIBSRC) | |
29 | |
30 EXHEADER= | |
31 HEADER= $(EXHEADER) | |
32 | |
33 ALL= $(GENERAL) $(SRC) $(HEADER) | |
34 | |
35 top: | |
36 (cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(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/hmac/req | |
64 A=../testvectors/hmac/rsp | |
65 | |
66 fips_test: | |
67 -rm -rf $(A) | |
68 mkdir $(A) | |
69 if [ -f $(Q)/HMAC.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips
_hmactest < $(Q)/HMAC.req > $(A)/HMAC.rsp; fi | |
70 | |
71 lint: | |
72 lint -DLINT $(INCLUDES) $(SRC)>fluff | |
73 | |
74 depend: | |
75 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST) | |
76 | |
77 dclean: | |
78 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKE
FILE) >Makefile.new | |
79 mv -f Makefile.new $(MAKEFILE) | |
80 | |
81 clean: | |
82 rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | |
83 # DO NOT DELETE THIS LINE -- make depend depends on it. | |
84 | |
85 fips_hmac.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | |
86 fips_hmac.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | |
87 fips_hmac.o: ../../include/openssl/evp.h ../../include/openssl/fips.h | |
88 fips_hmac.o: ../../include/openssl/hmac.h ../../include/openssl/obj_mac.h | |
89 fips_hmac.o: ../../include/openssl/objects.h | |
90 fips_hmac.o: ../../include/openssl/opensslconf.h | |
91 fips_hmac.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | |
92 fips_hmac.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | |
93 fips_hmac.o: ../../include/openssl/symhacks.h fips_hmac.c | |
94 fips_hmac_selftest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | |
95 fips_hmac_selftest.o: ../../include/openssl/crypto.h | |
96 fips_hmac_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | |
97 fips_hmac_selftest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h | |
98 fips_hmac_selftest.o: ../../include/openssl/hmac.h | |
99 fips_hmac_selftest.o: ../../include/openssl/lhash.h | |
100 fips_hmac_selftest.o: ../../include/openssl/obj_mac.h | |
101 fips_hmac_selftest.o: ../../include/openssl/objects.h | |
102 fips_hmac_selftest.o: ../../include/openssl/opensslconf.h | |
103 fips_hmac_selftest.o: ../../include/openssl/opensslv.h | |
104 fips_hmac_selftest.o: ../../include/openssl/ossl_typ.h | |
105 fips_hmac_selftest.o: ../../include/openssl/safestack.h | |
106 fips_hmac_selftest.o: ../../include/openssl/stack.h | |
107 fips_hmac_selftest.o: ../../include/openssl/symhacks.h fips_hmac_selftest.c | |
108 fips_hmactest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | |
109 fips_hmactest.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | |
110 fips_hmactest.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | |
111 fips_hmactest.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | |
112 fips_hmactest.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h | |
113 fips_hmactest.o: ../../include/openssl/err.h ../../include/openssl/evp.h | |
114 fips_hmactest.o: ../../include/openssl/fips.h ../../include/openssl/hmac.h | |
115 fips_hmactest.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | |
116 fips_hmactest.o: ../../include/openssl/objects.h | |
117 fips_hmactest.o: ../../include/openssl/opensslconf.h | |
118 fips_hmactest.o: ../../include/openssl/opensslv.h | |
119 fips_hmactest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | |
120 fips_hmactest.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | |
121 fips_hmactest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | |
122 fips_hmactest.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | |
123 fips_hmactest.o: ../../include/openssl/x509v3.h ../fips_utl.h fips_hmactest.c | |
OLD | NEW |