~ubuntu-branches/ubuntu/trusty/openssl/trusty

« back to all changes in this revision

Viewing changes to crypto/modes/Makefile.save

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2014-01-08 15:57:24 UTC
  • mfrom: (11.1.46 sid)
  • Revision ID: package-import@ubuntu.com-20140108155724-kl61on9fyqmod2z9
Tags: 1.0.1f-1ubuntu1
* Merge with Debian, remaining changes.
  - debian/libssl1.0.0.postinst:
    + Display a system restart required notification on libssl1.0.0
      upgrade on servers.
    + Use a different priority for libssl1.0.0/restart-services depending
      on whether a desktop, or server dist-upgrade is being performed.
  - debian/{libssl1.0.0-udeb.dirs, control, rules}: Create
    libssl1.0.0-udeb, for the benefit of wget-udeb (no wget-udeb package
    in Debian).
  - debian/{libcrypto1.0.0-udeb.dirs, libssl1.0.0.dirs, libssl1.0.0.files,
    rules}: Move runtime libraries to /lib, for the benefit of
    wpasupplicant.
  - debian/patches/perlpath-quilt.patch: Don't change perl #! paths under
    .pc.
  - debian/rules:
    + Don't run 'make test' when cross-building.
    + Use host compiler when cross-building.  Patch from Neil Williams.
    + Don't build for processors no longer supported: i586 (on i386)
    + Fix Makefile to properly clean up libs/ dirs in clean target.
    + Replace duplicate files in the doc directory with symlinks.
  - debian/control: Mark Debian Vcs-* as XS-Debian-Vcs-*
  - debian/patches/ubuntu_deb676533_arm_asm.patch: Enable arm assembly
    code.
  - debian/rules: Enable optimized 64bit elliptic curve code contributed
    by Google.
* Dropped changes:
  - debian/patches/arm64-support: included in debian-targets.patch
  - debian/patches/no_default_rdrand.patch: upstream
  - debian/patches/openssl-1.0.1e-env-zlib.patch: zlib is now completely
    disabled in debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# OpenSSL/crypto/modes/Makefile
 
3
#
 
4
 
 
5
DIR=    modes
 
6
TOP=    ../..
 
7
CC=     cc
 
8
INCLUDES= -I.. -I$(TOP) -I../../include
 
9
CFLAG=-g
 
10
MAKEFILE=       Makefile
 
11
AR=             ar r
 
12
 
 
13
MODES_ASM_OBJ=
 
14
 
 
15
CFLAGS= $(INCLUDES) $(CFLAG)
 
16
ASFLAGS= $(INCLUDES) $(ASFLAG)
 
17
AFLAGS= $(ASFLAGS)
 
18
 
 
19
GENERAL=Makefile
 
20
TEST=
 
21
APPS=
 
22
 
 
23
LIB=$(TOP)/libcrypto.a
 
24
LIBSRC= cbc128.c ctr128.c cts128.c cfb128.c ofb128.c gcm128.c \
 
25
        ccm128.c xts128.c
 
26
LIBOBJ= cbc128.o ctr128.o cts128.o cfb128.o ofb128.o gcm128.o \
 
27
        ccm128.o xts128.o $(MODES_ASM_OBJ)
 
28
 
 
29
SRC= $(LIBSRC)
 
30
 
 
31
#EXHEADER= store.h str_compat.h
 
32
EXHEADER= modes.h
 
33
HEADER= modes_lcl.h $(EXHEADER)
 
34
 
 
35
ALL=    $(GENERAL) $(SRC) $(HEADER)
 
36
 
 
37
top:
 
38
        (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
 
39
 
 
40
all:    lib
 
41
 
 
42
lib:    $(LIBOBJ)
 
43
        $(AR) $(LIB) $(LIBOBJ)
 
44
        $(RANLIB) $(LIB) || echo Never mind.
 
45
        @touch lib
 
46
 
 
47
ghash-ia64.s:   asm/ghash-ia64.pl
 
48
        $(PERL) asm/ghash-ia64.pl $@ $(CFLAGS)
 
49
ghash-x86.s:    asm/ghash-x86.pl
 
50
        $(PERL) asm/ghash-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
 
51
ghash-x86_64.s: asm/ghash-x86_64.pl
 
52
        $(PERL) asm/ghash-x86_64.pl $(PERLASM_SCHEME) > $@
 
53
ghash-sparcv9.s:        asm/ghash-sparcv9.pl
 
54
        $(PERL) asm/ghash-sparcv9.pl $@ $(CFLAGS)
 
55
ghash-alpha.s:  asm/ghash-alpha.pl
 
56
        (preproc=/tmp/$$$$.$@; trap "rm $$preproc" INT; \
 
57
        $(PERL) asm/ghash-alpha.pl > $$preproc && \
 
58
        $(CC) -E $$preproc > $@ && rm $$preproc)
 
59
 
 
60
ghash-parisc.s: asm/ghash-parisc.pl
 
61
        $(PERL) asm/ghash-parisc.pl $(PERLASM_SCHEME) $@
 
62
 
 
63
# GNU make "catch all"
 
64
ghash-%.S:      asm/ghash-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
 
65
 
 
66
ghash-armv4.o:  ghash-armv4.S
 
67
 
 
68
files:
 
69
        $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
 
70
 
 
71
links:
 
72
        @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
 
73
        @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
 
74
        @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
 
75
 
 
76
install:
 
77
        @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
 
78
        @headerlist="$(EXHEADER)"; for i in $$headerlist; \
 
79
        do  \
 
80
        (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
 
81
        chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
 
82
        done;
 
83
 
 
84
tags:
 
85
        ctags $(SRC)
 
86
 
 
87
tests:
 
88
 
 
89
lint:
 
90
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
91
 
 
92
depend:
 
93
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
 
94
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
 
95
 
 
96
dclean:
 
97
        $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
 
98
        mv -f Makefile.new $(MAKEFILE)
 
99
 
 
100
clean:
 
101
        rm -f *.s *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
 
102
 
 
103
# DO NOT DELETE THIS LINE -- make depend depends on it.
 
104
 
 
105
cbc128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
 
106
cbc128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
 
107
cbc128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
 
108
cbc128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
 
109
cbc128.o: ../../include/openssl/symhacks.h cbc128.c modes_lcl.h
 
110
ccm128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
 
111
ccm128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
 
112
ccm128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
 
113
ccm128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
 
114
ccm128.o: ../../include/openssl/symhacks.h ccm128.c modes_lcl.h
 
115
cfb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
 
116
cfb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
 
117
cfb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
 
118
cfb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
 
119
cfb128.o: ../../include/openssl/symhacks.h cfb128.c modes_lcl.h
 
120
ctr128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
 
121
ctr128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
 
122
ctr128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
 
123
ctr128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
 
124
ctr128.o: ../../include/openssl/symhacks.h ctr128.c modes_lcl.h
 
125
cts128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
 
126
cts128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
 
127
cts128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
 
128
cts128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
 
129
cts128.o: ../../include/openssl/symhacks.h cts128.c modes_lcl.h
 
130
gcm128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
 
131
gcm128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
 
132
gcm128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
 
133
gcm128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
 
134
gcm128.o: ../../include/openssl/symhacks.h gcm128.c modes_lcl.h
 
135
ofb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
 
136
ofb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
 
137
ofb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
 
138
ofb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
 
139
ofb128.o: ../../include/openssl/symhacks.h modes_lcl.h ofb128.c
 
140
xts128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
 
141
xts128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
 
142
xts128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
 
143
xts128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
 
144
xts128.o: ../../include/openssl/symhacks.h modes_lcl.h xts128.c