X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=engines%2FMakefile.in;h=7a284cf57a907fe64201c73dd1f2ab1fc168ded3;hp=cfe550fb49eed0908cb80f1f9c38eac14735e892;hb=7f458a48ff3a231d5841466525d2aacbcd4f6b77;hpb=b63447c1150f659cfc54ed290df33345e8ce7cbd diff --git a/engines/Makefile.in b/engines/Makefile.in index cfe550fb49..7a284cf57a 100644 --- a/engines/Makefile.in +++ b/engines/Makefile.in @@ -10,6 +10,11 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r +RECURSIVE_MAKE= [ -z "$(ENGDIRS)" ] || for i in $(ENGDIRS) ; do \ + (cd $$i && echo "making $$target in $(DIR)/$$i..." && \ + $(MAKE) -e TOP=../.. DIR=$$i $$target ) || exit 1; \ + done; + PADLOCK_ASM_OBJ= PLIB_LDFLAG= @@ -49,7 +54,7 @@ ALL= $(GENERAL) $(SRC) $(HEADER) top: (cd ..; $(MAKE) DIRS=$(DIR) all) -all: lib +all: lib subdirs lib: $(LIBOBJ) $(TESTLIBOBJ) @if [ "$(DYNAMIC_ENGINES)" = 1 ]; then \ @@ -71,8 +76,12 @@ e_padlock-x86.s: asm/e_padlock-x86.pl e_padlock-x86_64.s: asm/e_padlock-x86_64.pl $(PERL) asm/e_padlock-x86_64.pl $(PERLASM_SCHEME) > $@ +subdirs: + @target=all; $(RECURSIVE_MAKE) + files: $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO + @target=files; $(RECURSIVE_MAKE) install: @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... @@ -94,6 +103,7 @@ uninstall: $(RM) $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$${l}$(DSO_EXT); \ done; \ fi + @target=install; $(RECURSIVE_MAKE) errors: set -e; for l in $(LIBNAMES); do \ @@ -107,5 +117,6 @@ depend: 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.