mirror of https://github.com/openssl/openssl.git
Add targets to skip build of non-installable programs
These make it possible to split the build into two parts, e.g., when tests should be built with different compiler flags than installed software. Also use these as dependecies where appropriate. Reviewed-by: Paul Yang <paulyang.inf@gmail.com> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Neil Horman <nhorman@openssl.org> (Merged from https://github.com/openssl/openssl/pull/28302)
This commit is contained in:
parent
92bfd358c9
commit
b7e4e17645
|
@ -491,6 +491,8 @@ NODEBUG=@
|
||||||
{- dependmagic('build_libs'); -} : build_libs_nodep
|
{- dependmagic('build_libs'); -} : build_libs_nodep
|
||||||
{- dependmagic('build_modules'); -} : build_modules_nodep
|
{- dependmagic('build_modules'); -} : build_modules_nodep
|
||||||
{- dependmagic('build_programs'); -} : build_programs_nodep
|
{- dependmagic('build_programs'); -} : build_programs_nodep
|
||||||
|
{- dependmagic('build_inst_sw'); -} : build_libs_nodep, build_modules_nodep, build_inst_programs_nodep
|
||||||
|
{- dependmagic('build_inst_programs'); -} : build_inst_programs_nodep
|
||||||
|
|
||||||
build_generated_pods : $(GENERATED_PODS)
|
build_generated_pods : $(GENERATED_PODS)
|
||||||
build_docs : build_html_docs
|
build_docs : build_html_docs
|
||||||
|
@ -500,6 +502,7 @@ build_generated : $(GENERATED_MANDATORY)
|
||||||
build_libs_nodep : $(LIBS), $(SHLIBS)
|
build_libs_nodep : $(LIBS), $(SHLIBS)
|
||||||
build_modules_nodep : $(MODULES)
|
build_modules_nodep : $(MODULES)
|
||||||
build_programs_nodep : $(PROGRAMS), $(SCRIPTS)
|
build_programs_nodep : $(PROGRAMS), $(SCRIPTS)
|
||||||
|
build_inst_programs_nodep : $(INSTALL_PROGRAMS), $(SCRIPTS)
|
||||||
|
|
||||||
# Kept around for backward compatibility
|
# Kept around for backward compatibility
|
||||||
build_apps build_tests : build_programs
|
build_apps build_tests : build_programs
|
||||||
|
@ -606,7 +609,7 @@ install_docs : install_html_docs
|
||||||
uninstall_docs : uninstall_html_docs
|
uninstall_docs : uninstall_html_docs
|
||||||
|
|
||||||
{- output_off() if $disabled{fips}; "" -}
|
{- output_off() if $disabled{fips}; "" -}
|
||||||
install_fips : build_sw $(INSTALL_FIPSMODULECONF)
|
install_fips : build_inst_sw $(INSTALL_FIPSMODULECONF)
|
||||||
@ WRITE SYS$OUTPUT "*** Installing FIPS module"
|
@ WRITE SYS$OUTPUT "*** Installing FIPS module"
|
||||||
- CREATE/DIR ossl_installroot:[MODULES{- $target{pointer_size} -}.'arch']
|
- CREATE/DIR ossl_installroot:[MODULES{- $target{pointer_size} -}.'arch']
|
||||||
- CREATE/DIR/PROT=(S:RWED,O:RWE,G:RE,W:RE) OSSL_DATAROOT:[000000]
|
- CREATE/DIR/PROT=(S:RWED,O:RWE,G:RE,W:RE) OSSL_DATAROOT:[000000]
|
||||||
|
@ -687,7 +690,7 @@ install_runtime_libs : check_INSTALLTOP build_libs
|
||||||
@install_shlibs) -}
|
@install_shlibs) -}
|
||||||
@ {- output_on() if $disabled{shared}; "" -} !
|
@ {- output_on() if $disabled{shared}; "" -} !
|
||||||
|
|
||||||
install_programs : check_INSTALLTOP install_runtime_libs build_programs
|
install_programs : check_INSTALLTOP install_runtime_libs build_inst_programs
|
||||||
@ {- output_off() if $disabled{apps}; "" -} !
|
@ {- output_off() if $disabled{apps}; "" -} !
|
||||||
@ ! Install the main program
|
@ ! Install the main program
|
||||||
- CREATE/DIR ossl_installroot:[EXE.'arch']
|
- CREATE/DIR ossl_installroot:[EXE.'arch']
|
||||||
|
|
|
@ -531,7 +531,9 @@ LANG=C
|
||||||
{- dependmagic('build_sw', 'Build all the software (default target)'); -}: build_libs_nodep build_modules_nodep build_programs_nodep link-utils
|
{- dependmagic('build_sw', 'Build all the software (default target)'); -}: build_libs_nodep build_modules_nodep build_programs_nodep link-utils
|
||||||
{- dependmagic('build_libs', 'Build the libraries libssl and libcrypto'); -}: build_libs_nodep
|
{- dependmagic('build_libs', 'Build the libraries libssl and libcrypto'); -}: build_libs_nodep
|
||||||
{- dependmagic('build_modules', 'Build the modules (i.e. providers and engines)'); -}: build_modules_nodep
|
{- dependmagic('build_modules', 'Build the modules (i.e. providers and engines)'); -}: build_modules_nodep
|
||||||
{- dependmagic('build_programs', 'Build the openssl executables and scripts'); -}: build_programs_nodep
|
{- dependmagic('build_programs', 'Build the openssl executables, scripts and all other programs as configured (e.g. tests or demos)'); -}: build_programs_nodep
|
||||||
|
{- dependmagic('build_inst_sw', 'Build all the software to be installed'); -}: build_libs_nodep build_modules_nodep build_inst_programs_nodep link-utils
|
||||||
|
{- dependmagic('build_inst_programs', 'Build only the installable openssl executables and scripts'); -}: build_inst_programs_nodep
|
||||||
|
|
||||||
all: build_sw {- "build_docs" if !$disabled{docs}; -} ## Build software and documentation
|
all: build_sw {- "build_docs" if !$disabled{docs}; -} ## Build software and documentation
|
||||||
debuginfo: $(SHLIBS)
|
debuginfo: $(SHLIBS)
|
||||||
|
@ -553,6 +555,7 @@ build_generated: $(GENERATED_MANDATORY)
|
||||||
build_libs_nodep: $(LIBS) {- join(" ",map { platform->sharedlib_simple($_) // platform->sharedlib_import($_) // platform->sharedlib($_) // () } @{$unified_info{libraries}}) -}
|
build_libs_nodep: $(LIBS) {- join(" ",map { platform->sharedlib_simple($_) // platform->sharedlib_import($_) // platform->sharedlib($_) // () } @{$unified_info{libraries}}) -}
|
||||||
build_modules_nodep: $(MODULES)
|
build_modules_nodep: $(MODULES)
|
||||||
build_programs_nodep: $(PROGRAMS) $(SCRIPTS)
|
build_programs_nodep: $(PROGRAMS) $(SCRIPTS)
|
||||||
|
build_inst_programs_nodep: $(INSTALL_PROGRAMS) $(SCRIPTS)
|
||||||
|
|
||||||
# Kept around for backward compatibility
|
# Kept around for backward compatibility
|
||||||
build_apps build_tests: build_programs
|
build_apps build_tests: build_programs
|
||||||
|
@ -671,7 +674,7 @@ uninstall_docs: uninstall_man_docs uninstall_html_docs ## Uninstall manpages and
|
||||||
$(RM) -r "$(DESTDIR)$(DOCDIR)"
|
$(RM) -r "$(DESTDIR)$(DOCDIR)"
|
||||||
|
|
||||||
{- output_off() if $disabled{fips}; "" -}
|
{- output_off() if $disabled{fips}; "" -}
|
||||||
install_fips: build_sw $(INSTALL_FIPSMODULECONF)
|
install_fips: build_inst_sw $(INSTALL_FIPSMODULECONF)
|
||||||
@[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
|
@[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
|
||||||
@$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(MODULESDIR)"
|
@$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(MODULESDIR)"
|
||||||
@$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(OPENSSLDIR)"
|
@$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(OPENSSLDIR)"
|
||||||
|
@ -956,7 +959,7 @@ install_runtime_libs: build_libs
|
||||||
: {- output_on() if windowsdll(); "" -}; \
|
: {- output_on() if windowsdll(); "" -}; \
|
||||||
done
|
done
|
||||||
|
|
||||||
install_programs: install_runtime_libs build_programs
|
install_programs: install_runtime_libs build_inst_programs
|
||||||
@[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
|
@[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
|
||||||
@$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(bindir)"
|
@$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(bindir)"
|
||||||
@$(ECHO) "*** Installing runtime programs"
|
@$(ECHO) "*** Installing runtime programs"
|
||||||
|
|
|
@ -418,6 +418,8 @@ PROCESSOR= {- $config{processor} -}
|
||||||
{- dependmagic('build_libs'); -}: build_libs_nodep
|
{- dependmagic('build_libs'); -}: build_libs_nodep
|
||||||
{- dependmagic('build_modules'); -}: build_modules_nodep
|
{- dependmagic('build_modules'); -}: build_modules_nodep
|
||||||
{- dependmagic('build_programs'); -}: build_programs_nodep
|
{- dependmagic('build_programs'); -}: build_programs_nodep
|
||||||
|
{- dependmagic('build_inst_sw'); -}: build_libs_nodep build_modules_nodep build_inst_programs_nodep copy-utils
|
||||||
|
{- dependmagic('build_inst_programs'); -}: build_inst_programs_nodep
|
||||||
|
|
||||||
build_docs: build_html_docs
|
build_docs: build_html_docs
|
||||||
build_html_docs: $(HTMLDOCS1) $(HTMLDOCS3) $(HTMLDOCS5) $(HTMLDOCS7)
|
build_html_docs: $(HTMLDOCS1) $(HTMLDOCS3) $(HTMLDOCS5) $(HTMLDOCS7)
|
||||||
|
@ -430,6 +432,8 @@ build_modules_nodep: $(MODULES)
|
||||||
@
|
@
|
||||||
build_programs_nodep: $(PROGRAMS) $(SCRIPTS)
|
build_programs_nodep: $(PROGRAMS) $(SCRIPTS)
|
||||||
@
|
@
|
||||||
|
build_inst_programs_nodep: $(INSTALL_PROGRAMS) $(SCRIPTS)
|
||||||
|
@
|
||||||
|
|
||||||
# Kept around for backward compatibility
|
# Kept around for backward compatibility
|
||||||
build_apps build_tests: build_programs
|
build_apps build_tests: build_programs
|
||||||
|
@ -507,7 +511,7 @@ install_docs: install_html_docs
|
||||||
uninstall_docs: uninstall_html_docs
|
uninstall_docs: uninstall_html_docs
|
||||||
|
|
||||||
{- output_off() if $disabled{fips}; "" -}
|
{- output_off() if $disabled{fips}; "" -}
|
||||||
install_fips: build_sw $(INSTALL_FIPSMODULECONF)
|
install_fips: build_inst_sw $(INSTALL_FIPSMODULECONF)
|
||||||
# @[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
|
# @[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
|
||||||
@"$(PERL)" "$(SRCDIR)\util\mkdir-p.pl" "$(MODULESDIR)"
|
@"$(PERL)" "$(SRCDIR)\util\mkdir-p.pl" "$(MODULESDIR)"
|
||||||
@"$(PERL)" "$(SRCDIR)\util\mkdir-p.pl" "$(OPENSSLDIR)"
|
@"$(PERL)" "$(SRCDIR)\util\mkdir-p.pl" "$(OPENSSLDIR)"
|
||||||
|
@ -607,7 +611,7 @@ install_runtime_libs: build_libs
|
||||||
"$(PERL)" "$(SRCDIR)\util\copy.pl" $(INSTALL_SHLIBPDBS) \
|
"$(PERL)" "$(SRCDIR)\util\copy.pl" $(INSTALL_SHLIBPDBS) \
|
||||||
"$(INSTALLTOP)\bin"
|
"$(INSTALLTOP)\bin"
|
||||||
|
|
||||||
install_programs: install_runtime_libs build_programs
|
install_programs: install_runtime_libs build_inst_programs
|
||||||
@if "$(INSTALLTOP)"=="" ( $(ECHO) "INSTALLTOP should not be empty" & exit 1 )
|
@if "$(INSTALLTOP)"=="" ( $(ECHO) "INSTALLTOP should not be empty" & exit 1 )
|
||||||
@$(ECHO) "*** Installing runtime programs"
|
@$(ECHO) "*** Installing runtime programs"
|
||||||
@if not "$(INSTALL_PROGRAMS)"=="" \
|
@if not "$(INSTALL_PROGRAMS)"=="" \
|
||||||
|
|
|
@ -14,7 +14,7 @@ while (<>) {
|
||||||
chomp; # strip record separator
|
chomp; # strip record separator
|
||||||
@Fld = split($FS, $_, -1);
|
@Fld = split($FS, $_, -1);
|
||||||
if (/^[a-zA-Z0-9_\-]+:.*?##/) {
|
if (/^[a-zA-Z0-9_\-]+:.*?##/) {
|
||||||
printf " \033[36m%-15s\033[0m %s\n", $Fld[0], $Fld[1]
|
printf " \033[36m%-19s\033[0m %s\n", $Fld[0], $Fld[1]
|
||||||
}
|
}
|
||||||
if (/^##@/) {
|
if (/^##@/) {
|
||||||
printf "\n\033[1m%s\033[0m\n", substr($Fld[$_], (5)-1);
|
printf "\n\033[1m%s\033[0m\n", substr($Fld[$_], (5)-1);
|
||||||
|
|
Loading…
Reference in New Issue