X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=engines%2FMakefile.in;h=e37c4e2be98b3ebf551e892a92ca0b49514c6b32;hp=2207c5cfd55c8e78f3d9261d1db329ffeeb0d84d;hb=5158c763f5af973b26dd1927956ac27b6171de5c;hpb=c86ddbe61323e371f6ac88728581481a1aa6f0e6 diff --git a/engines/Makefile.in b/engines/Makefile.in index 2207c5cfd5..e37c4e2be9 100644 --- a/engines/Makefile.in +++ b/engines/Makefile.in @@ -2,9 +2,6 @@ # OpenSSL/engines/Makefile # -#The following engines have been disabled as they currently do not build -# sureware ubsec - DIR= engines TOP= .. CC= cc @@ -13,13 +10,18 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r +RECURSIVE_MAKE= for i in $${ENGDIRS:-$(ENGDIRS)} ; do \ + (cd $$i && echo "making $$target in $(DIR)/$$i..." && \ + $(MAKE) -e TOP=../.. DIR=$$i $$target ) || exit 1; \ + done; + PADLOCK_ASM_OBJ= PLIB_LDFLAG= EX_LIBS= -CFLAGS= $(INCLUDES) $(CFLAG) -ASFLAGS= $(INCLUDES) $(ASFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) +ASFLAGS= $(INCLUDES) $(ASFLAG) $(SHARED_CFLAG) AFLAGS= $(ASFLAGS) GENERAL=Makefile engines.com install.com engine_vector.mar @@ -43,8 +45,6 @@ TESTLIBOBJ= e_ossltest.o SRC= $(LIBSRC) HEADER= \ - e_chil_err.c e_chil_err.h \ - e_ubsec_err.c e_ubsec_err.h \ e_capi_err.c e_capi_err.h \ e_ossltest_err.c e_ossltest_err.h \ e_dasync_err.c e_dasync_err.h @@ -54,16 +54,16 @@ ALL= $(GENERAL) $(SRC) $(HEADER) top: (cd ..; $(MAKE) DIRS=$(DIR) all) -all: lib +all: lib subdirs lib: $(LIBOBJ) $(TESTLIBOBJ) - @if [ -n "$(SHARED_LIBS)" ]; then \ + @if [ "$(DYNAMIC_ENGINES)" = 1 ]; then \ set -e; \ for l in $(LIBNAMES) $(TESTLIBNAMES); do \ $(MAKE) -f ../Makefile.shared -e \ LIBNAME=$$l LIBEXTRAS="e_$$l*.o" \ LIBDEPS='$(PLIB_LDFLAG) -L.. -lcrypto $(EX_LIBS)' \ - link_o.$(SHLIB_TARGET); \ + link_dso.$(SHLIB_TARGET); \ done; \ else \ $(AR) $(LIB) $(LIBOBJ); \ @@ -72,42 +72,35 @@ lib: $(LIBOBJ) $(TESTLIBOBJ) touch lib e_padlock-x86.s: asm/e_padlock-x86.pl - $(PERL) asm/e_padlock-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@ + $(PERL) asm/e_padlock-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) $@ e_padlock-x86_64.s: asm/e_padlock-x86_64.pl - $(PERL) asm/e_padlock-x86_64.pl $(PERLASM_SCHEME) > $@ + $(PERL) asm/e_padlock-x86_64.pl $(PERLASM_SCHEME) $@ -files: - $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO +subdirs: + @target=all; $(RECURSIVE_MAKE) -# XXXXX This currently only works on systems that use .so as suffix -# for shared libraries as well as for Cygwin which uses the -# dlfcn_name_converter and therefore stores the engines with .so suffix, too. -# XXXXX This was extended to HP-UX dl targets, which use .sl suffix. -# XXXXX This was extended to mingw targets, which use eay32.dll suffix without lib as prefix. install: @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... @if [ -n "$(SHARED_LIBS)" ]; then \ set -e; \ - $(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines; \ + $(PERL) $(TOP)/util/mkdir-p.pl $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines; \ + for l in $(LIBNAMES); do \ + cp $${l}$(DSO_EXT) $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$${l}$(DSO_EXT).new; \ + chmod 555 $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$${l}$(DSO_EXT).new; \ + mv -f $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$${l}$(DSO_EXT).new $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$${l}$(DSO_EXT); \ + done; \ + fi + @target=install; $(RECURSIVE_MAKE) + +uninstall: + @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... + @if [ -n "$(SHARED_LIBS)" ]; then \ + set -e; \ for l in $(LIBNAMES); do \ - ( echo installing $$l; \ - pfx=lib; \ - if expr "$(PLATFORM)" : "Cygwin" >/dev/null; then \ - sfx=".so"; \ - cp cyg$$l.dll $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new; \ - else \ - case "$(CFLAGS)" in \ - *DSO_DLFCN*) sfx=`expr "$(SHLIB_EXT)" : '.*\(\.[a-z][a-z]*\)' \| ".so"`;; \ - *DSO_DL*) sfx=".sl";; \ - *DSO_WIN32*) sfx="eay32.dll"; pfx=;; \ - *) sfx=".bad";; \ - esac; \ - cp $$pfx$$l$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new; \ - fi; \ - chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new; \ - mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx ); \ + $(RM) $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$${l}$(DSO_EXT); \ done; \ fi + @target=install; $(RECURSIVE_MAKE) errors: set -e; for l in $(LIBNAMES); do \ @@ -116,10 +109,11 @@ errors: done depend: - @[ -z "$(THIS)" ] || $(TOP)/util/domd $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) $(TESTLIBSRC) + @[ -z "$(THIS)" ] || $(TOP)/util/domd $(CFLAG) $(INCLUDES) -- $(PROGS) $(LIBSRC) $(TESTLIBSRC) @[ -z "$(THIS)" ] || (set -e; target=depend; $(RECURSIVE_MAKE) ) clean: rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff + @target=clean; $(RECURSIVE_MAKE) # DO NOT DELETE THIS LINE -- make depend depends on it.