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

« back to all changes in this revision

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