1998-12-21 18:52:47 +08:00
|
|
|
#
|
|
|
|
# SSLeay/crypto/sha/Makefile
|
|
|
|
#
|
|
|
|
|
1998-12-21 18:56:39 +08:00
|
|
|
DIR= sha
|
|
|
|
TOP= ../..
|
|
|
|
CC= cc
|
2000-03-21 02:16:52 +08:00
|
|
|
CPP= $(CC) -E
|
1998-12-21 18:52:47 +08:00
|
|
|
INCLUDES=
|
|
|
|
CFLAG=-g
|
1999-04-30 05:52:08 +08:00
|
|
|
INSTALL_PREFIX=
|
|
|
|
OPENSSLDIR= /usr/local/ssl
|
1998-12-21 18:52:47 +08:00
|
|
|
INSTALLTOP=/usr/local/ssl
|
1998-12-21 18:56:39 +08:00
|
|
|
MAKE= make -f Makefile.ssl
|
2001-02-20 00:06:34 +08:00
|
|
|
MAKEDEPPROG= makedepend
|
|
|
|
MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
|
1998-12-21 18:56:39 +08:00
|
|
|
MAKEFILE= Makefile.ssl
|
|
|
|
AR= ar r
|
|
|
|
|
|
|
|
SHA1_ASM_OBJ=
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG)
|
2003-11-16 22:38:34 +08:00
|
|
|
ASFLAGS= $(INCLUDES) $(ASFLAG)
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
GENERAL=Makefile
|
2004-05-21 05:24:41 +08:00
|
|
|
TEST=shatest.c sha1test.c sha256t.c sha512t.c
|
1998-12-21 18:52:47 +08:00
|
|
|
APPS=
|
|
|
|
|
|
|
|
LIB=$(TOP)/libcrypto.a
|
2004-05-21 05:24:41 +08:00
|
|
|
LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c sha256.c sha512.c
|
|
|
|
LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o sha256.o sha512.o $(SHA1_ASM_OBJ)
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
SRC= $(LIBSRC)
|
|
|
|
|
|
|
|
EXHEADER= sha.h
|
1998-12-21 18:56:39 +08:00
|
|
|
HEADER= sha_locl.h $(EXHEADER)
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
ALL= $(GENERAL) $(SRC) $(HEADER)
|
|
|
|
|
|
|
|
top:
|
|
|
|
(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
|
|
|
|
|
1998-12-21 18:56:39 +08:00
|
|
|
all: lib
|
1998-12-21 18:52:47 +08:00
|
|
|
|
1998-12-21 18:56:39 +08:00
|
|
|
lib: $(LIBOBJ)
|
1998-12-21 18:52:47 +08:00
|
|
|
$(AR) $(LIB) $(LIBOBJ)
|
2001-03-09 22:01:42 +08:00
|
|
|
$(RANLIB) $(LIB) || echo Never mind.
|
1998-12-21 18:52:47 +08:00
|
|
|
@touch lib
|
|
|
|
|
2004-08-02 01:33:58 +08:00
|
|
|
# ELF
|
2003-01-04 01:37:53 +08:00
|
|
|
asm/sx86-elf.s: asm/sha1-586.pl ../perlasm/x86asm.pl
|
2004-08-02 01:33:58 +08:00
|
|
|
(cd asm; $(PERL) sha1-586.pl elf $(CFLAGS) $(PROCESSOR) > ../$@)
|
2004-07-19 00:19:34 +08:00
|
|
|
asm/s512sse2-elf.s: asm/sha512-sse2.pl ../perlasm/x86asm.pl
|
2004-08-02 01:33:58 +08:00
|
|
|
(cd asm; $(PERL) sha512-sse2.pl elf $(CFLAGS) $(PROCESSOR) > ../$@)
|
|
|
|
# COFF
|
|
|
|
asm/sx86-cof.s: asm/sha1-586.pl ../perlasm/x86asm.pl
|
|
|
|
(cd asm; $(PERL) sha1-586.pl coff $(CFLAGS) $(PROCESSOR) > ../$@)
|
|
|
|
asm/s512sse2-cof.s: asm/sha512-sse2.pl ../perlasm/x86asm.pl
|
|
|
|
(cd asm; $(PERL) sha512-sse2.pl coff $(CFLAGS) $(PROCESSOR) > ../$@)
|
1998-12-21 18:56:39 +08:00
|
|
|
# a.out
|
2004-08-02 01:33:58 +08:00
|
|
|
asm/sx86-out.s: asm/sha1-586.pl ../perlasm/x86asm.pl
|
|
|
|
(cd asm; $(PERL) sha1-586.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@)
|
|
|
|
asm/s512sse2-out.s: asm/sha512-sse2.pl ../perlasm/x86asm.pl
|
|
|
|
(cd asm; $(PERL) sha512-sse2.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@)
|
1998-12-21 18:56:39 +08:00
|
|
|
|
2004-07-24 07:27:10 +08:00
|
|
|
asm/sha256-ia64.s: asm/sha512-ia64.pl
|
|
|
|
(cd asm; $(PERL) sha512-ia64.pl $@ $(CFLAGS))
|
|
|
|
asm/sha512-ia64.s: asm/sha512-ia64.pl
|
|
|
|
(cd asm; $(PERL) sha512-ia64.pl $@ $(CFLAGS))
|
|
|
|
|
1998-12-21 18:52:47 +08:00
|
|
|
files:
|
1999-04-01 20:34:33 +08:00
|
|
|
$(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
links:
|
2003-12-27 22:59:07 +08:00
|
|
|
@sh $(TOP)/util/point.sh Makefile.ssl Makefile
|
1999-04-29 20:46:59 +08:00
|
|
|
@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
|
|
|
|
@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
|
|
|
|
@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
install:
|
|
|
|
@for i in $(EXHEADER) ; \
|
|
|
|
do \
|
1999-04-30 05:52:08 +08:00
|
|
|
(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
|
|
|
|
chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
|
1998-12-21 18:52:47 +08:00
|
|
|
done;
|
|
|
|
|
|
|
|
tags:
|
|
|
|
ctags $(SRC)
|
|
|
|
|
|
|
|
tests:
|
|
|
|
|
|
|
|
lint:
|
|
|
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
|
|
|
|
|
|
|
depend:
|
2002-10-09 21:25:12 +08:00
|
|
|
$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
dclean:
|
1999-04-01 20:34:33 +08:00
|
|
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
1998-12-21 18:52:47 +08:00
|
|
|
mv -f Makefile.new $(MAKEFILE)
|
|
|
|
|
|
|
|
clean:
|
2004-07-24 07:27:10 +08:00
|
|
|
rm -f asm/sx86unix.cpp asm/*.[so] *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
1999-03-06 22:32:48 +08:00
|
|
|
|
2002-12-05 09:55:48 +08:00
|
|
|
sha1_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
|
|
|
|
sha1_one.o: ../../include/openssl/opensslconf.h
|
2004-05-18 03:26:06 +08:00
|
|
|
sha1_one.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
|
|
|
sha1_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
|
|
|
sha1_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
|
|
|
sha1_one.o: sha1_one.c
|
2001-02-20 00:06:34 +08:00
|
|
|
sha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
|
1999-04-24 06:50:50 +08:00
|
|
|
sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
|
2001-08-01 01:07:24 +08:00
|
|
|
sha1dgst.o: ../md32_common.h sha1dgst.c sha_locl.h
|
2004-05-25 17:41:00 +08:00
|
|
|
sha256.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
|
|
|
|
sha256.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
|
|
|
sha256.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
|
|
|
|
sha256.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
|
|
|
sha256.o: ../../include/openssl/symhacks.h ../md32_common.h sha256.c
|
|
|
|
sha512.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
|
|
|
|
sha512.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
|
|
|
sha512.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
|
|
|
|
sha512.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
|
|
|
sha512.o: ../../include/openssl/symhacks.h sha512.c
|
2001-02-20 00:06:34 +08:00
|
|
|
sha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
|
1999-04-24 06:50:50 +08:00
|
|
|
sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
|
2001-08-01 01:07:24 +08:00
|
|
|
sha_dgst.o: ../md32_common.h sha_dgst.c sha_locl.h
|
2002-12-05 09:55:48 +08:00
|
|
|
sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
|
|
|
|
sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
2004-05-18 03:26:06 +08:00
|
|
|
sha_one.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
|
|
|
|
sha_one.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
|
|
|
sha_one.o: ../../include/openssl/symhacks.h sha_one.c
|