Makefile: use ERL_EI_LIBDIR and ERL_EI_INCLUDE_DIR from elixir_make
This commit is contained in:
parent
5492c5f16b
commit
d5dbd1a0c6
1 changed files with 2 additions and 4 deletions
6
Makefile
6
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
|
CFLAGS = -std=c99 -g -Wall -Werror
|
||||||
CPPFLAGS = -I$(ERL_EI_INCLUDE)
|
CPPFLAGS = -I$(ERL_EI_INCLUDE_DIR)
|
||||||
LDFLAGS = -L$(ERL_EI_LIB)
|
LDFLAGS = -L$(ERL_EI_LIBDIR)
|
||||||
LDLIBS = -lpthread -lei -lm -lmagic
|
LDLIBS = -lpthread -lei -lm -lmagic
|
||||||
PRIV = priv/
|
PRIV = priv/
|
||||||
RM = rm -Rf
|
RM = rm -Rf
|
||||||
|
|
Loading…
Reference in a new issue