2 # SSLeay/crypto/md5/Makefile
12 OPENSSLDIR= /usr/local/ssl
13 INSTALLTOP=/usr/local/ssl
14 MAKE= make -f Makefile.ssl
15 MAKEDEPEND= $(TOP)/util/domd $(TOP)
16 MAKEFILE= Makefile.ssl
21 CFLAGS= $(INCLUDES) $(CFLAG)
28 LIB=$(TOP)/libcrypto.a
29 LIBSRC=md5_dgst.c md5_one.c
30 LIBOBJ=md5_dgst.o md5_one.o $(MD5_ASM_OBJ)
35 HEADER= md5_locl.h $(EXHEADER)
37 ALL= $(GENERAL) $(SRC) $(HEADER)
40 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
45 $(AR) $(LIB) $(LIBOBJ)
50 asm/mx86-elf.o: asm/mx86unix.cpp
51 $(CPP) -DELF asm/mx86unix.cpp | as -o asm/mx86-elf.o
54 asm/mx86-sol.o: asm/mx86unix.cpp
55 $(CC) -E -DSOL asm/mx86unix.cpp | sed 's/^#.*//' > asm/mx86-sol.s
56 as -o asm/mx86-sol.o asm/mx86-sol.s
60 asm/mx86-out.o: asm/mx86unix.cpp
61 $(CPP) -DOUT asm/mx86unix.cpp | as -o asm/mx86-out.o
64 asm/mx86bsdi.o: asm/mx86unix.cpp
65 $(CPP) -DBSDI asm/mx86unix.cpp | sed 's/ :/:/' | as -o asm/mx86bsdi.o
67 asm/mx86unix.cpp: asm/md5-586.pl
68 (cd asm; $(PERL) md5-586.pl cpp >mx86unix.cpp)
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
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
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
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
89 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
92 @$(TOP)/util/point.sh Makefile.ssl Makefile
93 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
94 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
95 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
98 @for i in $(EXHEADER) ; \
100 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
101 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
110 lint -DLINT $(INCLUDES) $(SRC)>fluff
113 $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
116 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
117 mv -f Makefile.new $(MAKEFILE)
120 rm -f asm/mx86unix.cpp *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
122 # DO NOT DELETE THIS LINE -- make depend depends on it.
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