1193645Ssimon# 2193645Ssimon# OpenSSL/fips/hmac/Makefile 3193645Ssimon# 4193645Ssimon 5193645SsimonDIR= hmac 6193645SsimonTOP= ../.. 7193645SsimonCC= cc 8193645SsimonINCLUDES= 9193645SsimonCFLAG=-g 10193645SsimonINSTALL_PREFIX= 11193645SsimonOPENSSLDIR= /usr/local/ssl 12193645SsimonINSTALLTOP=/usr/local/ssl 13193645SsimonMAKEDEPPROG= makedepend 14193645SsimonMAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) 15193645SsimonMAKEFILE= Makefile 16193645SsimonAR= ar r 17193645Ssimon 18193645SsimonCFLAGS= $(INCLUDES) $(CFLAG) 19193645Ssimon 20193645SsimonGENERAL=Makefile 21193645SsimonTEST=fips_hmactest.c 22193645SsimonAPPS= 23193645Ssimon 24193645SsimonLIB=$(TOP)/libcrypto.a 25193645SsimonLIBSRC=fips_hmac.c fips_hmac_selftest.c 26193645SsimonLIBOBJ=fips_hmac.o fips_hmac_selftest.o 27193645Ssimon 28193645SsimonSRC= $(LIBSRC) 29193645Ssimon 30193645SsimonEXHEADER= 31193645SsimonHEADER= $(EXHEADER) 32193645Ssimon 33193645SsimonALL= $(GENERAL) $(SRC) $(HEADER) 34193645Ssimon 35193645Ssimontop: 36193645Ssimon (cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) sub_all) 37193645Ssimon 38193645Ssimonall: lib 39193645Ssimon 40193645Ssimonlib: $(LIBOBJ) 41193645Ssimon @echo $(LIBOBJ) > lib 42193645Ssimon 43193645Ssimonfiles: 44193645Ssimon $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO 45193645Ssimon 46193645Ssimonlinks: 47193645Ssimon @$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER) 48193645Ssimon @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST) 49193645Ssimon @$(PERL) $(TOP)/util/mklink.pl $(TOP)/apps $(APPS) 50193645Ssimon 51193645Ssimoninstall: 52193645Ssimon @headerlist="$(EXHEADER)"; for i in $$headerlist; \ 53193645Ssimon do \ 54193645Ssimon (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ 55193645Ssimon chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ 56193645Ssimon done 57193645Ssimon 58193645Ssimontags: 59193645Ssimon ctags $(SRC) 60193645Ssimon 61193645Ssimontests: 62193645Ssimon 63193645SsimonQ=../testvectors/hmac/req 64193645SsimonA=../testvectors/hmac/rsp 65193645Ssimon 66193645Ssimonfips_test: 67193645Ssimon -rm -rf $(A) 68193645Ssimon mkdir $(A) 69193645Ssimon if [ -f $(Q)/HMAC.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_hmactest < $(Q)/HMAC.req > $(A)/HMAC.rsp; fi 70193645Ssimon 71193645Ssimonlint: 72193645Ssimon lint -DLINT $(INCLUDES) $(SRC)>fluff 73193645Ssimon 74193645Ssimondepend: 75193645Ssimon $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST) 76193645Ssimon 77193645Ssimondclean: 78193645Ssimon $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new 79193645Ssimon mv -f Makefile.new $(MAKEFILE) 80193645Ssimon 81193645Ssimonclean: 82193645Ssimon rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff 83193645Ssimon# DO NOT DELETE THIS LINE -- make depend depends on it. 84193645Ssimon 85193645Ssimonfips_hmac.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 86193645Ssimonfips_hmac.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 87193645Ssimonfips_hmac.o: ../../include/openssl/evp.h ../../include/openssl/fips.h 88193645Ssimonfips_hmac.o: ../../include/openssl/hmac.h ../../include/openssl/obj_mac.h 89193645Ssimonfips_hmac.o: ../../include/openssl/objects.h 90193645Ssimonfips_hmac.o: ../../include/openssl/opensslconf.h 91193645Ssimonfips_hmac.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 92193645Ssimonfips_hmac.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 93193645Ssimonfips_hmac.o: ../../include/openssl/symhacks.h fips_hmac.c 94193645Ssimonfips_hmac_selftest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 95193645Ssimonfips_hmac_selftest.o: ../../include/openssl/crypto.h 96193645Ssimonfips_hmac_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 97193645Ssimonfips_hmac_selftest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h 98193645Ssimonfips_hmac_selftest.o: ../../include/openssl/hmac.h 99193645Ssimonfips_hmac_selftest.o: ../../include/openssl/lhash.h 100193645Ssimonfips_hmac_selftest.o: ../../include/openssl/obj_mac.h 101193645Ssimonfips_hmac_selftest.o: ../../include/openssl/objects.h 102193645Ssimonfips_hmac_selftest.o: ../../include/openssl/opensslconf.h 103193645Ssimonfips_hmac_selftest.o: ../../include/openssl/opensslv.h 104193645Ssimonfips_hmac_selftest.o: ../../include/openssl/ossl_typ.h 105193645Ssimonfips_hmac_selftest.o: ../../include/openssl/safestack.h 106193645Ssimonfips_hmac_selftest.o: ../../include/openssl/stack.h 107193645Ssimonfips_hmac_selftest.o: ../../include/openssl/symhacks.h fips_hmac_selftest.c 108193645Ssimonfips_hmactest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 109193645Ssimonfips_hmactest.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 110193645Ssimonfips_hmactest.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h 111193645Ssimonfips_hmactest.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h 112193645Ssimonfips_hmactest.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h 113193645Ssimonfips_hmactest.o: ../../include/openssl/err.h ../../include/openssl/evp.h 114193645Ssimonfips_hmactest.o: ../../include/openssl/fips.h ../../include/openssl/hmac.h 115193645Ssimonfips_hmactest.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h 116193645Ssimonfips_hmactest.o: ../../include/openssl/objects.h 117193645Ssimonfips_hmactest.o: ../../include/openssl/opensslconf.h 118193645Ssimonfips_hmactest.o: ../../include/openssl/opensslv.h 119193645Ssimonfips_hmactest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h 120193645Ssimonfips_hmactest.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 121193645Ssimonfips_hmactest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 122193645Ssimonfips_hmactest.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h 123193645Ssimonfips_hmactest.o: ../../include/openssl/x509v3.h ../fips_utl.h fips_hmactest.c 124