2 # SSLeay/crypto/sha/Makefile
11 MAKEDEPPROG= makedepend
12 MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
18 CFLAGS= $(INCLUDES) $(CFLAG)
19 ASFLAGS= $(INCLUDES) $(ASFLAG)
23 TEST=shatest.c sha1test.c sha256t.c sha512t.c
26 LIB=$(TOP)/libcrypto.a
27 LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c sha256.c sha512.c
28 LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o sha256.o sha512.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)
44 $(RANLIB) $(LIB) || echo Never mind.
48 sx86-elf.s: asm/sha1-586.pl ../perlasm/x86asm.pl
49 (cd asm; $(PERL) sha1-586.pl elf $(CFLAGS) $(PROCESSOR) > ../$@)
50 s512sse2-elf.s: asm/sha512-sse2.pl ../perlasm/x86asm.pl
51 (cd asm; $(PERL) sha512-sse2.pl elf $(CFLAGS) $(PROCESSOR) > ../$@)
53 sx86-cof.s: asm/sha1-586.pl ../perlasm/x86asm.pl
54 (cd asm; $(PERL) sha1-586.pl coff $(CFLAGS) $(PROCESSOR) > ../$@)
55 s512sse2-cof.s: asm/sha512-sse2.pl ../perlasm/x86asm.pl
56 (cd asm; $(PERL) sha512-sse2.pl coff $(CFLAGS) $(PROCESSOR) > ../$@)
58 sx86-out.s: asm/sha1-586.pl ../perlasm/x86asm.pl
59 (cd asm; $(PERL) sha1-586.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@)
60 s512sse2-out.s: asm/sha512-sse2.pl ../perlasm/x86asm.pl
61 (cd asm; $(PERL) sha512-sse2.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@)
63 sha1-ia64.s: asm/sha1-ia64.pl
64 (cd asm; $(PERL) sha1-ia64.pl $(CFLAGS) ) > $@
65 sha256-ia64.s: asm/sha512-ia64.pl
66 (cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS))
67 sha512-ia64.s: asm/sha512-ia64.pl
68 (cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS))
71 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
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 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
80 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
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 *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
104 # DO NOT DELETE THIS LINE -- make depend depends on it.
106 sha1_one.o: sha1_one.c