diff options
Diffstat (limited to 'src/lib/libcrypto/aes/Makefile')
-rw-r--r-- | src/lib/libcrypto/aes/Makefile | 55 |
1 files changed, 41 insertions, 14 deletions
diff --git a/src/lib/libcrypto/aes/Makefile b/src/lib/libcrypto/aes/Makefile index a37c6f66a2..22c7203dbb 100644 --- a/src/lib/libcrypto/aes/Makefile +++ b/src/lib/libcrypto/aes/Makefile | |||
@@ -8,16 +8,14 @@ CC= cc | |||
8 | CPP= $(CC) -E | 8 | CPP= $(CC) -E |
9 | INCLUDES= | 9 | INCLUDES= |
10 | CFLAG=-g | 10 | CFLAG=-g |
11 | INSTALL_PREFIX= | ||
12 | OPENSSLDIR= /usr/local/ssl | ||
13 | INSTALLTOP= /usr/local/ssl | ||
14 | MAKEDEPPROG= makedepend | ||
15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
16 | MAKEFILE= Makefile | 11 | MAKEFILE= Makefile |
17 | AR= ar r | 12 | AR= ar r |
18 | 13 | ||
19 | # CFLAGS= -mpentiumpro $(INCLUDES) $(CFLAG) -O3 -fexpensive-optimizations -funroll-loops -fforce-addr | 14 | AES_ASM_OBJ=aes_core.o aes_cbc.o |
15 | |||
20 | CFLAGS= $(INCLUDES) $(CFLAG) | 16 | CFLAGS= $(INCLUDES) $(CFLAG) |
17 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
18 | AFLAGS= $(ASFLAGS) | ||
21 | 19 | ||
22 | GENERAL=Makefile | 20 | GENERAL=Makefile |
23 | #TEST=aestest.c | 21 | #TEST=aestest.c |
@@ -25,8 +23,10 @@ TEST= | |||
25 | APPS= | 23 | APPS= |
26 | 24 | ||
27 | LIB=$(TOP)/libcrypto.a | 25 | LIB=$(TOP)/libcrypto.a |
28 | LIBSRC=aes_core.c aes_misc.c aes_ecb.c aes_cbc.c aes_cfb.c aes_ofb.c aes_ctr.c | 26 | LIBSRC=aes_core.c aes_misc.c aes_ecb.c aes_cbc.c aes_cfb.c aes_ofb.c \ |
29 | LIBOBJ=aes_core.o aes_misc.o aes_ecb.o aes_cbc.o aes_cfb.o aes_ofb.o aes_ctr.o | 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 \ | ||
29 | $(AES_ASM_OBJ) | ||
30 | 30 | ||
31 | SRC= $(LIBSRC) | 31 | SRC= $(LIBSRC) |
32 | 32 | ||
@@ -47,6 +47,19 @@ lib: $(LIBOBJ) | |||
47 | 47 | ||
48 | $(LIBOBJ): $(LIBSRC) | 48 | $(LIBOBJ): $(LIBSRC) |
49 | 49 | ||
50 | aes-ia64.s: asm/aes-ia64.S | ||
51 | $(CC) $(CFLAGS) -E asm/aes-ia64.S > $@ | ||
52 | |||
53 | ax86-elf.s: asm/aes-586.pl ../perlasm/x86asm.pl | ||
54 | (cd asm; $(PERL) aes-586.pl elf $(CFLAGS) $(PROCESSOR) > ../$@) | ||
55 | ax86-cof.s: asm/aes-586.pl ../perlasm/x86asm.pl | ||
56 | (cd asm; $(PERL) aes-586.pl coff $(CFLAGS) $(PROCESSOR) > ../$@) | ||
57 | ax86-out.s: asm/aes-586.pl ../perlasm/x86asm.pl | ||
58 | (cd asm; $(PERL) aes-586.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@) | ||
59 | |||
60 | aes-x86_64.s: asm/aes-x86_64.pl | ||
61 | $(PERL) asm/aes-x86_64.pl $@ | ||
62 | |||
50 | files: | 63 | files: |
51 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | 64 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO |
52 | 65 | ||
@@ -55,9 +68,8 @@ links: | |||
55 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | 68 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) |
56 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | 69 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
57 | 70 | ||
58 | install: installs | 71 | install: |
59 | 72 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... | |
60 | installs: | ||
61 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | 73 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ |
62 | do \ | 74 | do \ |
63 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | 75 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
@@ -73,6 +85,7 @@ lint: | |||
73 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 85 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
74 | 86 | ||
75 | depend: | 87 | depend: |
88 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... | ||
76 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | 89 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) |
77 | 90 | ||
78 | dclean: | 91 | dclean: |
@@ -80,7 +93,7 @@ dclean: | |||
80 | mv -f Makefile.new $(MAKEFILE) | 93 | mv -f Makefile.new $(MAKEFILE) |
81 | 94 | ||
82 | clean: | 95 | clean: |
83 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | 96 | rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
84 | 97 | ||
85 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 98 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
86 | 99 | ||
@@ -90,14 +103,28 @@ aes_cfb.o: ../../e_os.h ../../include/openssl/aes.h | |||
90 | aes_cfb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | 103 | aes_cfb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h |
91 | aes_cfb.o: aes_cfb.c aes_locl.h | 104 | aes_cfb.o: aes_cfb.c aes_locl.h |
92 | aes_core.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | 105 | aes_core.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h |
93 | aes_core.o: ../../include/openssl/fips.h ../../include/openssl/opensslconf.h | 106 | aes_core.o: ../../include/openssl/opensslconf.h aes_core.c aes_locl.h |
94 | aes_core.o: aes_core.c aes_locl.h | ||
95 | aes_ctr.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | 107 | aes_ctr.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h |
96 | aes_ctr.o: ../../include/openssl/opensslconf.h aes_ctr.c aes_locl.h | 108 | aes_ctr.o: ../../include/openssl/opensslconf.h aes_ctr.c aes_locl.h |
97 | aes_ecb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | 109 | aes_ecb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h |
98 | aes_ecb.o: ../../include/openssl/opensslconf.h aes_ecb.c aes_locl.h | 110 | aes_ecb.o: ../../include/openssl/opensslconf.h aes_ecb.c aes_locl.h |
111 | aes_ige.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/bio.h | ||
112 | aes_ige.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
113 | aes_ige.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
114 | aes_ige.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
115 | aes_ige.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
116 | aes_ige.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
117 | aes_ige.o: ../../include/openssl/symhacks.h ../cryptlib.h aes_ige.c aes_locl.h | ||
99 | aes_misc.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | 118 | aes_misc.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h |
100 | aes_misc.o: ../../include/openssl/opensslconf.h | 119 | aes_misc.o: ../../include/openssl/opensslconf.h |
101 | aes_misc.o: ../../include/openssl/opensslv.h aes_locl.h aes_misc.c | 120 | aes_misc.o: ../../include/openssl/opensslv.h aes_locl.h aes_misc.c |
102 | aes_ofb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | 121 | aes_ofb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h |
103 | aes_ofb.o: ../../include/openssl/opensslconf.h aes_locl.h aes_ofb.c | 122 | aes_ofb.o: ../../include/openssl/opensslconf.h aes_locl.h aes_ofb.c |
123 | aes_wrap.o: ../../e_os.h ../../include/openssl/aes.h | ||
124 | aes_wrap.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | ||
125 | aes_wrap.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
126 | aes_wrap.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
127 | aes_wrap.o: ../../include/openssl/opensslconf.h | ||
128 | aes_wrap.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
129 | aes_wrap.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
130 | aes_wrap.o: ../../include/openssl/symhacks.h ../cryptlib.h aes_wrap.c | ||