diff options
author | markus <> | 2002-09-05 12:51:51 +0000 |
---|---|---|
committer | markus <> | 2002-09-05 12:51:51 +0000 |
commit | f3e848761b58c1645ce3b150d17770e528f39556 (patch) | |
tree | 88a70dc7c35100da165c0ff4f7182805f3d85b76 /src/lib/libcrypto/rc5 | |
parent | 2f5692b12332315048054bcce20e370985e19970 (diff) | |
download | openbsd-f3e848761b58c1645ce3b150d17770e528f39556.tar.gz openbsd-f3e848761b58c1645ce3b150d17770e528f39556.tar.bz2 openbsd-f3e848761b58c1645ce3b150d17770e528f39556.zip |
import openssl-0.9.7-beta1
Diffstat (limited to 'src/lib/libcrypto/rc5')
-rw-r--r-- | src/lib/libcrypto/rc5/Makefile.ssl | 46 | ||||
-rw-r--r-- | src/lib/libcrypto/rc5/asm/rc5-586.pl | 2 |
2 files changed, 27 insertions, 21 deletions
diff --git a/src/lib/libcrypto/rc5/Makefile.ssl b/src/lib/libcrypto/rc5/Makefile.ssl index 5e98ee2348..10deca5ace 100644 --- a/src/lib/libcrypto/rc5/Makefile.ssl +++ b/src/lib/libcrypto/rc5/Makefile.ssl | |||
@@ -8,9 +8,12 @@ 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 | ||
11 | INSTALLTOP=/usr/local/ssl | 13 | INSTALLTOP=/usr/local/ssl |
12 | MAKE= make -f Makefile.ssl | 14 | MAKE= make -f Makefile.ssl |
13 | MAKEDEPEND= makedepend -f Makefile.ssl | 15 | MAKEDEPPROG= makedepend |
16 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
14 | MAKEFILE= Makefile.ssl | 17 | MAKEFILE= Makefile.ssl |
15 | AR= ar r | 18 | AR= ar r |
16 | 19 | ||
@@ -42,12 +45,12 @@ all: lib | |||
42 | 45 | ||
43 | lib: $(LIBOBJ) | 46 | lib: $(LIBOBJ) |
44 | $(AR) $(LIB) $(LIBOBJ) | 47 | $(AR) $(LIB) $(LIBOBJ) |
45 | sh $(TOP)/util/ranlib.sh $(LIB) | 48 | $(RANLIB) $(LIB) || echo Never mind. |
46 | @touch lib | 49 | @touch lib |
47 | 50 | ||
48 | # elf | 51 | # elf |
49 | asm/r586-elf.o: asm/r586unix.cpp | 52 | asm/r586-elf.o: asm/r586unix.cpp |
50 | $(CPP) -DELF asm/r586unix.cpp | as -o asm/r586-elf.o | 53 | $(CPP) -DELF -x c asm/r586unix.cpp | as -o asm/r586-elf.o |
51 | 54 | ||
52 | # solaris | 55 | # solaris |
53 | asm/r586-sol.o: asm/r586unix.cpp | 56 | asm/r586-sol.o: asm/r586unix.cpp |
@@ -61,27 +64,25 @@ asm/r586-out.o: asm/r586unix.cpp | |||
61 | 64 | ||
62 | # bsdi | 65 | # bsdi |
63 | asm/r586bsdi.o: asm/r586unix.cpp | 66 | asm/r586bsdi.o: asm/r586unix.cpp |
64 | $(CPP) -DBSDI asm/r586unix.cpp | as -o asm/r586bsdi.o | 67 | $(CPP) -DBSDI asm/r586unix.cpp | sed 's/ :/:/' | as -o asm/r586bsdi.o |
65 | 68 | ||
66 | asm/r586unix.cpp: | 69 | asm/r586unix.cpp: asm/rc5-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl |
67 | (cd asm; perl rc5-586.pl cpp >r586unix.cpp) | 70 | (cd asm; $(PERL) rc5-586.pl cpp >r586unix.cpp) |
68 | 71 | ||
69 | files: | 72 | files: |
70 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | 73 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO |
71 | 74 | ||
72 | links: | 75 | links: |
73 | /bin/rm -f Makefile | 76 | @$(TOP)/util/point.sh Makefile.ssl Makefile |
74 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | 77 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
75 | $(TOP)/util/point.sh ../../doc/rc5.doc rc5.doc ; | 78 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) |
76 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | 79 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
77 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
78 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
79 | 80 | ||
80 | install: | 81 | install: |
81 | @for i in $(EXHEADER) ; \ | 82 | @for i in $(EXHEADER) ; \ |
82 | do \ | 83 | do \ |
83 | (cp $$i $(INSTALLTOP)/include/$$i; \ | 84 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
84 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | 85 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ |
85 | done; | 86 | done; |
86 | 87 | ||
87 | tags: | 88 | tags: |
@@ -93,15 +94,20 @@ lint: | |||
93 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 94 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
94 | 95 | ||
95 | depend: | 96 | depend: |
96 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | 97 | $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC) |
97 | 98 | ||
98 | dclean: | 99 | dclean: |
99 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | 100 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new |
100 | mv -f Makefile.new $(MAKEFILE) | 101 | mv -f Makefile.new $(MAKEFILE) |
101 | 102 | ||
102 | clean: | 103 | clean: |
103 | /bin/rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | 104 | rm -f asm/r586unix.cpp *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
104 | |||
105 | errors: | ||
106 | 105 | ||
107 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 106 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
107 | |||
108 | rc5_ecb.o: ../../include/openssl/opensslv.h ../../include/openssl/rc5.h | ||
109 | rc5_ecb.o: rc5_ecb.c rc5_locl.h | ||
110 | rc5_enc.o: ../../include/openssl/rc5.h rc5_enc.c rc5_locl.h | ||
111 | rc5_skey.o: ../../include/openssl/rc5.h rc5_locl.h rc5_skey.c | ||
112 | rc5cfb64.o: ../../include/openssl/rc5.h rc5_locl.h rc5cfb64.c | ||
113 | rc5ofb64.o: ../../include/openssl/rc5.h rc5_locl.h rc5ofb64.c | ||
diff --git a/src/lib/libcrypto/rc5/asm/rc5-586.pl b/src/lib/libcrypto/rc5/asm/rc5-586.pl index 172bd9ee1b..edff1d1e64 100644 --- a/src/lib/libcrypto/rc5/asm/rc5-586.pl +++ b/src/lib/libcrypto/rc5/asm/rc5-586.pl | |||
@@ -1,4 +1,4 @@ | |||
1 | #!/usr/bin/perl | 1 | #!/usr/local/bin/perl |
2 | 2 | ||
3 | push(@INC,"perlasm","../../perlasm"); | 3 | push(@INC,"perlasm","../../perlasm"); |
4 | require "x86asm.pl"; | 4 | require "x86asm.pl"; |