CXXFLAGS={- join(' ', @{$config{CXXFLAGS}}) -}
LDFLAGS= {- join(' ', @{$config{LDFLAGS}}) -}
EX_LIBS= {- join(' ', @{$config{LDLIBS}}) -}
+OBJCOPY={- $config{OBJCOPY} -}
MAKEDEPEND={- $config{makedepcmd} -}
{- dependmagic('build_programs', 'Build the openssl executables and scripts'); -}: build_programs_nodep
all: build_sw {- "build_docs" if !$disabled{docs}; -} ## Build software and documentation
+debuginfo: $(SHLIBS)
+ @set -e; for i in $(SHLIBS); do \
+ $(OBJCOPY) --only-keep-debug $$i $$i.debug; \
+ $(OBJCOPY) --strip-debug --add-gnu-debuglink=$$i.debug $$i; \
+ done;
##@ Documentation
build_generated_pods: $(GENERATED_PODS)
RANLIB => env('RANLIB'),
RC => env('RC') || env('WINDRES'),
RCFLAGS => [ env('RCFLAGS') || () ],
+ OBJCOPY => undef,
RM => undef,
);
# Info about what "make variables" may be prefixed with the cross compiler
build_docs
Build all documentation components.
+ debuginfo
+ On unix platforms, this target can be used to create .debug
+ libraries, which separate the DWARF information in the
+ shared library ELF files into a separate file for use
+ in post-mortem (core dump) debugging
+
clean
Remove all build artefacts and return the directory to a "clean"
state.