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

« back to all changes in this revision

Viewing changes to fips/aes/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/aes/Makefile
 
3
#
 
4
 
 
5
DIR=    aes
 
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_aesavs.c
 
22
TESTDATA=fips_aes_data
 
23
APPS=
 
24
 
 
25
LIB=$(TOP)/libcrypto.a
 
26
LIBSRC=fips_aes_core.c fips_aes_selftest.c
 
27
LIBOBJ=fips_aes_core.o fips_aes_selftest.o
 
28
 
 
29
SRC= $(LIBSRC)
 
30
 
 
31
EXHEADER=
 
32
HEADER= $(EXHEADER) fips_aes_locl.h
 
33
 
 
34
ALL=    $(GENERAL) $(SRC) $(HEADER)
 
35
 
 
36
top:
 
37
        (cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) sub_all)
 
38
 
 
39
all:    check lib
 
40
 
 
41
check:
 
42
        TOP=`pwd`/$(TOP) ../fips_check_sha1 fingerprint.sha1 $(SRC) $(HEADER)
 
43
 
 
44
lib:    $(LIBOBJ)
 
45
        $(AR) $(LIB) $(LIBOBJ)
 
46
        $(RANLIB) $(LIB) || echo Never mind.
 
47
        @sleep 2; touch lib
 
48
 
 
49
files:
 
50
        $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
 
51
 
 
52
links:
 
53
        @$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER)
 
54
        @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST)
 
55
        @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TESTDATA)
 
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_aesavs:
 
73
        (cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) TARGET=fips_aesavs sub_target)
 
74
 
 
75
fips_aesavs: fips_aesavs.o $(TOP)/libcrypto.a
 
76
        $(CC) $(CFLAGS) -o fips_aesavs fips_aesavs.o $(PEX_LIBS) $(TOP)/libcrypto.a $(EX_LIBS)
 
77
        TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a fips_aesavs
 
78
 
 
79
fips_test: top top_fips_aesavs
 
80
        find ../testvectors/aes/req -name '*.req' > testlist
 
81
        -rm -rf ../testvectors/aes/rsp
 
82
        mkdir ../testvectors/aes/rsp
 
83
        ./fips_aesavs -d testlist
 
84
 
 
85
lint:
 
86
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
87
 
 
88
depend:
 
89
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) \
 
90
                $(SRC) $(TEST)
 
91
 
 
92
dclean:
 
93
        $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
 
94
        mv -f Makefile.new $(MAKEFILE)
 
95
 
 
96
clean:
 
97
        rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
 
98
# DO NOT DELETE THIS LINE -- make depend depends on it.
 
99
 
 
100
fips_aes_core.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
 
101
fips_aes_core.o: ../../include/openssl/fips.h
 
102
fips_aes_core.o: ../../include/openssl/opensslconf.h fips_aes_core.c
 
103
fips_aes_core.o: fips_aes_locl.h
 
104
fips_aes_selftest.o: ../../include/openssl/aes.h ../../include/openssl/bio.h
 
105
fips_aes_selftest.o: ../../include/openssl/crypto.h
 
106
fips_aes_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
 
107
fips_aes_selftest.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
 
108
fips_aes_selftest.o: ../../include/openssl/opensslconf.h
 
109
fips_aes_selftest.o: ../../include/openssl/opensslv.h
 
110
fips_aes_selftest.o: ../../include/openssl/safestack.h
 
111
fips_aes_selftest.o: ../../include/openssl/stack.h
 
112
fips_aes_selftest.o: ../../include/openssl/symhacks.h fips_aes_selftest.c
 
113
fips_aesavs.o: ../../e_os.h ../../include/openssl/aes.h
 
114
fips_aesavs.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
 
115
fips_aesavs.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
 
116
fips_aesavs.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h
 
117
fips_aesavs.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
 
118
fips_aesavs.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
 
119
fips_aesavs.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
 
120
fips_aesavs.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
 
121
fips_aesavs.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
 
122
fips_aesavs.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
 
123
fips_aesavs.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
 
124
fips_aesavs.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
 
125
fips_aesavs.o: ../../include/openssl/opensslconf.h
 
126
fips_aesavs.o: ../../include/openssl/opensslv.h
 
127
fips_aesavs.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rc2.h
 
128
fips_aesavs.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
 
129
fips_aesavs.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
 
130
fips_aesavs.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
 
131
fips_aesavs.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
 
132
fips_aesavs.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
 
133
fips_aesavs.o: fips_aesavs.c