From d5dbd1a0c636b14368520703cb4a83817cb9b3f8 Mon Sep 17 00:00:00 2001 From: Jordan Bracco Date: Tue, 16 Jun 2020 20:28:14 +0200 Subject: [PATCH] Makefile: use ERL_EI_LIBDIR and ERL_EI_INCLUDE_DIR from elixir_make --- Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index ce342ea..5d60819 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,6 @@ -ERL_EI_INCLUDE:=$(shell erl -eval 'io:format("~s", [code:lib_dir(erl_interface, include)])' -s init stop -noshell | head -1) -ERL_EI_LIB:=$(shell erl -eval 'io:format("~s", [code:lib_dir(erl_interface, lib)])' -s init stop -noshell | head -1) CFLAGS = -std=c99 -g -Wall -Werror -CPPFLAGS = -I$(ERL_EI_INCLUDE) -LDFLAGS = -L$(ERL_EI_LIB) +CPPFLAGS = -I$(ERL_EI_INCLUDE_DIR) +LDFLAGS = -L$(ERL_EI_LIBDIR) LDLIBS = -lpthread -lei -lm -lmagic PRIV = priv/ RM = rm -Rf