blob: d20df414ead2b519f5a037499761c8a0cb53b998 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
SOURCE_DIR=.
VERSION=2.4.5
ARCHIVE=$(SOURCE_DIR)/libressl-$(VERSION).tar.gz
DEST=libressl-build
UNAME=$(shell uname -s)
all: $(DEST)/lib/libssl.a
$(DEST)/lib/libssl.a: $(ARCHIVE)
if [ ! -e "libressl-$(VERSION)" ] ; then tar xzf "$(ARCHIVE)" ; fi
if [ ! -e "libressl-$(VERSION)/Makefile" ] ; then (P=`pwd`/$(DEST); cd libressl-$(VERSION) && ./configure --prefix="$$P" --libdir="$$P/lib" --disable-shared `test "$(UNAME)" = "Darwin" && echo '--disable-asm'`) ; fi
(cd libressl-$(VERSION) && make && make install)
|