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.ssl135
1 files changed, 135 insertions, 0 deletions
diff --git a/src/lib/libcrypto/md5/Makefile.ssl b/src/lib/libcrypto/md5/Makefile.ssl
new file mode 100644
index 0000000000..0eea0e5994
--- /dev/null
+++ b/src/lib/libcrypto/md5/Makefile.ssl
@@ -0,0 +1,135 @@
1#
2# SSLeay/crypto/md5/Makefile
3#
4
5DIR= md5
6TOP= ../..
7CC= cc
8CPP= $(CC) -E
9INCLUDES=
10CFLAG=-g
11INSTALL_PREFIX=
12OPENSSLDIR= /usr/local/ssl
13INSTALLTOP=/usr/local/ssl
14MAKE= make -f Makefile.ssl
15MAKEDEPPROG= makedepend
16MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
17MAKEFILE= Makefile.ssl
18AR= ar r
19
20MD5_ASM_OBJ=
21
22CFLAGS= $(INCLUDES) $(CFLAG)
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.
29AS=$(CC) -c
30ASFLAGS=$(CFLAGS)
31
32GENERAL=Makefile
33TEST=md5test.c
34APPS=
35
36LIB=$(TOP)/libcrypto.a
37LIBSRC=md5_dgst.c md5_one.c
38LIBOBJ=md5_dgst.o md5_one.o $(MD5_ASM_OBJ)
39
40SRC= $(LIBSRC)
41
42EXHEADER= md5.h
43HEADER= md5_locl.h $(EXHEADER)
44
45ALL= $(GENERAL) $(SRC) $(HEADER)
46
47top:
48 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
49
50all: lib
51
52lib: $(LIBOBJ)
53 $(AR) $(LIB) $(LIBOBJ)
54 $(RANLIB) $(LIB) || echo Never mind.
55 @touch lib
56
57# elf
58asm/mx86-elf.o: asm/mx86unix.cpp
59 $(CPP) -DELF -x c asm/mx86unix.cpp | as -o asm/mx86-elf.o
60
61# solaris
62asm/mx86-sol.o: asm/mx86unix.cpp
63 $(CC) -E -DSOL asm/mx86unix.cpp | sed 's/^#.*//' > asm/mx86-sol.s
64 as -o asm/mx86-sol.o asm/mx86-sol.s
65 rm -f asm/mx86-sol.s
66
67# a.out
68asm/mx86-out.o: asm/mx86unix.cpp
69 $(CPP) -DOUT asm/mx86unix.cpp | as -o asm/mx86-out.o
70
71# bsdi
72asm/mx86bsdi.o: asm/mx86unix.cpp
73 $(CPP) -DBSDI asm/mx86unix.cpp | sed 's/ :/:/' | as -o asm/mx86bsdi.o
74
75asm/mx86unix.cpp: asm/md5-586.pl ../perlasm/x86asm.pl
76 (cd asm; $(PERL) md5-586.pl cpp >mx86unix.cpp)
77
78asm/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
81
82# Old GNU assembler doesn't understand V9 instructions, so we
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.
88asm/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
92asm/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
95
96files:
97 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
98
99links:
100 @$(TOP)/util/point.sh Makefile.ssl Makefile
101 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
102 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
103 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
104
105install:
106 @for i in $(EXHEADER) ; \
107 do \
108 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
109 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
110 done;
111
112tags:
113 ctags $(SRC)
114
115tests:
116
117lint:
118 lint -DLINT $(INCLUDES) $(SRC)>fluff
119
120depend:
121 $(MAKEDEPEND) $(CFLAG) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
122
123dclean:
124 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
125 mv -f Makefile.new $(MAKEFILE)
126
127clean:
128 rm -f asm/mx86unix.cpp *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
129
130# DO NOT DELETE THIS LINE -- make depend depends on it.
131
132md5_dgst.o: ../../include/openssl/md5.h ../../include/openssl/opensslconf.h
133md5_dgst.o: ../../include/openssl/opensslv.h ../md32_common.h md5_dgst.c
134md5_dgst.o: md5_locl.h
135md5_one.o: ../../include/openssl/md5.h md5_one.c