2 # SSLeay/crypto/sha/Makefile
10 INSTALLTOP=/usr/local/ssl
11 MAKE= make -f Makefile.ssl
12 MAKEDEPEND= $(TOP)/util/domd $(TOP)
13 MAKEFILE= Makefile.ssl
18 CFLAGS= $(INCLUDES) $(CFLAG)
21 TEST=shatest.c sha1test.c
24 LIB=$(TOP)/libcrypto.a
25 LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c
26 LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o $(SHA1_ASM_OBJ)
31 HEADER= sha_locl.h $(EXHEADER)
33 ALL= $(GENERAL) $(SRC) $(HEADER)
36 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
41 $(AR) $(LIB) $(LIBOBJ)
46 asm/sx86-elf.o: asm/sx86unix.cpp
47 $(CPP) -DELF asm/sx86unix.cpp | as -o asm/sx86-elf.o
50 asm/sx86-sol.o: asm/sx86unix.cpp
51 $(CC) -E -DSOL asm/sx86unix.cpp | sed 's/^#.*//' > asm/sx86-sol.s
52 as -o asm/sx86-sol.o asm/sx86-sol.s
56 asm/sx86-out.o: asm/sx86unix.cpp
57 $(CPP) -DOUT asm/sx86unix.cpp | as -o asm/sx86-out.o
60 asm/sx86bsdi.o: asm/sx86unix.cpp
61 $(CPP) -DBSDI asm/sx86unix.cpp | sed 's/ :/:/' | as -o asm/sx86bsdi.o
64 (cd asm; $(PERL) sha1-586.pl cpp $(PROCESSOR) >sx86unix.cpp)
67 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
70 @$(TOP)/util/point.sh Makefile.ssl Makefile
71 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
72 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
73 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
76 @for i in $(EXHEADER) ; \
78 (cp $$i $(INSTALLTOP)/include/openssl/$$i; \
79 chmod 644 $(INSTALLTOP)/include/openssl/$$i ); \
88 lint -DLINT $(INCLUDES) $(SRC)>fluff
91 $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
94 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
95 mv -f Makefile.new $(MAKEFILE)
98 rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o
100 # DO NOT DELETE THIS LINE -- make depend depends on it.
102 sha1_one.o: ../../include/openssl/sha.h
103 sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
104 sha1dgst.o: sha_locl.h
105 sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
106 sha_dgst.o: sha_locl.h
107 sha_one.o: ../../include/openssl/sha.h