Beginning of Makefile

develop
Jef Roosens 2021-08-28 12:41:43 +02:00
parent 1ee9b78d81
commit c912c0aa0b
Signed by untrusted user: Jef Roosens
GPG Key ID: B580B976584B5F30
3 changed files with 28 additions and 1 deletions

3
.cargo/config 100644
View File

@ -0,0 +1,3 @@
# vim: ft=toml
[build]
target-dir = "out/target"

2
.gitignore vendored
View File

@ -2,7 +2,7 @@
# Generated by Cargo
# will have compiled files and executables
debug/
target/
out/
# 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

24
Makefile 100644
View File

@ -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