summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/md5/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/md5/Makefile')
-rw-r--r--src/lib/libcrypto/md5/Makefile68
1 files changed, 21 insertions, 47 deletions
diff --git a/src/lib/libcrypto/md5/Makefile b/src/lib/libcrypto/md5/Makefile
index 1ed018526f..ceb00e8956 100644
--- a/src/lib/libcrypto/md5/Makefile
+++ b/src/lib/libcrypto/md5/Makefile
@@ -8,11 +8,6 @@ CC= cc
8CPP= $(CC) -E 8CPP= $(CC) -E
9INCLUDES=-I.. -I$(TOP) -I../../include 9INCLUDES=-I.. -I$(TOP) -I../../include
10CFLAG=-g 10CFLAG=-g
11INSTALL_PREFIX=
12OPENSSLDIR= /usr/local/ssl
13INSTALLTOP=/usr/local/ssl
14MAKEDEPPROG= makedepend
15MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
16MAKEFILE= Makefile 11MAKEFILE= Makefile
17AR= ar r 12AR= ar r
18 13
@@ -20,6 +15,7 @@ MD5_ASM_OBJ=
20 15
21CFLAGS= $(INCLUDES) $(CFLAG) 16CFLAGS= $(INCLUDES) $(CFLAG)
22ASFLAGS= $(INCLUDES) $(ASFLAG) 17ASFLAGS= $(INCLUDES) $(ASFLAG)
18AFLAGS= $(ASFLAGS)
23 19
24GENERAL=Makefile 20GENERAL=Makefile
25TEST=md5test.c 21TEST=md5test.c
@@ -46,38 +42,17 @@ lib: $(LIBOBJ)
46 $(RANLIB) $(LIB) || echo Never mind. 42 $(RANLIB) $(LIB) || echo Never mind.
47 @touch lib 43 @touch lib
48 44
49# elf 45# ELF
50asm/mx86-elf.s: asm/md5-586.pl ../perlasm/x86asm.pl 46mx86-elf.s: asm/md5-586.pl ../perlasm/x86asm.pl
51 (cd asm; $(PERL) md5-586.pl elf $(CFLAGS) > mx86-elf.s) 47 (cd asm; $(PERL) md5-586.pl elf $(CFLAGS) > ../$@)
52 48# COFF
49mx86-cof.s: asm/md5-586.pl ../perlasm/x86asm.pl
50 (cd asm; $(PERL) md5-586.pl coff $(CFLAGS) > ../$@)
53# a.out 51# a.out
54asm/mx86-out.o: asm/mx86unix.cpp 52mx86-out.s: asm/md5-586.pl ../perlasm/x86asm.pl
55 $(CPP) -DOUT asm/mx86unix.cpp | as -o asm/mx86-out.o 53 (cd asm; $(PERL) md5-586.pl a.out $(CFLAGS) > ../$@)
56 54
57# bsdi 55md5-x86_64.s: asm/md5-x86_64.pl; $(PERL) asm/md5-x86_64.pl $@
58asm/mx86bsdi.o: asm/mx86unix.cpp
59 $(CPP) -DBSDI asm/mx86unix.cpp | sed 's/ :/:/' | as -o asm/mx86bsdi.o
60
61asm/mx86unix.cpp: asm/md5-586.pl ../perlasm/x86asm.pl
62 (cd asm; $(PERL) md5-586.pl cpp >mx86unix.cpp)
63
64asm/md5-sparcv8plus.o: asm/md5-sparcv9.S
65 $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -c \
66 -o asm/md5-sparcv8plus.o asm/md5-sparcv9.S
67
68# Old GNU assembler doesn't understand V9 instructions, so we
69# hire /usr/ccs/bin/as to do the job. Note that option is called
70# *-gcc27, but even gcc 2>=8 users may experience similar problem
71# if they didn't bother to upgrade GNU assembler. Such users should
72# not choose this option, but be adviced to *remove* GNU assembler
73# or upgrade it.
74asm/md5-sparcv8plus-gcc27.o: asm/md5-sparcv9.S
75 $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -E asm/md5-sparcv9.S | \
76 /usr/ccs/bin/as -xarch=v8plus - -o asm/md5-sparcv8plus-gcc27.o
77
78asm/md5-sparcv9.o: asm/md5-sparcv9.S
79 $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -c \
80 -o asm/md5-sparcv9.o asm/md5-sparcv9.S
81 56
82files: 57files:
83 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO 58 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
@@ -88,6 +63,7 @@ links:
88 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) 63 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
89 64
90install: 65install:
66 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
91 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ 67 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
92 do \ 68 do \
93 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ 69 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
@@ -103,6 +79,7 @@ lint:
103 lint -DLINT $(INCLUDES) $(SRC)>fluff 79 lint -DLINT $(INCLUDES) $(SRC)>fluff
104 80
105depend: 81depend:
82 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
106 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) 83 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
107 84
108dclean: 85dclean:
@@ -110,19 +87,16 @@ dclean:
110 mv -f Makefile.new $(MAKEFILE) 87 mv -f Makefile.new $(MAKEFILE)
111 88
112clean: 89clean:
113 rm -f asm/mx86unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff 90 rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
114 91
115# DO NOT DELETE THIS LINE -- make depend depends on it. 92# DO NOT DELETE THIS LINE -- make depend depends on it.
116 93
117md5_dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h 94md5_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/md5.h
118md5_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 95md5_dgst.o: ../../include/openssl/opensslconf.h
119md5_dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h 96md5_dgst.o: ../../include/openssl/opensslv.h ../md32_common.h md5_dgst.c
120md5_dgst.o: ../../include/openssl/md5.h ../../include/openssl/opensslconf.h 97md5_dgst.o: md5_locl.h
121md5_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
122md5_dgst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
123md5_dgst.o: ../md32_common.h md5_dgst.c md5_locl.h
124md5_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 98md5_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
125md5_one.o: ../../include/openssl/md5.h ../../include/openssl/opensslconf.h 99md5_one.o: ../../include/openssl/md5.h ../../include/openssl/opensslconf.h
126md5_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 100md5_one.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
127md5_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 101md5_one.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
128md5_one.o: md5_one.c 102md5_one.o: ../../include/openssl/symhacks.h md5_one.c