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