2002-10-11 17:42:30 +00:00
|
|
|
#
|
2006-02-04 01:49:36 +00:00
|
|
|
# OpenSSL/engines/Makefile
|
2002-10-11 17:42:30 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DIR= engines
|
|
|
|
TOP= ..
|
|
|
|
CC= cc
|
|
|
|
INCLUDES= -I../include
|
|
|
|
CFLAG=-g
|
2005-03-30 13:05:57 +00:00
|
|
|
MAKEFILE= Makefile
|
2002-10-11 17:42:30 +00:00
|
|
|
AR= ar r
|
|
|
|
|
2002-10-14 09:25:48 +00:00
|
|
|
PEX_LIBS=
|
|
|
|
EX_LIBS=
|
2005-05-09 00:27:37 +00:00
|
|
|
|
2002-10-11 17:42:30 +00:00
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG)
|
|
|
|
|
2002-12-05 01:42:14 +00:00
|
|
|
GENERAL=Makefile engines.com install.com engine_vector.mar
|
2002-10-11 17:42:30 +00:00
|
|
|
TEST=
|
|
|
|
APPS=
|
|
|
|
|
|
|
|
LIB=$(TOP)/libcrypto.a
|
2008-06-14 19:53:04 +00:00
|
|
|
LIBNAMES= 4758cca aep atalla cswift gmp chil nuron sureware ubsec capi
|
2003-01-03 10:32:04 +00:00
|
|
|
|
2005-05-29 19:16:26 +00:00
|
|
|
LIBSRC= e_4758cca.c \
|
2002-10-11 17:42:30 +00:00
|
|
|
e_aep.c \
|
|
|
|
e_atalla.c \
|
|
|
|
e_cswift.c \
|
2003-01-30 15:43:07 +00:00
|
|
|
e_gmp.c \
|
2005-05-29 19:16:26 +00:00
|
|
|
e_chil.c \
|
2002-10-11 17:42:30 +00:00
|
|
|
e_nuron.c \
|
|
|
|
e_sureware.c \
|
2008-06-14 19:53:04 +00:00
|
|
|
e_ubsec.c \
|
|
|
|
e_capi.c
|
2005-05-29 19:16:26 +00:00
|
|
|
LIBOBJ= e_4758cca.o \
|
2002-10-11 17:42:30 +00:00
|
|
|
e_aep.o \
|
|
|
|
e_atalla.o \
|
|
|
|
e_cswift.o \
|
2003-01-30 15:43:07 +00:00
|
|
|
e_gmp.o \
|
2005-05-29 19:16:26 +00:00
|
|
|
e_chil.o \
|
2002-10-11 17:42:30 +00:00
|
|
|
e_nuron.o \
|
|
|
|
e_sureware.o \
|
2008-06-14 19:53:04 +00:00
|
|
|
e_ubsec.o \
|
|
|
|
e_capi.o
|
2002-10-11 17:42:30 +00:00
|
|
|
|
|
|
|
SRC= $(LIBSRC)
|
|
|
|
|
|
|
|
EXHEADER=
|
2005-05-29 19:16:26 +00:00
|
|
|
HEADER= e_4758cca_err.c e_4758cca_err.h \
|
2002-10-11 17:42:30 +00:00
|
|
|
e_aep_err.c e_aep_err.h \
|
|
|
|
e_atalla_err.c e_atalla_err.h \
|
|
|
|
e_cswift_err.c e_cswift_err.h \
|
2003-01-30 15:43:07 +00:00
|
|
|
e_gmp_err.c e_gmp_err.h \
|
2005-05-29 19:16:26 +00:00
|
|
|
e_chil_err.c e_chil_err.h \
|
2002-10-11 17:42:30 +00:00
|
|
|
e_nuron_err.c e_nuron_err.h \
|
|
|
|
e_sureware_err.c e_sureware_err.h \
|
2008-06-14 19:53:04 +00:00
|
|
|
e_ubsec_err.c e_ubsec_err.h \
|
|
|
|
e_capi_err.c e_capi_err.h
|
2002-10-11 17:42:30 +00:00
|
|
|
|
|
|
|
ALL= $(GENERAL) $(SRC) $(HEADER)
|
|
|
|
|
|
|
|
top:
|
|
|
|
(cd ..; $(MAKE) DIRS=$(DIR) all)
|
|
|
|
|
2003-01-10 16:04:07 +00:00
|
|
|
all: lib
|
2002-10-11 17:42:30 +00:00
|
|
|
|
2003-01-10 16:04:07 +00:00
|
|
|
lib: $(LIBOBJ)
|
2002-10-11 17:42:30 +00:00
|
|
|
@if [ -n "$(SHARED_LIBS)" ]; then \
|
|
|
|
set -e; \
|
|
|
|
for l in $(LIBNAMES); do \
|
2005-06-28 09:10:19 +00:00
|
|
|
$(MAKE) -f ../Makefile.shared -e \
|
2005-05-15 23:53:34 +00:00
|
|
|
LIBNAME=$$l LIBEXTRAS=e_$$l.o \
|
2002-10-14 09:25:48 +00:00
|
|
|
LIBDEPS='-L.. -lcrypto $(EX_LIBS)' \
|
2002-10-11 17:42:30 +00:00
|
|
|
link_o.$(SHLIB_TARGET); \
|
|
|
|
done; \
|
|
|
|
else \
|
|
|
|
$(AR) $(LIB) $(LIBOBJ); \
|
|
|
|
$(RANLIB) $(LIB) || echo Never mind.; \
|
|
|
|
fi; \
|
2003-01-10 16:04:07 +00:00
|
|
|
touch lib
|
2002-10-11 17:42:30 +00:00
|
|
|
|
|
|
|
files:
|
2005-03-30 13:05:57 +00:00
|
|
|
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
|
2002-10-11 17:42:30 +00:00
|
|
|
|
|
|
|
links:
|
|
|
|
|
|
|
|
# XXXXX This currently only works on systems that use .so as suffix
|
2005-05-21 16:37:41 +00:00
|
|
|
# for shared libraries as well as for Cygwin which uses the
|
|
|
|
# dlfcn_name_converter and therefore stores the engines with .so suffix, too.
|
2005-10-25 22:03:36 +00:00
|
|
|
# XXXXX This was extended to HP-UX dl targets, which use .sl suffix.
|
2002-10-11 17:42:30 +00:00
|
|
|
install:
|
2005-05-15 22:23:26 +00:00
|
|
|
@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
|
2002-10-11 17:42:30 +00:00
|
|
|
@if [ -n "$(SHARED_LIBS)" ]; then \
|
|
|
|
set -e; \
|
|
|
|
for l in $(LIBNAMES); do \
|
2002-10-18 19:02:18 +00:00
|
|
|
( echo installing $$l; \
|
2005-05-21 16:37:41 +00:00
|
|
|
if [ "$(PLATFORM)" != "Cygwin" ]; then \
|
2005-10-25 22:03:36 +00:00
|
|
|
case "$(CFLAGS)" in \
|
|
|
|
*DSO_DLFCN*) sfx="so";; \
|
|
|
|
*DSO_DL*) sfx="sl";; \
|
|
|
|
*) sfx="bad";; \
|
|
|
|
esac; \
|
|
|
|
cp lib$$l.$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new; \
|
2005-05-21 16:37:41 +00:00
|
|
|
else \
|
2005-10-25 22:03:36 +00:00
|
|
|
sfx="so"; \
|
|
|
|
cp cyg$$l.dll $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new; \
|
2005-05-21 16:37:41 +00:00
|
|
|
fi; \
|
2005-10-25 22:03:36 +00:00
|
|
|
chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new; \
|
|
|
|
mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx ); \
|
2002-10-11 17:42:30 +00:00
|
|
|
done; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
tags:
|
|
|
|
ctags $(SRC)
|
|
|
|
|
|
|
|
errors:
|
|
|
|
set -e; for l in $(LIBNAMES); do \
|
|
|
|
$(PERL) ../util/mkerr.pl -conf e_$$l.ec \
|
|
|
|
-nostatic -staticloader -write e_$$l.c; \
|
|
|
|
done
|
|
|
|
|
|
|
|
tests:
|
|
|
|
|
|
|
|
lint:
|
|
|
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
|
|
|
|
|
|
|
depend:
|
2005-05-16 16:55:47 +00:00
|
|
|
@if [ -z "$(THIS)" ]; then \
|
|
|
|
$(MAKE) -f $(TOP)/Makefile reflect THIS=$@; \
|
|
|
|
else \
|
|
|
|
$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC); \
|
|
|
|
fi
|
2002-10-11 17:42:30 +00:00
|
|
|
|
|
|
|
dclean:
|
|
|
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
|
|
|
mv -f Makefile.new $(MAKEFILE)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
|
|
|
|
2005-05-29 19:16:26 +00:00
|
|
|
e_4758cca.o: ../include/openssl/asn1.h ../include/openssl/bio.h
|
|
|
|
e_4758cca.o: ../include/openssl/bn.h ../include/openssl/buffer.h
|
|
|
|
e_4758cca.o: ../include/openssl/crypto.h ../include/openssl/dso.h
|
|
|
|
e_4758cca.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
|
|
|
|
e_4758cca.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
|
|
|
|
e_4758cca.o: ../include/openssl/engine.h ../include/openssl/err.h
|
2008-06-14 19:53:04 +00:00
|
|
|
e_4758cca.o: ../include/openssl/evp.h ../include/openssl/lhash.h
|
|
|
|
e_4758cca.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
|
|
|
e_4758cca.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
|
|
|
e_4758cca.o: ../include/openssl/ossl_typ.h ../include/openssl/pkcs7.h
|
|
|
|
e_4758cca.o: ../include/openssl/rand.h ../include/openssl/rsa.h
|
|
|
|
e_4758cca.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
|
|
|
e_4758cca.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
|
|
|
|
e_4758cca.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h
|
|
|
|
e_4758cca.o: e_4758cca.c e_4758cca_err.c e_4758cca_err.h
|
|
|
|
e_4758cca.o: vendor_defns/hw_4758_cca.h
|
2002-10-11 17:42:30 +00:00
|
|
|
e_aep.o: ../include/openssl/asn1.h ../include/openssl/bio.h
|
|
|
|
e_aep.o: ../include/openssl/bn.h ../include/openssl/buffer.h
|
|
|
|
e_aep.o: ../include/openssl/crypto.h ../include/openssl/dh.h
|
|
|
|
e_aep.o: ../include/openssl/dsa.h ../include/openssl/dso.h
|
2004-04-19 18:33:41 +00:00
|
|
|
e_aep.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
|
|
|
|
e_aep.o: ../include/openssl/err.h ../include/openssl/lhash.h
|
2003-06-11 22:27:19 +00:00
|
|
|
e_aep.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
2004-04-19 18:33:41 +00:00
|
|
|
e_aep.o: ../include/openssl/ossl_typ.h ../include/openssl/rsa.h
|
|
|
|
e_aep.o: ../include/openssl/safestack.h ../include/openssl/stack.h
|
|
|
|
e_aep.o: ../include/openssl/symhacks.h e_aep.c e_aep_err.c e_aep_err.h
|
|
|
|
e_aep.o: vendor_defns/aep.h
|
2002-10-11 17:42:30 +00:00
|
|
|
e_atalla.o: ../include/openssl/asn1.h ../include/openssl/bio.h
|
2002-10-11 18:32:32 +00:00
|
|
|
e_atalla.o: ../include/openssl/bn.h ../include/openssl/buffer.h
|
|
|
|
e_atalla.o: ../include/openssl/crypto.h ../include/openssl/dh.h
|
|
|
|
e_atalla.o: ../include/openssl/dsa.h ../include/openssl/dso.h
|
2004-04-19 18:33:41 +00:00
|
|
|
e_atalla.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
|
|
|
|
e_atalla.o: ../include/openssl/err.h ../include/openssl/lhash.h
|
2003-06-11 22:27:19 +00:00
|
|
|
e_atalla.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
2004-04-19 18:33:41 +00:00
|
|
|
e_atalla.o: ../include/openssl/ossl_typ.h ../include/openssl/rsa.h
|
|
|
|
e_atalla.o: ../include/openssl/safestack.h ../include/openssl/stack.h
|
|
|
|
e_atalla.o: ../include/openssl/symhacks.h e_atalla.c e_atalla_err.c
|
|
|
|
e_atalla.o: e_atalla_err.h vendor_defns/atalla.h
|
2005-05-30 23:20:32 +00:00
|
|
|
e_chil.o: ../include/openssl/asn1.h ../include/openssl/bio.h
|
|
|
|
e_chil.o: ../include/openssl/bn.h ../include/openssl/buffer.h
|
|
|
|
e_chil.o: ../include/openssl/crypto.h ../include/openssl/dh.h
|
|
|
|
e_chil.o: ../include/openssl/dso.h ../include/openssl/e_os2.h
|
|
|
|
e_chil.o: ../include/openssl/ec.h ../include/openssl/ecdh.h
|
|
|
|
e_chil.o: ../include/openssl/ecdsa.h ../include/openssl/engine.h
|
|
|
|
e_chil.o: ../include/openssl/err.h ../include/openssl/evp.h
|
2008-06-14 19:53:04 +00:00
|
|
|
e_chil.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h
|
|
|
|
e_chil.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
|
|
|
|
e_chil.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
|
|
|
|
e_chil.o: ../include/openssl/pem.h ../include/openssl/pem2.h
|
|
|
|
e_chil.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
|
|
|
|
e_chil.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
|
|
|
|
e_chil.o: ../include/openssl/sha.h ../include/openssl/stack.h
|
|
|
|
e_chil.o: ../include/openssl/symhacks.h ../include/openssl/ui.h
|
|
|
|
e_chil.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h e_chil.c
|
|
|
|
e_chil.o: e_chil_err.c e_chil_err.h vendor_defns/hwcryptohook.h
|
2002-10-11 17:42:30 +00:00
|
|
|
e_cswift.o: ../include/openssl/asn1.h ../include/openssl/bio.h
|
2002-10-11 18:32:32 +00:00
|
|
|
e_cswift.o: ../include/openssl/bn.h ../include/openssl/buffer.h
|
|
|
|
e_cswift.o: ../include/openssl/crypto.h ../include/openssl/dh.h
|
|
|
|
e_cswift.o: ../include/openssl/dsa.h ../include/openssl/dso.h
|
2004-04-19 18:33:41 +00:00
|
|
|
e_cswift.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
|
|
|
|
e_cswift.o: ../include/openssl/err.h ../include/openssl/lhash.h
|
2003-06-11 22:27:19 +00:00
|
|
|
e_cswift.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
2004-04-19 18:33:41 +00:00
|
|
|
e_cswift.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h
|
|
|
|
e_cswift.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
|
|
|
|
e_cswift.o: ../include/openssl/stack.h ../include/openssl/symhacks.h e_cswift.c
|
2002-10-11 18:32:32 +00:00
|
|
|
e_cswift.o: e_cswift_err.c e_cswift_err.h vendor_defns/cswift.h
|
2004-04-19 18:33:41 +00:00
|
|
|
e_gmp.o: ../include/openssl/buffer.h ../include/openssl/crypto.h
|
|
|
|
e_gmp.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
|
|
|
|
e_gmp.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
|
|
|
e_gmp.o: ../include/openssl/ossl_typ.h ../include/openssl/safestack.h
|
|
|
|
e_gmp.o: ../include/openssl/stack.h ../include/openssl/symhacks.h e_gmp.c
|
2002-10-11 17:42:30 +00:00
|
|
|
e_nuron.o: ../include/openssl/asn1.h ../include/openssl/bio.h
|
2002-10-11 18:32:32 +00:00
|
|
|
e_nuron.o: ../include/openssl/bn.h ../include/openssl/buffer.h
|
|
|
|
e_nuron.o: ../include/openssl/crypto.h ../include/openssl/dh.h
|
|
|
|
e_nuron.o: ../include/openssl/dsa.h ../include/openssl/dso.h
|
2004-04-19 18:33:41 +00:00
|
|
|
e_nuron.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
|
|
|
|
e_nuron.o: ../include/openssl/err.h ../include/openssl/lhash.h
|
2003-06-11 22:27:19 +00:00
|
|
|
e_nuron.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
2004-04-19 18:33:41 +00:00
|
|
|
e_nuron.o: ../include/openssl/ossl_typ.h ../include/openssl/rsa.h
|
|
|
|
e_nuron.o: ../include/openssl/safestack.h ../include/openssl/stack.h
|
|
|
|
e_nuron.o: ../include/openssl/symhacks.h e_nuron.c e_nuron_err.c e_nuron_err.h
|
2002-12-29 01:38:15 +00:00
|
|
|
e_sureware.o: ../include/openssl/asn1.h ../include/openssl/bio.h
|
2002-10-11 17:42:30 +00:00
|
|
|
e_sureware.o: ../include/openssl/bn.h ../include/openssl/buffer.h
|
2002-12-29 01:38:15 +00:00
|
|
|
e_sureware.o: ../include/openssl/crypto.h ../include/openssl/dh.h
|
|
|
|
e_sureware.o: ../include/openssl/dsa.h ../include/openssl/dso.h
|
|
|
|
e_sureware.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
|
|
|
|
e_sureware.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
|
|
|
|
e_sureware.o: ../include/openssl/engine.h ../include/openssl/err.h
|
2008-06-14 19:53:04 +00:00
|
|
|
e_sureware.o: ../include/openssl/evp.h ../include/openssl/lhash.h
|
|
|
|
e_sureware.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
|
|
|
e_sureware.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
|
|
|
e_sureware.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h
|
|
|
|
e_sureware.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
|
|
|
|
e_sureware.o: ../include/openssl/rand.h ../include/openssl/rsa.h
|
|
|
|
e_sureware.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
|
|
|
e_sureware.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
|
|
|
|
e_sureware.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h
|
|
|
|
e_sureware.o: e_sureware.c e_sureware_err.c e_sureware_err.h
|
|
|
|
e_sureware.o: vendor_defns/sureware.h
|
2002-10-11 17:42:30 +00:00
|
|
|
e_ubsec.o: ../include/openssl/asn1.h ../include/openssl/bio.h
|
2002-10-11 18:32:32 +00:00
|
|
|
e_ubsec.o: ../include/openssl/bn.h ../include/openssl/buffer.h
|
|
|
|
e_ubsec.o: ../include/openssl/crypto.h ../include/openssl/dh.h
|
|
|
|
e_ubsec.o: ../include/openssl/dsa.h ../include/openssl/dso.h
|
2004-04-19 18:33:41 +00:00
|
|
|
e_ubsec.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
|
|
|
|
e_ubsec.o: ../include/openssl/err.h ../include/openssl/lhash.h
|
2003-06-11 22:27:19 +00:00
|
|
|
e_ubsec.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
2004-04-19 18:33:41 +00:00
|
|
|
e_ubsec.o: ../include/openssl/ossl_typ.h ../include/openssl/rsa.h
|
|
|
|
e_ubsec.o: ../include/openssl/safestack.h ../include/openssl/stack.h
|
|
|
|
e_ubsec.o: ../include/openssl/symhacks.h e_ubsec.c e_ubsec_err.c e_ubsec_err.h
|
|
|
|
e_ubsec.o: vendor_defns/hw_ubsec.h
|