summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/aes/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/aes/Makefile')
-rw-r--r--src/lib/libcrypto/aes/Makefile55
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
8CPP= $(CC) -E 8CPP= $(CC) -E
9INCLUDES= 9INCLUDES=
10CFLAG=-g 10CFLAG=-g
11INSTALL_PREFIX=
12OPENSSLDIR= /usr/local/ssl
13INSTALLTOP= /usr/local/ssl
14MAKEDEPPROG= makedepend
15MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
16MAKEFILE= Makefile 11MAKEFILE= Makefile
17AR= ar r 12AR= ar r
18 13
19# CFLAGS= -mpentiumpro $(INCLUDES) $(CFLAG) -O3 -fexpensive-optimizations -funroll-loops -fforce-addr 14AES_ASM_OBJ=aes_core.o aes_cbc.o
15
20CFLAGS= $(INCLUDES) $(CFLAG) 16CFLAGS= $(INCLUDES) $(CFLAG)
17ASFLAGS= $(INCLUDES) $(ASFLAG)
18AFLAGS= $(ASFLAGS)
21 19
22GENERAL=Makefile 20GENERAL=Makefile
23#TEST=aestest.c 21#TEST=aestest.c
@@ -25,8 +23,10 @@ TEST=
25APPS= 23APPS=
26 24
27LIB=$(TOP)/libcrypto.a 25LIB=$(TOP)/libcrypto.a
28LIBSRC=aes_core.c aes_misc.c aes_ecb.c aes_cbc.c aes_cfb.c aes_ofb.c aes_ctr.c 26LIBSRC=aes_core.c aes_misc.c aes_ecb.c aes_cbc.c aes_cfb.c aes_ofb.c \
29LIBOBJ=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
28LIBOBJ=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
31SRC= $(LIBSRC) 31SRC= $(LIBSRC)
32 32
@@ -47,6 +47,19 @@ lib: $(LIBOBJ)
47 47
48$(LIBOBJ): $(LIBSRC) 48$(LIBOBJ): $(LIBSRC)
49 49
50aes-ia64.s: asm/aes-ia64.S
51 $(CC) $(CFLAGS) -E asm/aes-ia64.S > $@
52
53ax86-elf.s: asm/aes-586.pl ../perlasm/x86asm.pl
54 (cd asm; $(PERL) aes-586.pl elf $(CFLAGS) $(PROCESSOR) > ../$@)
55ax86-cof.s: asm/aes-586.pl ../perlasm/x86asm.pl
56 (cd asm; $(PERL) aes-586.pl coff $(CFLAGS) $(PROCESSOR) > ../$@)
57ax86-out.s: asm/aes-586.pl ../perlasm/x86asm.pl
58 (cd asm; $(PERL) aes-586.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@)
59
60aes-x86_64.s: asm/aes-x86_64.pl
61 $(PERL) asm/aes-x86_64.pl $@
62
50files: 63files:
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
58install: installs 71install:
59 72 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
60installs:
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
75depend: 87depend:
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
78dclean: 91dclean:
@@ -80,7 +93,7 @@ dclean:
80 mv -f Makefile.new $(MAKEFILE) 93 mv -f Makefile.new $(MAKEFILE)
81 94
82clean: 95clean:
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
90aes_cfb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 103aes_cfb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
91aes_cfb.o: aes_cfb.c aes_locl.h 104aes_cfb.o: aes_cfb.c aes_locl.h
92aes_core.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h 105aes_core.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
93aes_core.o: ../../include/openssl/fips.h ../../include/openssl/opensslconf.h 106aes_core.o: ../../include/openssl/opensslconf.h aes_core.c aes_locl.h
94aes_core.o: aes_core.c aes_locl.h
95aes_ctr.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h 107aes_ctr.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
96aes_ctr.o: ../../include/openssl/opensslconf.h aes_ctr.c aes_locl.h 108aes_ctr.o: ../../include/openssl/opensslconf.h aes_ctr.c aes_locl.h
97aes_ecb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h 109aes_ecb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
98aes_ecb.o: ../../include/openssl/opensslconf.h aes_ecb.c aes_locl.h 110aes_ecb.o: ../../include/openssl/opensslconf.h aes_ecb.c aes_locl.h
111aes_ige.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/bio.h
112aes_ige.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
113aes_ige.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
114aes_ige.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
115aes_ige.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
116aes_ige.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
117aes_ige.o: ../../include/openssl/symhacks.h ../cryptlib.h aes_ige.c aes_locl.h
99aes_misc.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h 118aes_misc.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
100aes_misc.o: ../../include/openssl/opensslconf.h 119aes_misc.o: ../../include/openssl/opensslconf.h
101aes_misc.o: ../../include/openssl/opensslv.h aes_locl.h aes_misc.c 120aes_misc.o: ../../include/openssl/opensslv.h aes_locl.h aes_misc.c
102aes_ofb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h 121aes_ofb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
103aes_ofb.o: ../../include/openssl/opensslconf.h aes_locl.h aes_ofb.c 122aes_ofb.o: ../../include/openssl/opensslconf.h aes_locl.h aes_ofb.c
123aes_wrap.o: ../../e_os.h ../../include/openssl/aes.h
124aes_wrap.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
125aes_wrap.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
126aes_wrap.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
127aes_wrap.o: ../../include/openssl/opensslconf.h
128aes_wrap.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
129aes_wrap.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
130aes_wrap.o: ../../include/openssl/symhacks.h ../cryptlib.h aes_wrap.c