# $Id$ VERSION = 1.0.0h OPENSSL_CONFIG_COMMAND = @OPENSSL_CONFIG_COMMAND@ OPENSSL_BUILD_DIRECTORY = ${abs_builddir}/openssl OPENSSL_SO_GLOB = @OPENSSL_SO_GLOB@ abs_top_srcdir = @abs_top_srcdir@ abs_top_builddir = @abs_top_builddir@ prefix = @prefix@ exec_prefix = @exec_prefix@ libdir = @libdir@ # We need to build with enable-shared whether we're really trying to # build shared OpenSSL libraries or not, because _POW.so requires # position independent code, so we need OpenSSL compiled with the # options it would use for a shared library. This then requires # further gymnastics to get an openssl executable linked against the # static libraries. Fortunately, the top-level OpenSSL Makefile has # generic target labels for the several stages of this build process, # so we can just call them one at a time and tweak around the edges. OPTIONS = enable-rfc3779 enable-cms no-dso shared --prefix=${prefix} all: build_libs build_apps build_tests build_tools build_symlink build_libs: openssl-${VERSION}/Makefile cd openssl-${VERSION}; ${MAKE} build_libs build_apps: openssl-${VERSION}/apps/openssl openssl-${VERSION}/apps/openssl: openssl-${VERSION}/libcrypto.a openssl-${VERSION}/libssl.a cd openssl-${VERSION}; mkdir disabled cd openssl-${VERSION}; mv -fv ${OPENSSL_SO_GLOB} disabled cd openssl-${VERSION}; rm -f apps/openssl cd openssl-${VERSION}; ${MAKE} build_apps cd openssl-${VERSION}; mv -fv disabled/${OPENSSL_SO_GLOB} . cd openssl-${VERSION}; rmdir disabled build_tests build_tools: openssl-${VERSION}/apps/openssl cd openssl-${VERSION}; ${MAKE} $@ build_symlink: openssl openssl: openssl-${VERSION}/. ln -sf openssl-${VERSION} openssl clean: rm -rf openssl-${VERSION} openssl cd tests; ${MAKE} $@ distclean: clean cd tests; ${MAKE} $@ rm -f Makefile openssl-${VERSION}/Makefile: openssl-${VERSION}/config cd openssl-${VERSION}; ${OPENSSL_CONFIG_COMMAND} ${OPTIONS} -cd openssl-${VERSION}; ${MAKE} depend openssl-${VERSION}/config: openssl-${VERSION}.tar.gz gzip -c -d openssl-${VERSION}.tar.gz | tar -xf - ln -s . openssl-${VERSION}/lib touch $@ install: @echo Not attempting to install modified OpenSSL, if you want that, do it yourself deinstall uninstall: @echo We never install our modified OpenSSL, so we do not deinstall it either sandblast: svn st -v openssl* | awk '/^I/ && NF == 2 {system("set -x; rm -rf " $$2)}' test: all cd tests; ${MAKE} $@