2 # SSLeay/crypto/md5/Makefile
9 INCLUDES=-I.. -I$(TOP) -I../../include
12 OPENSSLDIR= /usr/local/ssl
13 INSTALLTOP=/usr/local/ssl
14 MAKE= make -f Makefile.ssl
15 MAKEDEPPROG= makedepend
16 MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
17 MAKEFILE= Makefile.ssl
22 CFLAGS= $(INCLUDES) $(CFLAG)
23 ASFLAGS= $(INCLUDES) $(ASFLAG)
29 LIB=$(TOP)/libcrypto.a
30 LIBSRC=md5_dgst.c md5_one.c
31 LIBOBJ=md5_dgst.o md5_one.o $(MD5_ASM_OBJ)
36 HEADER= md5_locl.h $(EXHEADER)
38 ALL= $(GENERAL) $(SRC) $(HEADER)
41 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
46 $(AR) $(LIB) $(LIBOBJ)
47 $(RANLIB) $(LIB) || echo Never mind.
51 asm/mx86-elf.s: asm/md5-586.pl ../perlasm/x86asm.pl
52 (cd asm; $(PERL) md5-586.pl elf $(CFLAGS) > ../$@)
54 asm/mx86-cof.s: asm/md5-586.pl ../perlasm/x86asm.pl
55 (cd asm; $(PERL) md5-586.pl coff $(CFLAGS) > ../$@)
57 asm/mx86-out.s: asm/md5-586.pl ../perlasm/x86asm.pl
58 (cd asm; $(PERL) md5-586.pl a.out $(CFLAGS) > ../$@)
60 asm/md5-sparcv8plus.o: asm/md5-sparcv9.S
61 $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -c \
62 -o asm/md5-sparcv8plus.o asm/md5-sparcv9.S
64 # Old GNU assembler doesn't understand V9 instructions, so we
65 # hire /usr/ccs/bin/as to do the job. Note that option is called
66 # *-gcc27, but even gcc 2>=8 users may experience similar problem
67 # if they didn't bother to upgrade GNU assembler. Such users should
68 # not choose this option, but be adviced to *remove* GNU assembler
70 asm/md5-sparcv8plus-gcc27.o: asm/md5-sparcv9.S
71 $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -E asm/md5-sparcv9.S | \
72 /usr/ccs/bin/as -xarch=v8plus - -o asm/md5-sparcv8plus-gcc27.o
74 asm/md5-sparcv9.o: asm/md5-sparcv9.S
75 $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -c \
76 -o asm/md5-sparcv9.o asm/md5-sparcv9.S
79 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
82 @sh $(TOP)/util/point.sh Makefile.ssl Makefile
83 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
84 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
85 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
88 @for i in $(EXHEADER) ; \
90 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
91 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
100 lint -DLINT $(INCLUDES) $(SRC)>fluff
103 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
106 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
107 mv -f Makefile.new $(MAKEFILE)
110 rm -f asm/mx86unix.cpp asm/*-[elf|cof|out].* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
112 # DO NOT DELETE THIS LINE -- make depend depends on it.
114 md5_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/md5.h
115 md5_dgst.o: ../../include/openssl/opensslconf.h
116 md5_dgst.o: ../../include/openssl/opensslv.h ../md32_common.h md5_dgst.c
117 md5_dgst.o: md5_locl.h
118 md5_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
119 md5_one.o: ../../include/openssl/md5.h ../../include/openssl/opensslconf.h
120 md5_one.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
121 md5_one.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
122 md5_one.o: ../../include/openssl/symhacks.h md5_one.c