X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=fips%2FMakefile;h=fb5083810a1b4fc1104aff4e15131d1f319ece0d;hp=e84a4fb0441778bdc188c5f4988504cba9894d80;hb=c3586512184b4ca6c682c479323ac282ab30298e;hpb=ac892b7aa6532e0345e430208335403ead5d2de1 diff --git a/fips/Makefile b/fips/Makefile index e84a4fb044..fb5083810a 100644 --- a/fips/Makefile +++ b/fips/Makefile @@ -45,13 +45,13 @@ LIBSRC=fips.c fips_post.c LIBOBJ=fips.o fips_post.o FIPS_OBJ_LISTS=sha/lib hmac/lib rand/lib des/lib aes/lib dsa/lib rsa/lib \ - dh/lib utl/lib ecdsa/lib cmac/lib + dh/lib utl/lib ecdsa/lib ecdh/lib cmac/lib SRC= $(LIBSRC) EXHEADER=fips.h fipssyms.h -HEADER=$(EXHEADER) fips_utl.h fips_locl.h -EXE=fipsld +HEADER=$(EXHEADER) fips_utl.h fips_locl.h fips_auth.h +EXE=fipsld fips_standalone_sha1 ALL= $(GENERAL) $(SRC) $(HEADER) @@ -92,11 +92,8 @@ fipscanister.o: fips_start.o $(LIBOBJ) $(FIPS_OBJ_LISTS) fips_end.o list="$(DES_ENC)"; for i in $$list; do FIPS_ASM="$$FIPS_ASM ../crypto/des/$$i" ; done; \ list="$(SHA1_ASM_OBJ)"; for i in $$list; do FIPS_ASM="$$FIPS_ASM ../crypto/sha/$$i" ; done; \ list="$(MODES_ASM_OBJ)"; for i in $$list; do FIPS_ASM="$$FIPS_ASM ../crypto/modes/$$i" ; done; \ - if [ -n "$(CPUID_OBJ)" ]; then \ - CPUID=../crypto/$(CPUID_OBJ) ; \ - else \ - CPUID="" ; \ - fi ; \ + CPUID=""; \ + list="$(CPUID_OBJ)"; for i in $$list; do CPUID="$$CPUID ../crypto/$$i" ; done; \ objs="fips_start.o $(LIBOBJ) $(FIPS_EX_OBJ) $$CPUID $$FIPS_ASM"; \ for i in $(FIPS_OBJ_LISTS); do \ dir=`dirname $$i`; script="s|^|$$dir/|;s| | $$dir/|g"; \ @@ -104,13 +101,16 @@ fipscanister.o: fips_start.o $(LIBOBJ) $(FIPS_OBJ_LISTS) fips_end.o done; \ objs="$$objs fips_end.o" ; \ os="`(uname -s) 2>/dev/null`"; cflags="$(CFLAGS)"; \ - [ "$$os" = "AIX" ] && cflags="$$cflags -Wl,-bnoobjreorder"; \ + case "$$os" in \ + AIX) cflags="$$cflags -Wl,-bnoobjreorder" ;; \ + HP-UX) cflags="$$cflags -Wl,+sectionmerge" ;; \ + esac; \ if [ -n "${FIPS_SITE_LD}" ]; then \ set -x; ${FIPS_SITE_LD} -r -o $@ $$objs; \ elif $(CC) -dumpversion >/dev/null 2>&1; then \ set -x; $(CC) $$cflags -r -nostdlib -o $@ $$objs ; \ else case "$$os" in \ - HP-UX|OSF1|SunOS) set -x; /usr/ccs/bin/ld -r -o $@ $$objs ;; \ + OSF1|SunOS) set -x; /usr/ccs/bin/ld -r -o $@ $$objs ;; \ *) set -x; $(CC) $$cflags -r -o $@ $$objs ;; \ esac fi ./fips_standalone_sha1$(EXE_EXT) fipscanister.o > fipscanister.o.sha1 @@ -219,17 +219,29 @@ dclean: # DO NOT DELETE THIS LINE -- make depend depends on it. -fips.o: ../include/openssl/asn1.h ../include/openssl/bio.h -fips.o: ../include/openssl/crypto.h ../include/openssl/des.h -fips.o: ../include/openssl/des_old.h ../include/openssl/dsa.h -fips.o: ../include/openssl/e_os2.h ../include/openssl/ec.h -fips.o: ../include/openssl/ecdsa.h ../include/openssl/err.h -fips.o: ../include/openssl/evp.h ../include/openssl/fips.h -fips.o: ../include/openssl/fips_rand.h ../include/openssl/hmac.h -fips.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h -fips.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h -fips.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h -fips.o: ../include/openssl/rand.h ../include/openssl/rsa.h -fips.o: ../include/openssl/safestack.h ../include/openssl/stack.h -fips.o: ../include/openssl/symhacks.h ../include/openssl/ui.h -fips.o: ../include/openssl/ui_compat.h fips.c fips_locl.h +fips.o: ../include/openssl/aes.h ../include/openssl/asn1.h +fips.o: ../include/openssl/bio.h ../include/openssl/crypto.h +fips.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h +fips.o: ../include/openssl/ec.h ../include/openssl/ecdsa.h +fips.o: ../include/openssl/err.h ../include/openssl/evp.h +fips.o: ../include/openssl/fips.h ../include/openssl/fips_rand.h +fips.o: ../include/openssl/hmac.h ../include/openssl/lhash.h +fips.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h +fips.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h +fips.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h +fips.o: ../include/openssl/rsa.h ../include/openssl/safestack.h +fips.o: ../include/openssl/stack.h ../include/openssl/symhacks.h fips.c +fips.o: fips_locl.h +fips_post.o: ../include/openssl/aes.h ../include/openssl/asn1.h +fips_post.o: ../include/openssl/bio.h ../include/openssl/crypto.h +fips_post.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h +fips_post.o: ../include/openssl/ec.h ../include/openssl/ecdsa.h +fips_post.o: ../include/openssl/err.h ../include/openssl/evp.h +fips_post.o: ../include/openssl/fips.h ../include/openssl/fips_rand.h +fips_post.o: ../include/openssl/hmac.h ../include/openssl/lhash.h +fips_post.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h +fips_post.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h +fips_post.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h +fips_post.o: ../include/openssl/rsa.h ../include/openssl/safestack.h +fips_post.o: ../include/openssl/stack.h ../include/openssl/symhacks.h +fips_post.o: fips_locl.h fips_post.c