]> granicus.if.org Git - openssl/commitdiff
Bring back fips_standalone_sha1.
authorAndy Polyakov <appro@openssl.org>
Sun, 17 Apr 2005 22:00:35 +0000 (22:00 +0000)
committerAndy Polyakov <appro@openssl.org>
Sun, 17 Apr 2005 22:00:35 +0000 (22:00 +0000)
fips/sha1/Makefile

index 224ff65ea043a01c988e7f0d1b1b24b753c7da84..a1e27e3b0f13c7bddb3b7ff84ead88342f45ccc0 100644 (file)
@@ -14,6 +14,7 @@ MAKEDEPPROG=  makedepend
 MAKEDEPEND=    $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
 MAKEFILE=      Makefile
 AR=            ar r
+EXE_EXT=
 
 CFLAGS= $(INCLUDES) $(CFLAG)
 
@@ -21,7 +22,7 @@ GENERAL=Makefile
 TEST= fips_sha1test.c
 TESTDATA= sha1vectors.txt sha1hashes.txt
 APPS=
-EXE= fips_standalone_sha1
+EXE= fips_standalone_sha1$(EXE_EXT)
 
 LIB=$(TOP)/libcrypto.a
 LIBSRC=fips_sha1dgst.c fips_sha1_selftest.c asm/sx86-elf.s
@@ -37,16 +38,19 @@ ALL=    $(GENERAL) $(SRC) $(HEADER)
 top:
        (cd $(TOP); $(MAKE) DIRS=fips SDIRS=$(DIR) sub_all)
 
-all:   lib
+all:   check_standalone lib
+
+check_standalone:      fips_standalone_sha1$(EXE_EXT)
+       TOP=`pwd`/$(TOP) ../fips_check_sha1 standalone.sha1 $(SRC) $(HEADER)
 
 lib:   $(LIBOBJ)
        $(AR) $(LIB) $(LIBOBJ)
        $(RANLIB) $(LIB) || echo Never mind.
        @sleep 2; touch lib
 
-fips_standalone_sha1: fips_standalone_sha1.o fips_sha1dgst.o $(FIPS_SHA1_ASM_OBJ)
-       $(CC) -o fips_standalone_sha1 $(CFLAGS) fips_standalone_sha1.o \
-       fips_sha1dgst.o $(FIPS_SHA1_ASM_OBJ)
+fips_standalone_sha1$(EXE_EXT): fips_standalone_sha1.o fips_sha1dgst.o $(FIPS_SHA1_ASM_OBJ)
+       $(CC) -o fips_standalone_sha1$(EXE_EXT) $(CFLAGS) \
+               fips_standalone_sha1.o fips_sha1dgst.o $(FIPS_SHA1_ASM_OBJ)
 
 files:
        $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO