summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/md5/Makefile.ssl
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/md5/Makefile.ssl')
-rw-r--r--src/lib/libcrypto/md5/Makefile.ssl58
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
8CPP= $(CC) -E 8CPP= $(CC) -E
9INCLUDES= 9INCLUDES=
10CFLAG=-g 10CFLAG=-g
11INSTALL_PREFIX=
12OPENSSLDIR= /usr/local/ssl
11INSTALLTOP=/usr/local/ssl 13INSTALLTOP=/usr/local/ssl
12MAKE= make -f Makefile.ssl 14MAKE= make -f Makefile.ssl
13MAKEDEPEND= makedepend -f Makefile.ssl 15MAKEDEPEND= $(TOP)/util/domd $(TOP)
14MAKEFILE= Makefile.ssl 16MAKEFILE= Makefile.ssl
15AR= ar r 17AR= ar r
16 18
17MD5_ASM_OBJ= 19MD5_ASM_OBJ=
18 20
19CFLAGS= $(INCLUDES) $(CFLAG) 21CFLAGS= $(INCLUDES) $(CFLAG)
22ASFLAGS=$(CFLAGS)
20 23
21GENERAL=Makefile 24GENERAL=Makefile
22TEST=md5test.c 25TEST=md5test.c
@@ -40,7 +43,7 @@ all: lib
40 43
41lib: $(LIBOBJ) 44lib: $(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
61asm/mx86bsdi.o: asm/mx86unix.cpp 64asm/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
64asm/mx86unix.cpp: 67asm/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
70asm/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.
80sm/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
84asm/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
67files: 88files:
68 perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO 89 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
69 90
70links: 91links:
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
77install: 97install:
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
84tags: 104tags:
@@ -90,15 +110,17 @@ lint:
90 lint -DLINT $(INCLUDES) $(SRC)>fluff 110 lint -DLINT $(INCLUDES) $(SRC)>fluff
91 111
92depend: 112depend:
93 $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) 113 $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
94 114
95dclean: 115dclean:
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
99clean: 119clean:
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
102errors:
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
124md5_dgst.o: ../../include/openssl/md5.h ../../include/openssl/opensslconf.h
125md5_dgst.o: ../../include/openssl/opensslv.h ../md32_common.h md5_locl.h
126md5_one.o: ../../include/openssl/md5.h