forked from Chewing_Bever/rusty-bever
Beginning of Makefile
parent
1ee9b78d81
commit
c912c0aa0b
|
@ -0,0 +1,3 @@
|
||||||
|
# vim: ft=toml
|
||||||
|
[build]
|
||||||
|
target-dir = "out/target"
|
|
@ -2,7 +2,7 @@
|
||||||
# Generated by Cargo
|
# Generated by Cargo
|
||||||
# will have compiled files and executables
|
# will have compiled files and executables
|
||||||
debug/
|
debug/
|
||||||
target/
|
out/
|
||||||
|
|
||||||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
|
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
|
||||||
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
|
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
PQ_VER ?= 11.12
|
||||||
|
SSL_VER ?= 1.1.1k
|
||||||
|
|
||||||
|
OUT_DIR ?= out/deps
|
||||||
|
|
||||||
|
export CC = musl-gcc -fPIC -pie -static
|
||||||
|
|
||||||
|
# TODO check for header files (openssl-dev, libpq-dev) both for Arch & Ubuntu
|
||||||
|
|
||||||
|
|
||||||
|
all: openssl
|
||||||
|
.PHONY: all
|
||||||
|
|
||||||
|
|
||||||
|
# =====OPENSSL=====
|
||||||
|
# Download the source code
|
||||||
|
$(OUT_DIR)/openssl-$(SSL_VER)/Configure:
|
||||||
|
mkdir -p '$(OUT_DIR)'
|
||||||
|
curl -sSL "https://www.openssl.org/source/openssl-$(SSL_VER).tar.gz" | \
|
||||||
|
tar -C "$(OUT_DIR)" -xz
|
||||||
|
|
||||||
|
# Build OpenSSL
|
||||||
|
openssl: $(OUT_DIR)/openssl-$(SSL_VER)/Configure
|
||||||
|
.PHONY: openssl
|
Loading…
Reference in New Issue