~ubuntu-branches/ubuntu/maverick/openssl/maverick

« back to all changes in this revision

Viewing changes to fips/sha1/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Martin
  • Date: 2004-12-16 18:41:29 UTC
  • mto: (11.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20041216184129-z7xjkul57mh1jiha
Tags: upstream-0.9.7e
ImportĀ upstreamĀ versionĀ 0.9.7e

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# SSLeay/fips/sha1/Makefile
 
3
#
 
4
 
 
5
DIR=    sha1
 
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_sha1test.c
 
22
TESTDATA= sha1vectors.txt sha1hashes.txt
 
23
APPS=
 
24
EXE= fips_standalone_sha1
 
25
 
 
26
LIB=$(TOP)/libcrypto.a
 
27
LIBSRC=fips_sha1dgst.c fips_sha1_selftest.c asm/sx86-elf.s
 
28
LIBOBJ=fips_sha1dgst.o fips_sha1_selftest.o $(FIPS_SHA1_ASM_OBJ)
 
29
 
 
30
SRC= $(LIBSRC) fips_standalone_sha1.c
 
31
 
 
32
EXHEADER=
 
33
HEADER= $(EXHEADER) fips_sha_locl.h fips_md32_common.h
 
34
 
 
35
ALL=    $(GENERAL) $(SRC) $(HEADER)
 
36
 
 
37
top:
 
38
        (cd $(TOP); $(MAKE) DIRS=fips SDIRS=$(DIR) sub_all)
 
39
 
 
40
all:    check_standalone check lib
 
41
 
 
42
check:
 
43
        TOP=`pwd`/$(TOP) ../fips_check_sha1 fingerprint.sha1 $(LIBSRC) $(HEADER)
 
44
 
 
45
check_standalone: fips_standalone_sha1
 
46
        TOP=`pwd`/$(TOP) ../fips_check_sha1 standalone.sha1 $(SRC) $(HEADER)
 
47
 
 
48
lib:    $(LIBOBJ)
 
49
        $(AR) $(LIB) $(LIBOBJ)
 
50
        $(RANLIB) $(LIB) || echo Never mind.
 
51
        @sleep 2; touch lib
 
52
 
 
53
fips_standalone_sha1: fips_standalone_sha1.o fips_sha1dgst.o $(FIPS_SHA1_ASM_OBJ)
 
54
        $(CC) -o fips_standalone_sha1 $(CFLAGS) fips_standalone_sha1.o \
 
55
        fips_sha1dgst.o $(FIPS_SHA1_ASM_OBJ)
 
56
 
 
57
files:
 
58
        $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
 
59
 
 
60
links:
 
61
        @$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER)
 
62
        @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST)
 
63
        @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TESTDATA)
 
64
        @$(PERL) $(TOP)/util/mklink.pl $(TOP)/apps $(APPS)
 
65
 
 
66
install:
 
67
        @if test -n "$(EXHEADER)"; then \
 
68
          for i in $(EXHEADER) ; \
 
69
          do  \
 
70
            (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
 
71
            chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
 
72
          done; \
 
73
        fi
 
74
 
 
75
tags:
 
76
        ctags $(SRC)
 
77
 
 
78
tests:
 
79
 
 
80
top_fips_sha1test:
 
81
        (cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) TARGET=fips_sha1test sub_target)
 
82
 
 
83
fips_sha1test: fips_sha1test.o $(TOP)/libcrypto.a
 
84
        $(CC) $(CFLAGS) -o fips_sha1test fips_sha1test.o $(PEX_LIBS) $(TOP)/libcrypto.a $(EX_LIBS)
 
85
        TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a fips_sha1test
 
86
 
 
87
fips_test: top_fips_sha1test
 
88
        -rm -rf ../testvectors/sha1/rsp
 
89
        mkdir ../testvectors/sha1/rsp
 
90
        ./fips_sha1test ../testvectors/sha1/req/sha.req  > ../testvectors/sha1/rsp/sha.rsp
 
91
 
 
92
lint:
 
93
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
94
 
 
95
depend:
 
96
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST)
 
97
 
 
98
dclean:
 
99
        $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
 
100
        mv -f Makefile.new $(MAKEFILE)
 
101
 
 
102
clean:
 
103
        rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff $(EXE)
 
104
 
 
105
# DO NOT DELETE THIS LINE -- make depend depends on it.
 
106
 
 
107
fips_sha1_selftest.o: ../../include/openssl/bio.h
 
108
fips_sha1_selftest.o: ../../include/openssl/crypto.h
 
109
fips_sha1_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
 
110
fips_sha1_selftest.o: ../../include/openssl/fips.h
 
111
fips_sha1_selftest.o: ../../include/openssl/lhash.h
 
112
fips_sha1_selftest.o: ../../include/openssl/opensslconf.h
 
113
fips_sha1_selftest.o: ../../include/openssl/opensslv.h
 
114
fips_sha1_selftest.o: ../../include/openssl/safestack.h
 
115
fips_sha1_selftest.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
 
116
fips_sha1_selftest.o: ../../include/openssl/symhacks.h fips_sha1_selftest.c
 
117
fips_sha1dgst.o: ../../include/openssl/opensslconf.h
 
118
fips_sha1dgst.o: ../../include/openssl/opensslv.h fips_sha1dgst.c
 
119
fips_sha1test.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
 
120
fips_sha1test.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
 
121
fips_sha1test.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
 
122
fips_sha1test.o: ../../include/openssl/opensslconf.h
 
123
fips_sha1test.o: ../../include/openssl/opensslv.h
 
124
fips_sha1test.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
 
125
fips_sha1test.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
 
126
fips_sha1test.o: fips_sha1test.c
 
127
fips_standalone_sha1.o: ../../include/openssl/aes.h
 
128
fips_standalone_sha1.o: ../../include/openssl/asn1.h
 
129
fips_standalone_sha1.o: ../../include/openssl/bio.h
 
130
fips_standalone_sha1.o: ../../include/openssl/blowfish.h
 
131
fips_standalone_sha1.o: ../../include/openssl/bn.h ../../include/openssl/cast.h
 
132
fips_standalone_sha1.o: ../../include/openssl/crypto.h
 
133
fips_standalone_sha1.o: ../../include/openssl/des.h
 
134
fips_standalone_sha1.o: ../../include/openssl/des_old.h
 
135
fips_standalone_sha1.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
 
136
fips_standalone_sha1.o: ../../include/openssl/e_os2.h
 
137
fips_standalone_sha1.o: ../../include/openssl/evp.h
 
138
fips_standalone_sha1.o: ../../include/openssl/hmac.h
 
139
fips_standalone_sha1.o: ../../include/openssl/idea.h
 
140
fips_standalone_sha1.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
 
141
fips_standalone_sha1.o: ../../include/openssl/md5.h
 
142
fips_standalone_sha1.o: ../../include/openssl/mdc2.h
 
143
fips_standalone_sha1.o: ../../include/openssl/obj_mac.h
 
144
fips_standalone_sha1.o: ../../include/openssl/objects.h
 
145
fips_standalone_sha1.o: ../../include/openssl/opensslconf.h
 
146
fips_standalone_sha1.o: ../../include/openssl/opensslv.h
 
147
fips_standalone_sha1.o: ../../include/openssl/ossl_typ.h
 
148
fips_standalone_sha1.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
 
149
fips_standalone_sha1.o: ../../include/openssl/rc5.h
 
150
fips_standalone_sha1.o: ../../include/openssl/ripemd.h
 
151
fips_standalone_sha1.o: ../../include/openssl/rsa.h
 
152
fips_standalone_sha1.o: ../../include/openssl/safestack.h
 
153
fips_standalone_sha1.o: ../../include/openssl/sha.h
 
154
fips_standalone_sha1.o: ../../include/openssl/stack.h
 
155
fips_standalone_sha1.o: ../../include/openssl/symhacks.h
 
156
fips_standalone_sha1.o: ../../include/openssl/ui.h
 
157
fips_standalone_sha1.o: ../../include/openssl/ui_compat.h
 
158
fips_standalone_sha1.o: fips_standalone_sha1.c