diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/stack/Makefile (renamed from src/lib/libssl/src/crypto/rijndael/Makefile.ssl) | 45 |
1 files changed, 21 insertions, 24 deletions
diff --git a/src/lib/libssl/src/crypto/rijndael/Makefile.ssl b/src/lib/libcrypto/stack/Makefile index 79ffd7598b..711b16832a 100644 --- a/src/lib/libssl/src/crypto/rijndael/Makefile.ssl +++ b/src/lib/libcrypto/stack/Makefile | |||
@@ -1,27 +1,20 @@ | |||
1 | # | 1 | # |
2 | # crypto/rijndael/Makefile | 2 | # OpenSSL/crypto/stack/Makefile |
3 | # | 3 | # |
4 | 4 | ||
5 | DIR= rijndael | 5 | DIR= stack |
6 | TOP= ../.. | 6 | TOP= ../.. |
7 | CC= cc | 7 | CC= cc |
8 | CPP= $(CC) -E | ||
9 | INCLUDES= | 8 | INCLUDES= |
10 | CFLAG=-g | 9 | CFLAG=-g |
11 | INSTALL_PREFIX= | 10 | INSTALL_PREFIX= |
12 | OPENSSLDIR= /usr/local/ssl | 11 | OPENSSLDIR= /usr/local/ssl |
13 | INSTALLTOP=/usr/local/ssl | 12 | INSTALLTOP=/usr/local/ssl |
14 | MAKE= make -f Makefile.ssl | ||
15 | MAKEDEPPROG= makedepend | 13 | MAKEDEPPROG= makedepend |
16 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) |
17 | MAKEFILE= Makefile.ssl | 15 | MAKEFILE= Makefile |
18 | AR= ar r | 16 | AR= ar r |
19 | 17 | ||
20 | RD_ENC= rd_enc.o | ||
21 | # or use | ||
22 | #DES_ENC= bx86-elf.o | ||
23 | |||
24 | # CFLAGS= -mpentiumpro $(INCLUDES) $(CFLAG) -O3 -fexpensive-optimizations -funroll-loops -fforce-addr | ||
25 | CFLAGS= $(INCLUDES) $(CFLAG) | 18 | CFLAGS= $(INCLUDES) $(CFLAG) |
26 | 19 | ||
27 | GENERAL=Makefile | 20 | GENERAL=Makefile |
@@ -29,12 +22,15 @@ TEST= | |||
29 | APPS= | 22 | APPS= |
30 | 23 | ||
31 | LIB=$(TOP)/libcrypto.a | 24 | LIB=$(TOP)/libcrypto.a |
32 | LIBSRC=rd_fst.c | 25 | LIBSRC=stack.c |
33 | LIBOBJ=rd_fst.o | 26 | LIBOBJ=stack.o |
34 | 27 | ||
35 | SRC= $(LIBSRC) | 28 | SRC= $(LIBSRC) |
36 | 29 | ||
37 | EXHEADER=rd_fst.h rijndael.h | 30 | EXHEADER= stack.h safestack.h |
31 | HEADER= $(EXHEADER) | ||
32 | |||
33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
38 | 34 | ||
39 | top: | 35 | top: |
40 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | 36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) |
@@ -43,24 +39,19 @@ all: lib | |||
43 | 39 | ||
44 | lib: $(LIBOBJ) | 40 | lib: $(LIBOBJ) |
45 | $(AR) $(LIB) $(LIBOBJ) | 41 | $(AR) $(LIB) $(LIBOBJ) |
46 | $(RANLIB) $(LIB) | 42 | $(RANLIB) $(LIB) || echo Never mind. |
47 | @touch lib | 43 | @touch lib |
48 | 44 | ||
49 | $(LIBOBJ): $(LIBSRC) | ||
50 | |||
51 | files: | 45 | files: |
52 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | 46 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO |
53 | 47 | ||
54 | links: | 48 | links: |
55 | @$(TOP)/util/point.sh Makefile.ssl Makefile | ||
56 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | 49 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
57 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | 50 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) |
58 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | 51 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
59 | 52 | ||
60 | install: installs | 53 | install: |
61 | 54 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | |
62 | installs: | ||
63 | @for i in $(EXHEADER) ; \ | ||
64 | do \ | 55 | do \ |
65 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | 56 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
66 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | 57 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ |
@@ -75,7 +66,7 @@ lint: | |||
75 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 66 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
76 | 67 | ||
77 | depend: | 68 | depend: |
78 | $(MAKEDEPEND) $(CFLAG) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC) | 69 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) |
79 | 70 | ||
80 | dclean: | 71 | dclean: |
81 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | 72 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new |
@@ -86,4 +77,10 @@ clean: | |||
86 | 77 | ||
87 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 78 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
88 | 79 | ||
89 | rd_fst.o: rd_fst.c rd_fst.h | 80 | stack.o: ../../e_os.h ../../include/openssl/bio.h |
81 | stack.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
82 | stack.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
83 | stack.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
84 | stack.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
85 | stack.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
86 | stack.o: ../cryptlib.h stack.c | ||