2 # SSLeay/crypto/sha/Makefile
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)
26 TEST=shatest.c sha1test.c sha256t.c sha512t.c
29 LIB=$(TOP)/libcrypto.a
30 LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c sha256.c sha512.c
31 LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o sha256.o sha512.o $(SHA1_ASM_OBJ)
36 HEADER= sha_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/sx86-elf.s: asm/sha1-586.pl ../perlasm/x86asm.pl
52 (cd asm; $(PERL) sha1-586.pl elf $(CFLAGS) $(PROCESSOR) > sx86-elf.s)
53 asm/s512sse2-elf.s: asm/sha512-sse2.pl ../perlasm/x86asm.pl
54 (cd asm; $(PERL) sha512-sse2.pl elf $(CFLAGS) $(PROCESSOR) > s512sse2-elf.s)
57 asm/sx86-out.o: asm/sx86unix.cpp
58 $(CPP) -DOUT asm/sx86unix.cpp | as -o asm/sx86-out.o
61 asm/sx86bsdi.o: asm/sx86unix.cpp
62 $(CPP) -DBSDI asm/sx86unix.cpp | sed 's/ :/:/' | as -o asm/sx86bsdi.o
64 asm/sx86unix.cpp: asm/sha1-586.pl ../perlasm/x86asm.pl
65 (cd asm; $(PERL) sha1-586.pl cpp $(PROCESSOR) >sx86unix.cpp)
67 asm/sha256-ia64.s: asm/sha512-ia64.pl
68 (cd asm; $(PERL) sha512-ia64.pl $@ $(CFLAGS))
69 asm/sha512-ia64.s: asm/sha512-ia64.pl
70 (cd asm; $(PERL) sha512-ia64.pl $@ $(CFLAGS))
73 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
76 @sh $(TOP)/util/point.sh Makefile.ssl Makefile
77 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
78 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
79 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
82 @for i in $(EXHEADER) ; \
84 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
85 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
94 lint -DLINT $(INCLUDES) $(SRC)>fluff
97 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
100 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
101 mv -f Makefile.new $(MAKEFILE)
104 rm -f asm/sx86unix.cpp asm/*.[so] *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o
106 # DO NOT DELETE THIS LINE -- make depend depends on it.
108 sha1_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
109 sha1_one.o: ../../include/openssl/opensslconf.h
110 sha1_one.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
111 sha1_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
112 sha1_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
113 sha1_one.o: sha1_one.c
114 sha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
115 sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
116 sha1dgst.o: ../md32_common.h sha1dgst.c sha_locl.h
117 sha256.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
118 sha256.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
119 sha256.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
120 sha256.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
121 sha256.o: ../../include/openssl/symhacks.h ../md32_common.h sha256.c
122 sha512.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
123 sha512.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
124 sha512.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
125 sha512.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
126 sha512.o: ../../include/openssl/symhacks.h sha512.c
127 sha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
128 sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
129 sha_dgst.o: ../md32_common.h sha_dgst.c sha_locl.h
130 sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
131 sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
132 sha_one.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
133 sha_one.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
134 sha_one.o: ../../include/openssl/symhacks.h sha_one.c