1# 2# OpenSSL/fips/hmac/Makefile 3# 4 5DIR= hmac 6TOP= ../.. 7CC= cc 8INCLUDES= 9CFLAG=-g 10INSTALL_PREFIX= 11OPENSSLDIR= /usr/local/ssl 12INSTALLTOP=/usr/local/ssl 13MAKEDEPPROG= makedepend 14MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) 15MAKEFILE= Makefile 16AR= ar r 17 18CFLAGS= $(INCLUDES) $(CFLAG) 19 20GENERAL=Makefile 21TEST=fips_hmactest.c 22APPS= 23 24LIB=$(TOP)/libcrypto.a 25LIBSRC=fips_hmac.c fips_hmac_selftest.c 26LIBOBJ=fips_hmac.o fips_hmac_selftest.o 27 28SRC= $(LIBSRC) 29 30EXHEADER= 31HEADER= $(EXHEADER) 32 33ALL= $(GENERAL) $(SRC) $(HEADER) 34 35top: 36 (cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) sub_all) 37 38all: lib 39 40lib: $(LIBOBJ) 41 @echo $(LIBOBJ) > lib 42 43files: 44 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO 45 46links: 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 51install: 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 58tags: 59 ctags $(SRC) 60 61tests: 62 63Q=../testvectors/hmac/req 64A=../testvectors/hmac/rsp 65 66fips_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 71lint: 72 lint -DLINT $(INCLUDES) $(SRC)>fluff 73 74depend: 75 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST) 76 77dclean: 78 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new 79 mv -f Makefile.new $(MAKEFILE) 80 81clean: 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 85fips_hmac.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 86fips_hmac.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 87fips_hmac.o: ../../include/openssl/evp.h ../../include/openssl/fips.h 88fips_hmac.o: ../../include/openssl/hmac.h ../../include/openssl/obj_mac.h 89fips_hmac.o: ../../include/openssl/objects.h 90fips_hmac.o: ../../include/openssl/opensslconf.h 91fips_hmac.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 92fips_hmac.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 93fips_hmac.o: ../../include/openssl/symhacks.h fips_hmac.c 94fips_hmac_selftest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 95fips_hmac_selftest.o: ../../include/openssl/crypto.h 96fips_hmac_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 97fips_hmac_selftest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h 98fips_hmac_selftest.o: ../../include/openssl/hmac.h 99fips_hmac_selftest.o: ../../include/openssl/lhash.h 100fips_hmac_selftest.o: ../../include/openssl/obj_mac.h 101fips_hmac_selftest.o: ../../include/openssl/objects.h 102fips_hmac_selftest.o: ../../include/openssl/opensslconf.h 103fips_hmac_selftest.o: ../../include/openssl/opensslv.h 104fips_hmac_selftest.o: ../../include/openssl/ossl_typ.h 105fips_hmac_selftest.o: ../../include/openssl/safestack.h 106fips_hmac_selftest.o: ../../include/openssl/stack.h 107fips_hmac_selftest.o: ../../include/openssl/symhacks.h fips_hmac_selftest.c 108fips_hmactest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 109fips_hmactest.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 110fips_hmactest.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h 111fips_hmactest.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h 112fips_hmactest.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h 113fips_hmactest.o: ../../include/openssl/err.h ../../include/openssl/evp.h 114fips_hmactest.o: ../../include/openssl/fips.h ../../include/openssl/hmac.h 115fips_hmactest.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h 116fips_hmactest.o: ../../include/openssl/objects.h 117fips_hmactest.o: ../../include/openssl/opensslconf.h 118fips_hmactest.o: ../../include/openssl/opensslv.h 119fips_hmactest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h 120fips_hmactest.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 121fips_hmactest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 122fips_hmactest.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h 123fips_hmactest.o: ../../include/openssl/x509v3.h ../fips_utl.h fips_hmactest.c 124