Packages

s5cmd/Skyplane-class object transfer for Elixir: parallel cp/sync, BLAKE3, S3 and S5.

Current section

Files

Jump to
orian Makefile
Raw

Makefile

ERTS_INCLUDE_DIR ?= $(shell erl -noshell -eval 'io:format("~s", [code:lib_dir(erts, include)]), halt().')
PRIV_DIR := $(MIX_APP_PATH)/priv
PRIV_SO := $(PRIV_DIR)/orian_nif.so
SRC := native/zig/orian_nif.zig
all: $(PRIV_SO)
$(PRIV_SO): $(SRC)
@mkdir -p $(PRIV_DIR)
zig build-lib -O ReleaseFast -dynamic -fallow-shlib-undefined -lc -femit-bin=$(PRIV_SO) -I $(ERTS_INCLUDE_DIR) -Mroot=$(SRC)
.PHONY: all