aboutsummaryrefslogtreecommitdiff
path: root/apps/openssl/Makefile.am
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2021-04-05 02:32:35 -0500
committerBrent Cook <busterb@gmail.com>2021-04-07 07:51:45 -0500
commit921c0675a25708d19e76aa8e3b48c4483a1a255d (patch)
treed68d125cdc968fd96cca6835fc347a2c8698a6ca /apps/openssl/Makefile.am
parent141f7528cb5610becd963d8c403c5b14afe73634 (diff)
downloadportable-921c0675a25708d19e76aa8e3b48c4483a1a255d.tar.gz
portable-921c0675a25708d19e76aa8e3b48c4483a1a255d.tar.bz2
portable-921c0675a25708d19e76aa8e3b48c4483a1a255d.zip
Add '--enable-libtls-only' build option
Diffstat (limited to 'apps/openssl/Makefile.am')
-rw-r--r--apps/openssl/Makefile.am36
1 files changed, 5 insertions, 31 deletions
diff --git a/apps/openssl/Makefile.am b/apps/openssl/Makefile.am
index 0bd8ca4..b98e08d 100644
--- a/apps/openssl/Makefile.am
+++ b/apps/openssl/Makefile.am
@@ -1,8 +1,11 @@
1include $(top_srcdir)/Makefile.am.common 1include $(top_srcdir)/Makefile.am.common
2 2
3if !ENABLE_LIBTLS_ONLY
3bin_PROGRAMS = openssl 4bin_PROGRAMS = openssl
4
5dist_man_MANS = openssl.1 5dist_man_MANS = openssl.1
6else
7noinst_PROGRAMS = openssl
8endif
6 9
7openssl_LDADD = $(abs_top_builddir)/ssl/libssl.la 10openssl_LDADD = $(abs_top_builddir)/ssl/libssl.la
8openssl_LDADD += $(abs_top_builddir)/crypto/libcrypto.la 11openssl_LDADD += $(abs_top_builddir)/crypto/libcrypto.la
@@ -92,34 +95,5 @@ noinst_HEADERS += testdsa.h
92noinst_HEADERS += testrsa.h 95noinst_HEADERS += testrsa.h
93noinst_HEADERS += timeouts.h 96noinst_HEADERS += timeouts.h
94 97
95EXTRA_DIST = cert.pem 98EXTRA_DIST = CMakeLists.txt
96EXTRA_DIST += openssl.cnf
97EXTRA_DIST += x509v3.cnf
98EXTRA_DIST += CMakeLists.txt
99
100install-exec-hook:
101 @if [ "@OPENSSLDIR@x" != "x" ]; then \
102 OPENSSLDIR="$(DESTDIR)@OPENSSLDIR@"; \
103 else \
104 OPENSSLDIR="$(DESTDIR)$(sysconfdir)/ssl"; \
105 fi; \
106 mkdir -p "$$OPENSSLDIR/certs"; \
107 for i in cert.pem openssl.cnf x509v3.cnf; do \
108 if [ ! -f "$$OPENSSLDIR/$i" ]; then \
109 $(INSTALL) -m 644 "$(srcdir)/$$i" "$$OPENSSLDIR/$$i"; \
110 else \
111 echo " $$OPENSSLDIR/$$i already exists, install will not overwrite"; \
112 fi \
113 done
114 99
115uninstall-local:
116 @if [ "@OPENSSLDIR@x" != "x" ]; then \
117 OPENSSLDIR="$(DESTDIR)@OPENSSLDIR@"; \
118 else \
119 OPENSSLDIR="$(DESTDIR)$(sysconfdir)/ssl"; \
120 fi; \
121 for i in cert.pem openssl.cnf x509v3.cnf; do \
122 if cmp -s "$$OPENSSLDIR/$$i" "$(srcdir)/$$i"; then \
123 rm -f "$$OPENSSLDIR/$$i"; \
124 fi \
125 done