2 # SSLeay/crypto/sha/Makefile
11 OPENSSLDIR= /usr/local/ssl
12 INSTALLTOP=/usr/local/ssl
13 MAKE= make -f Makefile.ssl
14 MAKEDEPEND= $(TOP)/util/domd $(TOP)
15 MAKEFILE= Makefile.ssl
20 CFLAGS= $(INCLUDES) $(CFLAG)
23 TEST=shatest.c sha1test.c
26 LIB=$(TOP)/libcrypto.a
27 LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c
28 LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o $(SHA1_ASM_OBJ)
33 HEADER= sha_locl.h $(EXHEADER)
35 ALL= $(GENERAL) $(SRC) $(HEADER)
38 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
43 $(AR) $(LIB) $(LIBOBJ)
48 asm/sx86-elf.o: asm/sx86unix.cpp
49 $(CPP) -DELF asm/sx86unix.cpp | as -o asm/sx86-elf.o
52 asm/sx86-sol.o: asm/sx86unix.cpp
53 $(CC) -E -DSOL asm/sx86unix.cpp | sed 's/^#.*//' > asm/sx86-sol.s
54 as -o asm/sx86-sol.o asm/sx86-sol.s
58 asm/sx86-out.o: asm/sx86unix.cpp
59 $(CPP) -DOUT asm/sx86unix.cpp | as -o asm/sx86-out.o
62 asm/sx86bsdi.o: asm/sx86unix.cpp
63 $(CPP) -DBSDI asm/sx86unix.cpp | sed 's/ :/:/' | as -o asm/sx86bsdi.o
66 (cd asm; $(PERL) sha1-586.pl cpp $(PROCESSOR) >sx86unix.cpp)
69 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
72 @$(TOP)/util/point.sh Makefile.ssl Makefile
73 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
74 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
75 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
78 @for i in $(EXHEADER) ; \
80 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
81 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
90 lint -DLINT $(INCLUDES) $(SRC)>fluff
93 $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
96 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
97 mv -f Makefile.new $(MAKEFILE)
100 rm -f asm/sx86unix.cpp *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o
102 # DO NOT DELETE THIS LINE -- make depend depends on it.
104 sha1_one.o: ../../include/openssl/sha.h
105 sha1dgst.o: ../../include/openssl/opensslconf.h
106 sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
107 sha1dgst.o: sha_locl.h
108 sha_dgst.o: ../../include/openssl/opensslconf.h
109 sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
110 sha_dgst.o: sha_locl.h
111 sha_one.o: ../../include/openssl/sha.h