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/md5 | |
| 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/md5')
| -rw-r--r-- | src/lib/libcrypto/md5/Makefile.ssl | 71 |
1 files changed, 51 insertions, 20 deletions
diff --git a/src/lib/libcrypto/md5/Makefile.ssl b/src/lib/libcrypto/md5/Makefile.ssl index 47e1ce05ca..fd0d63c339 100644 --- a/src/lib/libcrypto/md5/Makefile.ssl +++ b/src/lib/libcrypto/md5/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 | ||
| @@ -18,9 +21,17 @@ MD5_ASM_OBJ= | |||
| 18 | 21 | ||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | 22 | CFLAGS= $(INCLUDES) $(CFLAG) |
| 20 | 23 | ||
| 24 | # We let the C compiler driver to take care of .s files. This is done in | ||
| 25 | # order to be excused from maintaining a separate set of architecture | ||
| 26 | # dependent assembler flags. E.g. if you throw -mcpu=ultrasparc at SPARC | ||
| 27 | # gcc, then the driver will automatically translate it to -xarch=v8plus | ||
| 28 | # and pass it down to assembler. | ||
| 29 | AS=$(CC) -c | ||
| 30 | ASFLAGS=$(CFLAGS) | ||
| 31 | |||
| 21 | GENERAL=Makefile | 32 | GENERAL=Makefile |
| 22 | TEST=md5test.c | 33 | TEST=md5test.c |
| 23 | APPS=md5.c | 34 | APPS= |
| 24 | 35 | ||
| 25 | LIB=$(TOP)/libcrypto.a | 36 | LIB=$(TOP)/libcrypto.a |
| 26 | LIBSRC=md5_dgst.c md5_one.c | 37 | LIBSRC=md5_dgst.c md5_one.c |
| @@ -40,12 +51,12 @@ all: lib | |||
| 40 | 51 | ||
| 41 | lib: $(LIBOBJ) | 52 | lib: $(LIBOBJ) |
| 42 | $(AR) $(LIB) $(LIBOBJ) | 53 | $(AR) $(LIB) $(LIBOBJ) |
| 43 | sh $(TOP)/util/ranlib.sh $(LIB) | 54 | $(RANLIB) $(LIB) || echo Never mind. |
| 44 | @touch lib | 55 | @touch lib |
| 45 | 56 | ||
| 46 | # elf | 57 | # elf |
| 47 | asm/mx86-elf.o: asm/mx86unix.cpp | 58 | asm/mx86-elf.o: asm/mx86unix.cpp |
| 48 | $(CPP) -DELF asm/mx86unix.cpp | as -o asm/mx86-elf.o | 59 | $(CPP) -DELF -x c asm/mx86unix.cpp | as -o asm/mx86-elf.o |
| 49 | 60 | ||
| 50 | # solaris | 61 | # solaris |
| 51 | asm/mx86-sol.o: asm/mx86unix.cpp | 62 | asm/mx86-sol.o: asm/mx86unix.cpp |
| @@ -59,26 +70,43 @@ asm/mx86-out.o: asm/mx86unix.cpp | |||
| 59 | 70 | ||
| 60 | # bsdi | 71 | # bsdi |
| 61 | asm/mx86bsdi.o: asm/mx86unix.cpp | 72 | asm/mx86bsdi.o: asm/mx86unix.cpp |
| 62 | $(CPP) -DBSDI asm/mx86unix.cpp | as -o asm/mx86bsdi.o | 73 | $(CPP) -DBSDI asm/mx86unix.cpp | sed 's/ :/:/' | as -o asm/mx86bsdi.o |
| 74 | |||
| 75 | asm/mx86unix.cpp: asm/md5-586.pl ../perlasm/x86asm.pl | ||
| 76 | (cd asm; $(PERL) md5-586.pl cpp >mx86unix.cpp) | ||
| 77 | |||
| 78 | asm/md5-sparcv8plus.o: asm/md5-sparcv9.S | ||
| 79 | $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -c \ | ||
| 80 | -o asm/md5-sparcv8plus.o asm/md5-sparcv9.S | ||
| 63 | 81 | ||
| 64 | asm/mx86unix.cpp: | 82 | # Old GNU assembler doesn't understand V9 instructions, so we |
| 65 | (cd asm; perl md5-586.pl cpp >mx86unix.cpp) | 83 | # hire /usr/ccs/bin/as to do the job. Note that option is called |
| 84 | # *-gcc27, but even gcc 2>=8 users may experience similar problem | ||
| 85 | # if they didn't bother to upgrade GNU assembler. Such users should | ||
| 86 | # not choose this option, but be adviced to *remove* GNU assembler | ||
| 87 | # or upgrade it. | ||
| 88 | asm/md5-sparcv8plus-gcc27.o: asm/md5-sparcv9.S | ||
| 89 | $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -E asm/md5-sparcv9.S | \ | ||
| 90 | /usr/ccs/bin/as -xarch=v8plus - -o asm/md5-sparcv8plus-gcc27.o | ||
| 91 | |||
| 92 | asm/md5-sparcv9.o: asm/md5-sparcv9.S | ||
| 93 | $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -c \ | ||
| 94 | -o asm/md5-sparcv9.o asm/md5-sparcv9.S | ||
| 66 | 95 | ||
| 67 | files: | 96 | files: |
| 68 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | 97 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO |
| 69 | 98 | ||
| 70 | links: | 99 | links: |
| 71 | /bin/rm -f Makefile | 100 | @$(TOP)/util/point.sh Makefile.ssl Makefile |
| 72 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | 101 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
| 73 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | 102 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) |
| 74 | $(TOP)/util/mklink.sh ../../test $(TEST) | 103 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
| 75 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
| 76 | 104 | ||
| 77 | install: | 105 | install: |
| 78 | @for i in $(EXHEADER) ; \ | 106 | @for i in $(EXHEADER) ; \ |
| 79 | do \ | 107 | do \ |
| 80 | (cp $$i $(INSTALLTOP)/include/$$i; \ | 108 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
| 81 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | 109 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ |
| 82 | done; | 110 | done; |
| 83 | 111 | ||
| 84 | tags: | 112 | tags: |
| @@ -90,15 +118,18 @@ lint: | |||
| 90 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 118 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
| 91 | 119 | ||
| 92 | depend: | 120 | depend: |
| 93 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | 121 | $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC) |
| 94 | 122 | ||
| 95 | dclean: | 123 | dclean: |
| 96 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | 124 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new |
| 97 | mv -f Makefile.new $(MAKEFILE) | 125 | mv -f Makefile.new $(MAKEFILE) |
| 98 | 126 | ||
| 99 | clean: | 127 | clean: |
| 100 | /bin/rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | 128 | rm -f asm/mx86unix.cpp *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
| 101 | |||
| 102 | errors: | ||
| 103 | 129 | ||
| 104 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 130 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
| 131 | |||
| 132 | md5_dgst.o: ../../include/openssl/md5.h ../../include/openssl/opensslconf.h | ||
| 133 | md5_dgst.o: ../../include/openssl/opensslv.h ../md32_common.h md5_dgst.c | ||
| 134 | md5_dgst.o: md5_locl.h | ||
| 135 | md5_one.o: ../../include/openssl/md5.h md5_one.c | ||
