2 # SSLeay/crypto/sha/Makefile
12 OPENSSLDIR= /usr/local/ssl
13 INSTALLTOP=/usr/local/ssl
14 MAKEDEPPROG= makedepend
15 MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
21 CFLAGS= $(INCLUDES) $(CFLAG)
22 ASFLAGS= $(INCLUDES) $(ASFLAG)
25 TEST=shatest.c sha1test.c
28 LIB=$(TOP)/libcrypto.a
29 LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c
30 LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o $(SHA1_ASM_OBJ)
35 HEADER= sha_locl.h $(EXHEADER)
37 ALL= $(GENERAL) $(SRC) $(HEADER)
40 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
45 $(AR) $(LIB) $(LIBOBJ)
46 $(RANLIB) $(LIB) || echo Never mind.
50 asm/sx86-elf.s: asm/sha1-586.pl ../perlasm/x86asm.pl
51 (cd asm; $(PERL) sha1-586.pl elf $(CFLAGS) $(PROCESSOR) > sx86-elf.s)
54 asm/sx86-out.o: asm/sx86unix.cpp
55 $(CPP) -DOUT asm/sx86unix.cpp | as -o asm/sx86-out.o
58 asm/sx86bsdi.o: asm/sx86unix.cpp
59 $(CPP) -DBSDI asm/sx86unix.cpp | sed 's/ :/:/' | as -o asm/sx86bsdi.o
61 asm/sx86unix.cpp: asm/sha1-586.pl ../perlasm/x86asm.pl
62 (cd asm; $(PERL) sha1-586.pl cpp $(PROCESSOR) >sx86unix.cpp)
65 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
68 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
69 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
70 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
73 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
75 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
76 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
85 lint -DLINT $(INCLUDES) $(SRC)>fluff
88 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
91 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
92 mv -f Makefile.new $(MAKEFILE)
95 rm -f asm/sx86unix.cpp asm/*-elf.* *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o
97 # DO NOT DELETE THIS LINE -- make depend depends on it.
99 sha1_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
100 sha1_one.o: ../../include/openssl/opensslconf.h
101 sha1_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
102 sha1_one.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
103 sha1_one.o: ../../include/openssl/symhacks.h sha1_one.c
104 sha1dgst.o: ../../include/openssl/opensslconf.h
105 sha1dgst.o: ../../include/openssl/opensslv.h sha1dgst.c
106 sha_dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
107 sha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
108 sha_dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
109 sha_dgst.o: ../../include/openssl/opensslconf.h
110 sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
111 sha_dgst.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
112 sha_dgst.o: ../../include/openssl/symhacks.h ../md32_common.h sha_dgst.c
113 sha_dgst.o: sha_locl.h
114 sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
115 sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
116 sha_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
117 sha_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h