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)
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.o: asm/sx86unix.cpp
51 $(CPP) -DELF -x c asm/sx86unix.cpp | as -o asm/sx86-elf.o
54 asm/sx86-sol.o: asm/sx86unix.cpp
55 $(CC) -E -DSOL asm/sx86unix.cpp | sed 's/^#.*//' > asm/sx86-sol.s
56 as -o asm/sx86-sol.o asm/sx86-sol.s
60 asm/sx86-out.o: asm/sx86unix.cpp
61 $(CPP) -DOUT asm/sx86unix.cpp | as -o asm/sx86-out.o
64 asm/sx86bsdi.o: asm/sx86unix.cpp
65 $(CPP) -DBSDI asm/sx86unix.cpp | sed 's/ :/:/' | as -o asm/sx86bsdi.o
67 asm/sx86unix.cpp: asm/sha1-586.pl ../perlasm/x86asm.pl
68 (cd asm; $(PERL) sha1-586.pl cpp $(PROCESSOR) >sx86unix.cpp)
71 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
74 @$(TOP)/util/point.sh Makefile.ssl Makefile
75 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
76 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
77 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
80 @for i in $(EXHEADER) ; \
82 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
83 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
92 lint -DLINT $(INCLUDES) $(SRC)>fluff
95 $(MAKEDEPEND) $(CFLAG) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
98 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
99 mv -f Makefile.new $(MAKEFILE)
102 rm -f asm/sx86unix.cpp *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o
104 # DO NOT DELETE THIS LINE -- make depend depends on it.
106 sha1_one.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
107 sha1_one.o: ../../include/openssl/sha.h sha1_one.c
108 sha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
109 sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
110 sha1dgst.o: ../md32_common.h sha1dgst.c sha_locl.h
111 sha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
112 sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
113 sha_dgst.o: ../md32_common.h sha_dgst.c sha_locl.h
114 sha_one.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
115 sha_one.o: ../../include/openssl/sha.h sha_one.c