]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/aes/Makefile
ARM assembly pack: AES update from master (including bit-sliced module).
[thirdparty/openssl.git] / crypto / aes / Makefile
CommitLineData
6f9079fd
RL
1#
2# crypto/aes/Makefile
3#
4
5DIR= aes
6TOP= ../..
7CC= cc
8CPP= $(CC) -E
9INCLUDES=
10CFLAG=-g
42ba5d23 11MAKEFILE= Makefile
6f9079fd
RL
12AR= ar r
13
0ddd3ea2 14AES_ENC=aes_core.o aes_cbc.o
d0590fe6 15
6f9079fd 16CFLAGS= $(INCLUDES) $(CFLAG)
33c3ecf7 17ASFLAGS= $(INCLUDES) $(ASFLAG)
fbdce13e 18AFLAGS= $(ASFLAGS)
6f9079fd
RL
19
20GENERAL=Makefile
72165799
RL
21#TEST=aestest.c
22TEST=
6f9079fd
RL
23APPS=
24
25LIB=$(TOP)/libcrypto.a
aa6d1a0c 26LIBSRC=aes_core.c aes_misc.c aes_ecb.c aes_cbc.c aes_cfb.c aes_ofb.c \
6e3bc4f0
DSH
27 aes_ctr.c aes_ige.c aes_wrap.c
28LIBOBJ=aes_misc.o aes_ecb.o aes_cfb.o aes_ofb.o aes_ctr.o aes_ige.o aes_wrap.o \
0ddd3ea2 29 $(AES_ENC)
6f9079fd
RL
30
31SRC= $(LIBSRC)
32
33EXHEADER= aes.h
34HEADER= aes_locl.h $(EXHEADER)
35
36ALL= $(GENERAL) $(SRC) $(HEADER)
37
38top:
39 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
40
41all: lib
42
43lib: $(LIBOBJ)
44 $(AR) $(LIB) $(LIBOBJ)
45 $(RANLIB) $(LIB) || echo Never mind.
46 @touch lib
47
67ea999d 48aes-ia64.s: asm/aes-ia64.S
33c3ecf7
AP
49 $(CC) $(CFLAGS) -E asm/aes-ia64.S > $@
50
fa8e921f
AP
51aes-586.s: asm/aes-586.pl ../perlasm/x86asm.pl
52 $(PERL) asm/aes-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
4afba1f3
AP
53vpaes-x86.s: asm/vpaes-x86.pl ../perlasm/x86asm.pl
54 $(PERL) asm/vpaes-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
fbe2e289
AP
55aesni-x86.s: asm/aesni-x86.pl ../perlasm/x86asm.pl
56 $(PERL) asm/aesni-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
045d3285 57
d8518521 58aes-x86_64.s: asm/aes-x86_64.pl
1416aec6 59 $(PERL) asm/aes-x86_64.pl $(PERLASM_SCHEME) > $@
4afba1f3
AP
60vpaes-x86_64.s: asm/vpaes-x86_64.pl
61 $(PERL) asm/vpaes-x86_64.pl $(PERLASM_SCHEME) > $@
62bsaes-x86_64.s: asm/bsaes-x86_64.pl
63 $(PERL) asm/bsaes-x86_64.pl $(PERLASM_SCHEME) > $@
fbe2e289
AP
64aesni-x86_64.s: asm/aesni-x86_64.pl
65 $(PERL) asm/aesni-x86_64.pl $(PERLASM_SCHEME) > $@
84e7485b
AP
66aesni-sha1-x86_64.s: asm/aesni-sha1-x86_64.pl
67 $(PERL) asm/aesni-sha1-x86_64.pl $(PERLASM_SCHEME) > $@
b0f78dc0
AP
68aesni-sha256-x86_64.s: asm/aesni-sha256-x86_64.pl
69 $(PERL) asm/aesni-sha256-x86_64.pl $(PERLASM_SCHEME) > $@
d8518521 70
064f6cb6
AP
71aes-sparcv9.s: asm/aes-sparcv9.pl
72 $(PERL) asm/aes-sparcv9.pl $(CFLAGS) > $@
d2157247
AP
73aest4-sparcv9.s: asm/aest4-sparcv9.pl
74 $(PERL) asm/aest4-sparcv9.pl $(CFLAGS) > $@
064f6cb6 75
addd641f
AP
76aes-ppc.s: asm/aes-ppc.pl
77 $(PERL) asm/aes-ppc.pl $(PERLASM_SCHEME) $@
78
4afba1f3
AP
79aes-parisc.s: asm/aes-parisc.pl
80 $(PERL) asm/aes-parisc.pl $(PERLASM_SCHEME) $@
81
82aes-mips.S: asm/aes-mips.pl
83 $(PERL) asm/aes-mips.pl $(PERLASM_SCHEME) $@
84
b900df52 85# GNU make "catch all"
4afba1f3
AP
86aes-%.S: asm/aes-%.pl; $(PERL) $< $(PERLASM_SCHEME) > $@
87aes-armv4.o: aes-armv4.S
b76310ba
AP
88bsaes-%.S: asm/bsaes-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
89bsaes-armv7.o: bsaes-armv7.S
b900df52 90
6f9079fd 91files:
e887c418 92 $(PERL) $(TOP)/util/files.pl "AES_ENC=$(AES_ENC)" Makefile >> $(TOP)/MINFO
6f9079fd
RL
93
94links:
6f9079fd 95 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
3adb8c38 96 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
6f9079fd
RL
97 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
98
ce92b6eb 99install:
81a86fcf 100 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
a2ac429d 101 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
6f9079fd
RL
102 do \
103 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
104 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
105 done;
106
107tags:
108 ctags $(SRC)
109
110tests:
111
112lint:
113 lint -DLINT $(INCLUDES) $(SRC)>fluff
114
115depend:
ce92b6eb 116 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
001ab3ab 117 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
6f9079fd
RL
118
119dclean:
120 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
121 mv -f Makefile.new $(MAKEFILE)
122
123clean:
67ea999d 124 rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
6f9079fd
RL
125
126# DO NOT DELETE THIS LINE -- make depend depends on it.
127
5d48a66a
AP
128aes_cbc.o: ../../include/openssl/aes.h ../../include/openssl/modes.h
129aes_cbc.o: ../../include/openssl/opensslconf.h aes_cbc.c
130aes_cfb.o: ../../include/openssl/aes.h ../../include/openssl/modes.h
131aes_cfb.o: ../../include/openssl/opensslconf.h aes_cfb.c
ce92b6eb
AP
132aes_core.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
133aes_core.o: ../../include/openssl/opensslconf.h aes_core.c aes_locl.h
5d48a66a
AP
134aes_ctr.o: ../../include/openssl/aes.h ../../include/openssl/modes.h
135aes_ctr.o: ../../include/openssl/opensslconf.h aes_ctr.c
ce92b6eb
AP
136aes_ecb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
137aes_ecb.o: ../../include/openssl/opensslconf.h aes_ecb.c aes_locl.h
4d7aff70
DSH
138aes_ige.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/bio.h
139aes_ige.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
140aes_ige.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
141aes_ige.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
142aes_ige.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
143aes_ige.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
144aes_ige.o: ../../include/openssl/symhacks.h ../cryptlib.h aes_ige.c aes_locl.h
cf199fec
DSH
145aes_misc.o: ../../include/openssl/aes.h ../../include/openssl/crypto.h
146aes_misc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
147aes_misc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
148aes_misc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
149aes_misc.o: ../../include/openssl/symhacks.h aes_locl.h aes_misc.c
5d48a66a
AP
150aes_ofb.o: ../../include/openssl/aes.h ../../include/openssl/modes.h
151aes_ofb.o: ../../include/openssl/opensslconf.h aes_ofb.c
fe591284
DSH
152aes_wrap.o: ../../e_os.h ../../include/openssl/aes.h
153aes_wrap.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
154aes_wrap.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
155aes_wrap.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
bc35b8e4 156aes_wrap.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
fe591284
DSH
157aes_wrap.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
158aes_wrap.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
159aes_wrap.o: ../../include/openssl/symhacks.h ../cryptlib.h aes_wrap.c