diff options
Diffstat (limited to 'src/lib/libcrypto/md5/Makefile.ssl')
-rw-r--r-- | src/lib/libcrypto/md5/Makefile.ssl | 58 |
1 files changed, 40 insertions, 18 deletions
diff --git a/src/lib/libcrypto/md5/Makefile.ssl b/src/lib/libcrypto/md5/Makefile.ssl index 47e1ce05ca..29ae1b7458 100644 --- a/src/lib/libcrypto/md5/Makefile.ssl +++ b/src/lib/libcrypto/md5/Makefile.ssl | |||
@@ -8,15 +8,18 @@ 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 | MAKEDEPEND= $(TOP)/util/domd $(TOP) |
14 | MAKEFILE= Makefile.ssl | 16 | MAKEFILE= Makefile.ssl |
15 | AR= ar r | 17 | AR= ar r |
16 | 18 | ||
17 | MD5_ASM_OBJ= | 19 | MD5_ASM_OBJ= |
18 | 20 | ||
19 | CFLAGS= $(INCLUDES) $(CFLAG) | 21 | CFLAGS= $(INCLUDES) $(CFLAG) |
22 | ASFLAGS=$(CFLAGS) | ||
20 | 23 | ||
21 | GENERAL=Makefile | 24 | GENERAL=Makefile |
22 | TEST=md5test.c | 25 | TEST=md5test.c |
@@ -40,7 +43,7 @@ all: lib | |||
40 | 43 | ||
41 | lib: $(LIBOBJ) | 44 | lib: $(LIBOBJ) |
42 | $(AR) $(LIB) $(LIBOBJ) | 45 | $(AR) $(LIB) $(LIBOBJ) |
43 | sh $(TOP)/util/ranlib.sh $(LIB) | 46 | $(RANLIB) $(LIB) |
44 | @touch lib | 47 | @touch lib |
45 | 48 | ||
46 | # elf | 49 | # elf |
@@ -59,26 +62,43 @@ asm/mx86-out.o: asm/mx86unix.cpp | |||
59 | 62 | ||
60 | # bsdi | 63 | # bsdi |
61 | asm/mx86bsdi.o: asm/mx86unix.cpp | 64 | asm/mx86bsdi.o: asm/mx86unix.cpp |
62 | $(CPP) -DBSDI asm/mx86unix.cpp | as -o asm/mx86bsdi.o | 65 | $(CPP) -DBSDI asm/mx86unix.cpp | sed 's/ :/:/' | as -o asm/mx86bsdi.o |
63 | 66 | ||
64 | asm/mx86unix.cpp: | 67 | asm/mx86unix.cpp: asm/md5-586.pl |
65 | (cd asm; perl md5-586.pl cpp >mx86unix.cpp) | 68 | (cd asm; $(PERL) md5-586.pl cpp >mx86unix.cpp) |
69 | |||
70 | asm/md5-sparcv8plus.o: asm/md5-sparcv9.S | ||
71 | $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -c \ | ||
72 | -o asm/md5-sparcv8plus.o asm/md5-sparcv9.S | ||
73 | |||
74 | # Old GNU assembler doesn't understand V9 instructions, so we | ||
75 | # hire /usr/ccs/bin/as to do the job. Note that option is called | ||
76 | # *-gcc27, but even gcc 2>=8 users may experience similar problem | ||
77 | # if they didn't bother to upgrade GNU assembler. Such users should | ||
78 | # not choose this option, but be adviced to *remove* GNU assembler | ||
79 | # or upgrade it. | ||
80 | sm/md5-sparcv8plus-gcc27.o: asm/md5-sparcv9.S | ||
81 | $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -E asm/md5-sparcv9.S | \ | ||
82 | /usr/ccs/bin/as -xarch=v8plus - -o asm/md5-sparcv8plus-gcc27.o | ||
83 | |||
84 | asm/md5-sparcv9.o: asm/md5-sparcv9.S | ||
85 | $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -c \ | ||
86 | -o asm/md5-sparcv9.o asm/md5-sparcv9.S | ||
66 | 87 | ||
67 | files: | 88 | files: |
68 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | 89 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO |
69 | 90 | ||
70 | links: | 91 | links: |
71 | /bin/rm -f Makefile | 92 | @$(TOP)/util/point.sh Makefile.ssl Makefile |
72 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | 93 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
73 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | 94 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) |
74 | $(TOP)/util/mklink.sh ../../test $(TEST) | 95 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
75 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
76 | 96 | ||
77 | install: | 97 | install: |
78 | @for i in $(EXHEADER) ; \ | 98 | @for i in $(EXHEADER) ; \ |
79 | do \ | 99 | do \ |
80 | (cp $$i $(INSTALLTOP)/include/$$i; \ | 100 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
81 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | 101 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ |
82 | done; | 102 | done; |
83 | 103 | ||
84 | tags: | 104 | tags: |
@@ -90,15 +110,17 @@ lint: | |||
90 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 110 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
91 | 111 | ||
92 | depend: | 112 | depend: |
93 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | 113 | $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC) |
94 | 114 | ||
95 | dclean: | 115 | dclean: |
96 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | 116 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new |
97 | mv -f Makefile.new $(MAKEFILE) | 117 | mv -f Makefile.new $(MAKEFILE) |
98 | 118 | ||
99 | clean: | 119 | clean: |
100 | /bin/rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | 120 | rm -f asm/mx86unix.cpp *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
101 | |||
102 | errors: | ||
103 | 121 | ||
104 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 122 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
123 | |||
124 | md5_dgst.o: ../../include/openssl/md5.h ../../include/openssl/opensslconf.h | ||
125 | md5_dgst.o: ../../include/openssl/opensslv.h ../md32_common.h md5_locl.h | ||
126 | md5_one.o: ../../include/openssl/md5.h | ||