2 # SSLeay/crypto/sha/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)
24 TEST=shatest.c sha1test.c
27 LIB=$(TOP)/libcrypto.a
28 LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c
29 LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o $(SHA1_ASM_OBJ)
34 HEADER= sha_locl.h $(EXHEADER)
36 ALL= $(GENERAL) $(SRC) $(HEADER)
39 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
44 $(AR) $(LIB) $(LIBOBJ)
49 asm/sx86-elf.o: asm/sx86unix.cpp
50 $(CPP) -DELF -x c asm/sx86unix.cpp | as -o asm/sx86-elf.o
53 asm/sx86-sol.o: asm/sx86unix.cpp
54 $(CC) -E -DSOL asm/sx86unix.cpp | sed 's/^#.*//' > asm/sx86-sol.s
55 as -o asm/sx86-sol.o asm/sx86-sol.s
59 asm/sx86-out.o: asm/sx86unix.cpp
60 $(CPP) -DOUT asm/sx86unix.cpp | as -o asm/sx86-out.o
63 asm/sx86bsdi.o: asm/sx86unix.cpp
64 $(CPP) -DBSDI asm/sx86unix.cpp | sed 's/ :/:/' | as -o asm/sx86bsdi.o
66 asm/sx86unix.cpp: asm/sha1-586.pl ../perlasm/x86asm.pl
67 (cd asm; $(PERL) sha1-586.pl cpp $(PROCESSOR) >sx86unix.cpp)
70 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
73 @$(TOP)/util/point.sh Makefile.ssl Makefile
74 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
75 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
76 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
79 @for i in $(EXHEADER) ; \
81 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
82 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
91 lint -DLINT $(INCLUDES) $(SRC)>fluff
94 $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
97 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
98 mv -f Makefile.new $(MAKEFILE)
101 rm -f asm/sx86unix.cpp *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o
103 # DO NOT DELETE THIS LINE -- make depend depends on it.
105 sha1_one.o: ../../include/openssl/sha.h
106 sha1dgst.o: ../../include/openssl/opensslconf.h
107 sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
108 sha1dgst.o: ../md32_common.h sha_locl.h
109 sha_dgst.o: ../../include/openssl/opensslconf.h
110 sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
111 sha_dgst.o: ../md32_common.h sha_locl.h
112 sha_one.o: ../../include/openssl/sha.h