aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.org
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-11-06 23:35:00 +0000
committerRichard Levitte <levitte@openssl.org>2002-11-06 23:35:00 +0000
commit56824b9658b12f09f5dde9c3e98e7a4c9637b7de (patch)
tree31c80a4d3ef1aab9e68b6e1594e4b8f03db69cd2 /Makefile.org
parent892e9625d3d1e78ac22f0353d3a8a82b11549d87 (diff)
downloadopenssl-56824b9658b12f09f5dde9c3e98e7a4c9637b7de.tar.gz
Generate openssl.pc so pkg-config can return proper data.
PR: 163
Diffstat (limited to 'Makefile.org')
-rw-r--r--Makefile.org18
1 files changed, 17 insertions, 1 deletions
diff --git a/Makefile.org b/Makefile.org
index 1b3be52906..92649cca67 100644
--- a/Makefile.org
+++ b/Makefile.org
@@ -199,7 +199,7 @@ WTARFILE= $(NAME)-win.tar
EXHEADER= e_os2.h
HEADER= e_os.h
-all: Makefile.ssl build_all
+all: Makefile.ssl build_all openssl.pc
BUILD_CMD=if echo " $(DIRS) " | grep " $$i " >/dev/null 2>/dev/null; then \
if [ -d "$$i" ]; then \
@@ -278,6 +278,19 @@ do_$(SHLIB_TARGET):
libs="$$libs -l$$i"; \
done
+openssl.pc:
+ @ ( echo 'prefix=$(INSTALLTOP)'; \
+ echo 'exec_prefix=$${prefix}'; \
+ echo 'libdir=$${exec_prefix}/lib'; \
+ echo 'includedir=$${prefix}/include'; \
+ echo ''; \
+ echo 'Name: OpenSSL'; \
+ echo 'Description: Secure Sockets Layer and cryptography libraries and tools'; \
+ echo 'Version: '$(VERSION); \
+ echo 'Requires: '; \
+ echo 'Libs: -L$${libdir} -lssl -lcrypto $(EX_LIBS)'; \
+ echo 'Cflags: -I$${includedir}' ) > openssl.pc
+
Makefile.ssl: Makefile.org
@echo "Makefile.ssl is older than Makefile.org."
@echo "Reconfigure the source tree (via './config' or 'perl Configure'), please."
@@ -296,6 +309,7 @@ clean:
rm -f $(LIBS); \
fi; \
done;
+ rm -f openssl.pc
rm -f *.a *.o speed.* *.map *.so .pure core
rm -f $(TARFILE)
@for i in $(ONEDIRS) ;\
@@ -449,6 +463,7 @@ dist_pem_h:
install: all install_docs
@$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/bin \
$(INSTALL_PREFIX)$(INSTALLTOP)/lib \
+ $(INSTALL_PREFIX)$(INSTALLTOP)/lib/pkginfo \
$(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl \
$(INSTALL_PREFIX)$(OPENSSLDIR)/engines \
$(INSTALL_PREFIX)$(OPENSSLDIR)/misc \
@@ -502,6 +517,7 @@ install: all install_docs
cd $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \
$(NEWMAKE) -f $$here/Makefile link-shared ); \
fi
+ cp openssl.pc $(INSTALL_PREFIX)$(INSTALLTOP)/lib/pkginfo
install_docs:
@$(PERL) $(TOP)/util/mkdir-p.pl \